Options
All
  • Public
  • Public/Protected
  • All
Menu

TwilioServiceClient

The Twilio service client.

Index

Variables

Methods

Variables

Const factory

factory: NamedServiceClientFactory<TwilioServiceClient> = new class implements NamedServiceClientFactory<TwilioServiceClient> {public getNamedClient(service: CoreStitchServiceClient,client: StitchAppClientInfo): TwilioServiceClient {return new TwilioServiceClientImpl(new CoreTwilioServiceClient(service));}}()

Methods

sendMessage

  • sendMessage(to: string, from: string, body: string, mediaUrl?: undefined | string): Promise<void>
  • Sends an SMS/MMS message.

    Parameters

    • to: string

      the number to send the message to.

    • from: string

      the number that the message is from.

    • body: string

      the body text of the message.

    • Optional mediaUrl: undefined | string

      the Url of the media to send in an MMS.

    Returns Promise<void>

    a Promise that resolves when the send is done.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc