Skip to content

Commit

Permalink
Fixed authorization token for the webhooks list method
Browse files Browse the repository at this point in the history
  • Loading branch information
egorelik committed Aug 18, 2021
1 parent 85a7f32 commit be318d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions examples/101_invite_webhook_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
# Create webhook to send POST to custom endpoint when document is signed
webhook_response = signnow_python_sdk.Webhook.create(access_token['access_token'], webhook_payload)

# List available webhooks
list_webhooks = signnow_python_sdk.Webhook.list_all(access_token['access_token'])

# Send signature invite
invite_response = signnow_python_sdk.Document.invite(access_token['access_token'], document_id['id'], invite_payload)

Expand Down
2 changes: 1 addition & 1 deletion signnow_python_sdk/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def list_all(access_token):
dict: A dictionary representing the JSON data of the event subscriptions or the error returned by the API.
"""
response = get(Config().get_base_url() + '/api/v2/events', headers={
"Authorization": "Bearer " + access_token,
"Authorization": "Basic " + Config().get_encoded_credentials(),
"Accept": "application/json"
})

Expand Down

0 comments on commit be318d8

Please sign in to comment.