sms.ir node.js package
import {Smsir} from 'smsir-js'
- Express, Node.js, etc
const {Smsir} = require('smsir-js')
/**
*
* @param {string} api_key
* @param {int} line_number
*/
const smsir = new Smsir(api_key, line_number)
- Vue.js, React.js, etc
import {Smsir} from 'smsir-js'
/**
*
* @param {string} api_key
* @param {int} line_number
*/
const smsir = new Smsir(api_key, line_number)
Send message to multiple mobile numbers
/**
*
* @param {string} MessageText
* @param {array<string>} Mobiles
* @param {number|null} SendDateTime
* @param {int|null} line_number
* @constructor
*/
smsir.SendBulk(MessageText, Mobiles, SendDateTime, line_number)
Send multiple messages to multiple mobile numbers pair to pair
/**
*
* @param {array<string>} MessageTexts
* @param {array<string>} Mobiles
* @param {number|null} SendDateTime
* @param {int|null} line_number
* @constructor
*/
smsir.SendLikeToLike(MessageTexts, Mobiles, SendDateTime, line_number)
Delete scheduled message pack
/**
*
* @param {string} PackId
* @constructor
*/
smsir.deleteScheduled(PackId)
Send verification code with predefined template
/**
*
* @param {string} Mobile
* @param {int} TemplateId
* @param {array<object>}Parameters
* @constructor
*/
smsir.SendVerifyCode(Mobile, TemplateId, Parameters)
get report of sent message
/**
*
* @param {int} MessageId
* @constructor
*/
smsir.ReportMessage(MessageId)
get report of sent message pack
/**
*
* @param {string} PackId
* @constructor
*/
smsir.ReportPack(PackId)
get report of Today sent Messages
/**
*
* @param {number} pageSize default is 10
* @param {number} pageNumber default is 1
* @constructor
*/
smsir.ReportToday(pageSize, pageNumber)
get report of Archived Messages
/**
*
* @param {number|null} fromDate
* @param {number|null} toDate
* @param {number} pageSize
* @param {number} pageNumber
* @constructor
*/
smsir.ReportArchived(fromDate, toDate, pageSize, pageNumber)
get report of latest received messages
/**
*
* @param {number} count
* @constructor
*/
smsir.ReportLatestReceived(count)
get report of today received messages
/**
*
* @param {number} pageSize default is 10
* @param {number} pageNumber default is 1
* @constructor
*/
smsir.ReportTodayReceived(pageSize, pageNumber)
get report of today received messages
/**
*
* @param {number|null} fromDate
* @param {number|null} toDate
* @param {number} pageSize
* @param {number} pageNumber
* @constructor
*/
smsir.ReportArchivedReceived(fromDate, toDate, pageSize, pageNumber)
get account credit
/**
*
* @returns {Promise<any>}
* @constructor
*/
smsir.getCredit()
get account line numbers
/**
*
* @returns {Promise<any>}
* @constructor
*/
smsir.getLineNumbers()
Please see CHANGELOG for more information what has changed recently.
The MIT License (MIT). Please see License File for more information.