7.0.0 • Published 5 years ago
@datafire/wavecell v7.0.0
@datafire/wavecell
Client library for Wavecell.Sms.Api
Installation and Usage
npm install --save @datafire/wavecelllet wavecell = require('@datafire/wavecell').create({
BearerTokenHeader: ""
});
.then(data => {
console.log(data);
});Description
This API allows Wavecell customers to originate request to send SMS messages anywhere in the World. The messages can be send individually or as a bulk request.
Actions
SmsV1StatusGet
wavecell.SmsV1StatusGet(null, context)Input
This action has no parameters
Output
Output schema unknown
SendManyMessages
wavecell.SendManyMessages({
"subAccountId": ""
}, context)Input
- input
object- subAccountId required
string - body BulkSmsRequest
- subAccountId required
Output
- output BulkSmsResponse
SendManyMessagesInCompactForm
wavecell.SendManyMessagesInCompactForm({
"subAccountId": ""
}, context)Input
- input
object- subAccountId required
string - body BulkSmsRequestCompact
- subAccountId required
Output
- output BulkSmsResponse
SendSingleMessage
wavecell.SendSingleMessage({
"subAccountId": ""
}, context)Input
- input
object- subAccountId required
string - body SmsRequest
- subAccountId required
Output
- output SmsResponse
Definitions
BulkSmsRequest
- BulkSmsRequest
object- clientBatchId
string - includeMessagesInResponse
boolean - messages required
array- items SmsRequest
- template SmsTemplate
- clientBatchId
BulkSmsRequestCompact
- BulkSmsRequestCompact
object- clientBatchId
string - destinations required
array- items
string
- items
- includeMessagesInResponse
boolean - template required SmsTemplate
- clientBatchId
BulkSmsResponse
- BulkSmsResponse
object- acceptedCount
integer - batchId
string - clientBatchId
string - messages
array- items SmsResponse
- rejectedCount
integer
- acceptedCount
ErrorResponse
- ErrorResponse
object- code
integer - errorId
string - message
string - timestamp
string
- code
SmsRequest
- SmsRequest
object- clientMessageId
string - destination required
string - encoding
string(values: AUTO, GSM7bit, UNICODE) - expiry
string - scheduled
string - source
string - text
string
- clientMessageId
SmsResponse
- SmsResponse
object- clientMessageId
string - destination
string - status SmsStatus
- umid
string
- clientMessageId
SmsStatus
- SmsStatus
object- code
string - description
string
- code
SmsTemplate
- SmsTemplate
object- encoding
string(values: AUTO, GSM7bit, UNICODE) - expiry
string - scheduled
string - source
string - text
string
- encoding