-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[2.0.0] Dictionary gets of a resource id returns an element instead o…
…f a len 1 list
- Loading branch information
Showing
4 changed files
with
41 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,18 +150,19 @@ api depending on the endpoint. | |
> from helpscout.client import HelpScout | ||
> hs = HelpScout(app_id='laknsdo', app_secret='12haosd9') | ||
> print(hs.mailboxes[1930].get()) | ||
[{'id': 1930, | ||
'name': 'Fake Support', | ||
'slug': '0912301u', | ||
'email': '[email protected]', | ||
'createdAt': '2018-12-20T20:00:00Z', | ||
'updatedAt': '2019-05-01T16:00:00Z', | ||
'_links': { | ||
Mailbox( | ||
id=1930, | ||
name='Fake Support', | ||
slug='0912301u', | ||
email='[email protected]', | ||
createdAt='2018-12-20T20:00:00Z', | ||
updatedAt='2019-05-01T16:00:00Z', | ||
_links={ | ||
'fields': {'href': 'https://api.helpscout.net/v2/mailboxes/1930/fields/'}, | ||
'folders': {'href': 'https://api.helpscout.net/v2/mailboxes/1930/folders/'}, | ||
'self': {'href': 'https://api.helpscout.net/v2/mailboxes/1930'} | ||
} | ||
}] | ||
) | ||
``` | ||
|
||
### Listing conversations using a dictionary parameters | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from helpscout.client import HelpScout # noqa | ||
|
||
|
||
__version__ = '1.0.1' | ||
__version__ = '2.0.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters