This repository was archived by the owner on Oct 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Missing params #51
Merged
Merged
Missing params #51
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
5cdc2fc
Add parameters to send signature request endpoint
jyoung488 e04a234
Add parameters to send_with_template endpoint
jyoung488 eb6d402
Add missing param to remind_signature_request
jyoung488 3ba2790
Add method to update signature request
jyoung488 a3820bc
Update args in cancel_signature_request
jyoung488 08a0b46
Add remove signature request access method
jyoung488 848418e
Add missing params for send embedded signature requests
jyoung488 20d1ccc
Add missing parameters for create embedded template draft
jyoung488 4590a96
Add parameters to Get Files and Get Template Files endpoints to retri…
jyoung488 bb4b301
Add parameters for Get Template Edit URL endpoint
jyoung488 c29f9fd
Add ApiApp Resource and endpoints
jyoung488 ce28d1a
Fix hyperlinks and typos
jyoung488 369561f
Add missing parameters for unclaimed drafts
jyoung488 a1c0aee
Add parameters for unclaimed draft with template endpont
jyoung488 eae32c5
Add edit and resend endpoint
jyoung488 ffb5ce3
Update comments for consistency
jyoung488 a41528b
Consolidate file response type to one property
jyoung-dbx 79d6eb4
Add more detail to delete function
jyoung-dbx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,95 @@ | ||
| from .resource import Resource | ||
|
|
||
| # | ||
| # The MIT License (MIT) | ||
| # | ||
| # Copyright (C) 2014 hellosign.com | ||
| # | ||
| # Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| # of this software and associated documentation files (the "Software"), to deal | ||
| # in the Software without restriction, including without limitation the rights | ||
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| # copies of the Software, and to permit persons to whom the Software is | ||
| # furnished to do so, subject to the following conditions: | ||
| # | ||
| # The above copyright notice and this permission notice shall be included in all | ||
| # copies or substantial portions of the Software. | ||
| # | ||
| # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| # SOFTWARE. | ||
| # | ||
|
|
||
|
|
||
| class ApiApp(Resource): | ||
| ''' Contains information about an API App. | ||
|
|
||
| Attributes: | ||
| client_id (str): The API App's Client ID | ||
|
|
||
| created_at (int): Unix timestamp of when the API App was created | ||
|
|
||
| name (str): The name of the API App | ||
|
|
||
| domain (str): The domain name associated with the API App | ||
|
|
||
| callback_url (str) : The URL that HelloSign events will be POSTed to | ||
|
|
||
| is_approved (bool): Indicates if the API App is approved | ||
|
|
||
| owner_account (dict): Information about the API App owner | ||
|
|
||
| account_id (str): The id of the Account | ||
|
|
||
| email_address (str): The email address associated with the Account | ||
|
|
||
| options (dict): Options that override the Account settings | ||
|
|
||
| can_insert_everywhere (bool): Denotes if signers can "Insert Everywhere" when | ||
| signing a document | ||
|
|
||
| oauth (dict): Information about the API App's OAuth properties. Null if OAuth is | ||
| not configured for the API App. | ||
|
|
||
| callback_url (str): The URL that HelloSign OAuth events will be POSTed to | ||
|
|
||
| secret (str): The API App's OAuth secret | ||
|
|
||
| scopes (list): List of the API App's OAuth scopes | ||
|
|
||
| charges_users (bool): Indicates whether the API App or the authorized user | ||
| is billed for OAuth requests. | ||
|
|
||
| white_labeling_options (dict): Customization options for the API App's signer page | ||
|
|
||
| Examples: | ||
| To print the client_id | ||
|
|
||
| >>> from hsclient import HSClient | ||
| >>> client = HSClient() | ||
| >>> app = client.get_api_app_info() | ||
| >>> print app.client_id | ||
|
|
||
| ''' | ||
|
|
||
| def __init__(self, jsonstr=None, key=None, warnings=None): | ||
| ''' Initialization of the object | ||
|
|
||
| Args: | ||
| jsonstr (str): a raw JSON string that is returned by a request. | ||
| We store all the data in `self.json_data` and use `__getattr__` | ||
| and `__setattr__` to make the data accessible like attributes | ||
| of the object | ||
| key (str): Optional key to use with jsonstr. If `key` exists, we'll | ||
| load the data of `jsonstr[key]` instead of the whole `jsonstr` | ||
| warnings (list): List of associated warnings | ||
| ''' | ||
| super(ApiApp, self).__init__(jsonstr, key, warnings) | ||
|
|
||
| def __str__(self): | ||
| ''' Return a string representation of this Account ''' | ||
| return 'ApiApp %s (%s)' % (self.name, self.client_id) |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete what?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one's just adding a generic
deletefunction to be able to make these kinds of requests since this SDK's only been able to make get and post requests beforeUh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, would it be worth adding some guidance in comments about what object types can be deleted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good call! i added some detail to the comments