Sinch Node.js SDK - v1.5.0
    Preparing search index...

    Class VoiceCallbackWebhooks

    Index

    Constructors

    Methods

    • Reviver for a Voice Event. This method ensures the object can be treated as a Voice Event and should be called before any action is taken to manipulate the object.

      Parameters

      • eventBody: any

        The event body containing the voice event notification.

      Returns VoiceCallbackEvent

      • The parsed voice event object.
    • Validate authorization header for callback request

      Parameters

      • headers: IncomingHttpHeaders

        Incoming request's headers

      • body: any

        Incoming request's body

      • path: string

        Incoming request's path

      • method: string

        Incoming request's HTTP method

      Returns boolean

      • true if the authorization header is valid
    • Static reviver for a Voice Event. This method ensures the object can be treated as a Voice Event.

      Parameters

      • eventBody: any

        The event body containing the Voice event notification.

      Returns VoiceCallbackEvent

      • The parsed Voice event object