Interface SinchEventsService
public interface SinchEventsService
Sinch Events service
Callback events are used to get notified about Conversation usage according to your configured callback URL
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionparseEvent(String jsonPayload) This function can be called to deserialize received payload onto callback onto proper java verification event classbooleanThe Sinch Platform can initiate callback requests to a URL you define (Callback URL) on request and result events.
-
Method Details
-
validateAuthenticationHeader
The Sinch Platform can initiate callback requests to a URL you define (Callback URL) on request and result events. All callback requests are signed and the signature is included in the Authorization header of the requestBy using following function, you can ensure authentication according to received payload from your backend
- Parameters:
secret- Secret token to be used to validate received request. See App's webhook configuration onto dashboardheaders- Received headersjsonPayload- Received payload- Returns:
- Is authentication validated (true) or not (false)
- Since:
- 2.0
-
parseEvent
This function can be called to deserialize received payload onto callback onto proper java verification event class- Parameters:
jsonPayload- Received payload to be deserialized- Returns:
- The verification event instance class
see triggered events
- Throws:
ApiMappingException- Since:
- 2.0
-