You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/sinch_events/README.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,12 @@
3
3
This directory contains a server application built with [Sinch Python SDK](https://github.com/sinch/sinch-sdk-python)
4
4
to process incoming webhooks from Sinch services.
5
5
6
-
The webhook handlers are organized by service:
7
-
-**SMS**: Handlers for SMS webhook events (`sms_api/`)
8
-
-**Numbers**: Handlers for Numbers API webhook events (`numbers_api/`)
9
-
-**Conversation**: Handlers for Conversation API webhook events (`conversation_api/`)
6
+
The Sinch Events Handlers are organized by service:
7
+
-**SMS**: Handlers for SMS events (`sms_api/`)
8
+
-**Numbers**: Handlers for Numbers API events (`numbers_api/`)
9
+
-**Conversation**: Handlers for Conversation API events (`conversation_api/`)
10
10
11
-
This directory contains both the webhook handlers and the server application (`server.py`) that uses them.
11
+
This directory contains both the Event handlers and the server application (`server.py`) that uses them.
12
12
13
13
## Requirements
14
14
@@ -32,17 +32,17 @@ This directory contains both the webhook handlers and the server application (`s
32
32
- Controller Settings
33
33
- Numbers controller: Set the `numbers` Sinch Event secret. You can retrieve it using the `/event_destination` endpoint (see SDK implementation: [event_destinations_apis.py](https://github.com/sinch/sinch-sdk-python/blob/v2.0/sinch/domains/numbers/api/v1/event_destinations_apis.py); for additional details, refer to the [Numbers API callbacks documentation](https://developers.sinch.com/docs/numbers/api-reference/numbers/tag/Numbers-Callbacks/)):
- SMS controller: To configure the `sms`webhooks secret, contact your account manager to enable authentication for SMS callbacks. For more details, refer to
37
+
- SMS controller: To configure the `sms`Sinch Event secret, contact your account manager to enable authentication for SMS callbacks. For more details, refer to
- Conversation controller: Set the webhook secret you configured when creating the webhook (see [Conversation API callbacks](https://developers.sinch.com/docs/conversation/callbacks)):
-**Numbers**: Set the `callback_url` parameter when renting or updating a number via the SDK (e.g., `available_numbers_apis` rent/update flow: [rent](https://github.com/sinch/sinch-sdk-python/blob/v2.0/sinch/domains/numbers/api/v1/available_numbers_apis.py#L69), [update](https://github.com/sinch/sinch-sdk-python/blob/v2.0/sinch/domains/numbers/api/v1/available_numbers_apis.py#L89)); you can also update active numbers via `active_numbers_apis` ([example](https://github.com/sinch/sinch-sdk-python/blob/v2.0/sinch/domains/numbers/api/v1/active_numbers_apis.py#L64)).
106
-
-**SMS**: Set the `callback_url` parameter when configuring your SMS service plan via the SDK (see `batches_apis` examples: [send/dry-run callbacks](https://github.com/sinch/sinch-sdk-python/blob/v2.0/sinch/domains/sms/api/v1/batches_apis.py#L146), [update/replace callbacks](https://github.com/sinch/sinch-sdk-python/blob/v2.0/sinch/domains/sms/api/v1/batches_apis.py#L491)); you can also set it directly via the SMS API.
104
+
Use this value to configure the Sinch Events URLs:
105
+
-**Numbers**: Set the `event_destination_target` parameter when renting or updating a number via the SDK (e.g., `available_numbers_apis` rent/update flow: [rent](https://github.com/sinch/sinch-sdk-python/blob/v2.0/sinch/domains/numbers/api/v1/available_numbers_apis.py#L69), [update](https://github.com/sinch/sinch-sdk-python/blob/v2.0/sinch/domains/numbers/api/v1/available_numbers_apis.py#L89)); you can also update active numbers via `active_numbers_apis` ([example](https://github.com/sinch/sinch-sdk-python/blob/v2.0/sinch/domains/numbers/api/v1/active_numbers_apis.py#L64)).
106
+
-**SMS**: Set the `event_destination_target` parameter when configuring your SMS service plan via the SDK (see `batches_apis` examples: [send/dry-run callbacks](https://github.com/sinch/sinch-sdk-python/blob/v2.0/sinch/domains/sms/api/v1/batches_apis.py#L146), [update/replace callbacks](https://github.com/sinch/sinch-sdk-python/blob/v2.0/sinch/domains/sms/api/v1/batches_apis.py#L491)); you can also set it directly via the SMS API.
107
107
-**Conversation**: Set the `callback_url` parameter when sending a message via the SDK (see `messages_apis` example: [send_text_message](https://github.com/sinch/sinch-sdk-python/blob/v2.0/sinch/domains/conversation/api/v1/messages_apis.py#L420)).
108
108
109
-
You can also set these callback URLs in the Sinch dashboard; the API parameters above override the default values configured there.
109
+
You can also set these Sinch Events URLs in the Sinch dashboard; the API parameters above override the default values configured there.
110
110
111
-
> **Note**: If you have set a webhook secret (e.g., `SMS_WEBHOOKS_SECRET`), the webhook URL must be configured in the Sinch dashboard
112
-
> and cannot be overridden via API parameters. The webhook secret is used to validate incoming webhook requests,
111
+
> **Note**: If you have set a Sinch Event secret (e.g., `SMS_SINCH_EVENT_SECRET`), the Sinch Event URL must be configured in the Sinch dashboard
112
+
> and cannot be overridden via API parameters. The Sinch Event secret is used to validate incoming webhook requests,
113
113
> and the URL associated with it must be set in the dashboard.
0 commit comments