Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

Releases: thermondo/closeio

1.5.2

24 Feb 10:41
724f0dc
Compare
Choose a tag to compare

This change adds a deprecation-note and warning.

1.5.1

13 Jun 13:44
0c6d3c1
Compare
Choose a tag to compare

This change catches an error that would appear when the request that is passed to webhook_signature_valid does not have a valid json body. This fixes a problem with swagger when the method webhook_signature_valid was used in a DRF permission.

1.5.0

15 May 08:27
f4c1c07
Compare
Choose a tag to compare

Add utilities to verify signed webhooks.

  • You can use closio.contrib.django.utils.webhook_signature_valid to verify webhook requests that you receive.
    When a webhook subscription is created via the Closeio API you get a secret signature key in the response of the request. This is the key that Closeio uses to sign their webhooks. You can use the key to verify that the request is indeed coming from Closeio (only Closeio should have the signature key) and that the payload was not altered inbetween. This is a simple security mechanism to protect you from false requests to your endpoints that receive the webhooks. The signature key for each webhook subscription needs to be stored inside the setting CLOSEIO_WEBHOOK_SIGNATURE_KEYS as json string containing the webhook subscription ID as key and the signature key as value, e.g.:
    CLOSEIO_WEBHOOK_SIGNATURE_KEYS = '{"whsub_1": "123", "whsub_2": "456"}'
    
    More information can be found in the Closeio's documentation.
  • You can use the pytest fixture sign_closeio_webhook_request to sign your requests for testing purposes. Usage example:
    data = {'some key': 'some value'}
    data, headers = _sign_request(data)
    client.post('/my/url/', data, **headers)
    

1.4.1

07 Mar 13:41
Compare
Choose a tag to compare

Add created_by and date_created to testing stub for notes creation.

1.4.0

15 Feb 08:28
Compare
Choose a tag to compare

Add support to webhook subscription API.
New methods:

  • get_webhooks()
  • get_webhook(webhook_id)
  • create_webhook(webhook_data)
  • update_webhook(webhook_id, webhook_data)
  • delete_webhook(webhook_id)

1.3.0

06 Feb 14:21
9094a97
Compare
Choose a tag to compare

Fixed return values of create_activity_note and create_activity_call in the testing_stub. This could be a possible breaking change for tests that use the testing stub.

1.2.2

05 Dec 15:43
1be6b3d
Compare
Choose a tag to compare

Add support to retrieve event logs via closeio's event log API and add basic support for event logs in the testing stub (#135 )

1.2.1

13 Nov 10:55
d2b6430
Compare
Choose a tag to compare
  • Switch CI organization API key (#134)

1.2.0

12 Nov 10:28
38c559e
Compare
Choose a tag to compare
  • new API methods for deleting activities: delete_activity_email, delete_activity_call and delete_activity_note (#130)
  • fix response for get_activity_call and get_activity_note in testing stub (#130)
  • clean up configuration for development and testing (#131 and #133)

1.1.2

29 Oct 09:06
eaf7bf9
Compare
Choose a tag to compare

Fix Travis PyPI config to use sdist bdist_wheel as distributions.

#129