Sinch Node.js SDK - v0.0.3
    Preparing search index...

    Class ConversationApi

    Hierarchy

    • ConversationDomainApi
      • ConversationApi
    Index

    Methods

    • Create a conversation Creates a new empty conversation. It is generally not needed to create a conversation explicitly since sending or receiving a message automatically creates a new conversation if it does not already exist between the given app and contact. Creating empty conversation is useful if the metadata of the conversation should be populated when the first message in the conversation is a contact message or the first message in the conversation comes out-of-band and needs to be injected with InjectMessage endpoint.

      Parameters

      Returns Promise<Conversation>

    • Inject messages This operation injects a conversation message in to a specific conversation.

      Parameters

      Returns Promise<any>

    • Update the default basePath for the API

      Parameters

      • basePath: string

        The new base path to use for the APIs.

      Returns void

    • Stop conversation This operation stops the referenced conversation, if the conversation is still active. A new conversation will be created if a new message is exchanged between the app or contact that was part of the stopped conversation.

      Parameters

      Returns Promise<any>