Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9c9cf85

Browse filesBrowse files
author
Michael van der Net
committed
Update documentation for twitter
1 parent 9daa48d commit 9c9cf85
Copy full SHA for 9c9cf85

File tree

1 file changed

+9
-5
lines changed
Filter options

1 file changed

+9
-5
lines changed

‎lib/MessageApiClient.ts

Copy file name to clipboardExpand all lines: lib/MessageApiClient.ts
+9-5
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ export class MessageApiClient {
4545

4646
/**
4747
* Send an SMS message
48-
* @param to array of recipients for the message, specify the numbers in international format with leading 00
49-
* @param from the sender of the message, specify valid Sender ID
48+
* @param to array of recipients for the message, specify the numbers in international format with leading 00
49+
* For Twitter: use the Twitter Snowflake ID
50+
* @param from the sender of the message, specify valid Sender ID.
51+
* For Twitter: use the Twitter Snowflake ID of the account you want to use as sender.
5052
* @param message the body of the SMS message to be sent
5153
* @param reference (optional) reference to the message to query it later in the CM.platform.
5254
*/public sendTextMessage(to: string[], from: string, message: string, reference: string = undefined) {
@@ -78,8 +80,10 @@ export class Message extends CMTypes.MessageEnvelope {
7880

7981
/**
8082
* Sets the essential message parameters.
81-
* @param to array of recipients for the message, specify the numbers in international format with leading 00
82-
* @param from the sender of the message, specify valid Sender ID
83+
* @param to array of recipients for the message, specify the numbers in international format with leading 00.
84+
* For Twitter: use the Twitter Snowflake ID
85+
* @param from the sender of the message, specify valid Sender ID.
86+
* For Twitter: use the Twitter Snowflake ID of the account you want to use as sender.
8387
* @param message the body of the SMS message to be sent
8488
* @param reference (optional) reference to the message to query it later in the CM.platform.
8589
*/
@@ -102,7 +106,7 @@ export class Message extends CMTypes.MessageEnvelope {
102106

103107
/**
104108
* Sets the allowed channels to use. Default is to allow any channel configured for your account
105-
* @param channels array of allowed channels. Any of "SMS", "Viber", "RCS", "Apple Business Chat" and "WhatsApp"
109+
* @param channels array of allowed channels. Any of "SMS", "Viber", "RCS", "Apple Business Chat", "WhatsApp" and "Twitter"
106110
*/
107111
public setAllowedChannels(channels: Channel[]): Message {
108112
this.messages.msg[0].allowedChannels = channels || [];

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.