Skip to main content

SMSService

Stentor API Reference


Stentor API Reference / stentor-models/src / SMSService

Interface: SMSService

Defined in: packages/stentor-models/src/Services/SMSService.ts:9

Service to facilitate sending an SMS (text message) to a number.

Methods​

send()​

send(from, to, text): Promise\<SMSResponse>

Defined in: packages/stentor-models/src/Services/SMSService.ts:10

Parameters​

from​

string

to​

string

text​

string

Returns​

Promise\<SMSResponse>


sendImage()​

sendImage(from, to, imageUrl): Promise\<SMSResponse>

Defined in: packages/stentor-models/src/Services/SMSService.ts:11

Parameters​

from​

string

to​

string

imageUrl​

string

Returns​

Promise\<SMSResponse>