Skip to content

Latest commit

 

History

History
129 lines (91 loc) · 2.68 KB

README.md

File metadata and controls

129 lines (91 loc) · 2.68 KB

sms.ir

sms.ir typescript package

Installation

npm i sms-typescript
  • Angular, etc
import {Smsir} from 'sms-typescript/lib';

export class AppComponent implements OnInit{
  smsWebService!: any;
  constructor() {
    this.smsWebService = new Smsir(
      'Access_key', // string
      'Line_number' // number
    )
  }
}

Send Bulk

Send message to multiple mobile numbers

this.smsWebService.SendBulk(MessageText: string, Mobiles: string[], SendDateTime: number|null, line_number: number|null);

Send Like To Like

Send multiple messages to multiple mobile numbers pair to pair

this.smsWebService.SendLikeToLike(MessageText: string[], Mobiles: string[], SendDateTime: number|null, line_number: number|null)

Delete Scheduled

Delete scheduled message pack

this.smsWebService.deleteScheduled(PackId: string)

Send Verification Code

Send verification code with predefined template

this.smsWebService.SendVerifyCode(Mobile: string, TemplateId: number, Parameters: { name: string; value: string }[])

Message Report

get report of sent message

this.smsWebService.ReportMessage(MessageId: number)

Pack Report

get report of sent message pack

this.smsWebService.ReportPack(PackId: string)

Today Report

get report of Today sent Messages

this.smsWebService.ReportToday(pageSize: number = 10, pageNumber: number = 1)

Archived Report

get report of Archived Messages

this.smsWebService.ReportArchived(fromDate: number|null, toDate: number|null, pageSize: number = 10, pageNumber: number = 1)

Latest Received Report

get report of latest received messages

this.smsWebService.ReportLatestReceived(count: number = 100)

Today Received Report

get report of today received messages

this.smsWebService.ReportTodayReceived(pageSize: number = 10, pageNumber: number = 1)

Archived Received Report

get report of today received messages

this.smsWebService.ReportArchivedReceived(fromDate: number|null, toDate: number|null, pageSize: number = 10, pageNumber: number = 1)

Get Credit

get account credit

this.smsWebService.getCredit()

Get Line Numbers

get account line numbers

this.smsWebService.getLineNumbers()

Changelog

Please see CHANGELOG for more information what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.