Loading...Please Wait
NIKSMS
{{:: 'controllers.documentation.niksmsBrand' | translate }}
API
Version 1
General Guide
GetSmsDeliveryWithClientId
Programming Features
Why do we need programming features?
programming interface features
Use web service or API?
How to use web service
Implementation and details
GetCredit
GetDiscountCredit
GetPanelExpireDate
GetReceiveSms
GetServertime
GetSmsDelivery
GroupSms
OldSendByGet
OldSendByPost
PtpSms
ResetReceiveSmsVisitedStatus
Developers
Programming Features
Communication Methods
Sending methods
Group SMS
Send SMS one by one
Receiving Methods
Receiving unread SMS
Sent status methods
Receiving sent message status
Receiving sent message status with user code
Other methods
Get account credentials
Get an account discount
Get User Panel Expiration Date
Mark incoming SMS as unread
How to implementing methods
Ready libraries
Initial description
Implementation in #C language
Initial description
Sending methods
GroupSMS
PTPSms
Receiving Methods
GetReceiveSms
send status methods
GetSmsDelivery
GetSmsDeliveryWithClientId
Other methods
GetCredit
GetDiscountCredit
GetPanelExpireDate
ResetReceiveSmsVisitedStatus
Advanced methods
Info
Numbers
ServerDateTime
States
ContactGroupCreate
ContactGroupDelete
ContactGroupGet
ContactGroupList
ContactGroupUpdate
ContactMemberCreate
ContactMemberDelete
ContactMemberGet
ContactMemberList
ContactMemberUpdate
ContactCustomFieldCreate
ContactCustomFieldDelete
ContactCustomFieldGet
ContactCustomFieldList
ContactCustomFieldUpdate
ContactFiles
Holoo
ReceiveList
SendOne
SendGroup
P2P
GroupAsync
P2PAsync
Implementation in JS language
Basic description
Sending methods
GroupSMS
PTPSMS
Receiving Methods
GetReceiveSms
Sent status methods
GetSmsDelivery
GetSmsDeliveryWithClientId
Other methods
GetCredit
GetDiscountCredit
GetPanelExpireDate
ResetReceiveSmsVisitedStatus
Advanced methods
Info
Numbers
ServerDateTime
States
ContactGroupCreate
ContactGroupDelete
ContactGroupGet
ContactGroupList
ContactGroupUpdate
ContactMemberCreate
ContactMemberDelete
ContactMemberGet
ContactMemberList
ContactMemberUpdate
ContactCustomFieldCreate
ContactCustomFieldDelete
ContactCustomFieldGet
ContactCustomFieldList
ContactCustomFieldUpdate
ContactFiles
Holoo
ReceiveList
SendOne
SendGroup
P2P
GroupAsync
P2PAsync
Restful API
Basic description
Implementation in #C language
Basic description
Sending methods
GroupSMS
PTPSMS
Receiving Methods
GetReceiveSms
Send status methods
GetSmsDelivery
GetSmsDeliveryWithClientId
Other methods
GetCredit
GetDiscountCredit
GetPanelExpireDate
ResetReceiveSmsVisitedStatus
Advanced methods
Info
Numbers
ServerDateTime
States
ContactGroupCreate
ContactGroupDelete
ContactGroupGet
ContactGroupList
ContactGroupUpdate
ContactMemberCreate
ContactMemberDelete
ContactMemberGet
ContactMemberList
ContactMemberUpdate
ContactCustomFieldCreate
ContactCustomFieldDelete
ContactCustomFieldGet
ContactCustomFieldList
ContactCustomFieldUpdate
ContactFiles
Holoo
ReceiveList
ReceiveReset
Delivery
SendOne
SendGroup
P2P
GroupAsync
P2PAsync
Implementation in PhP
General Description
Sending methods
GroupSMS
PTPSMS
Receiving Methods
GetReceiveSms
Methods of receiving sending status
GetSmsDelivery
GetSmsDeliveryWithClientId
Other methods
GetCredit
GetDiscountCredit
GetPanelExpireDate
ResetReceiveSmsVisitedStatus
Advanced methods
Info
Numbers
ServerDateTime
States
ContactGroupCreate
ContactGroupDelete
ContactGroupGet
ContactGroupList
ContactGroupUpdate
ContactMemberCreate
ContactMemberDelete
ContactMemberGet
ContactMemberList
ContactMemberUpdate
ContactCustomFieldCreate
ContactCustomFieldDelete
ContactCustomFieldGet
ContactCustomFieldList
ContactCustomFieldUpdate
ContactFiles
Holoo
ReceiveList
ReceiveReset
Delivery
SendOne
SendGroup
P2P
GroupAsync
P2PAsync
SOAP API
Plugins
Wordpress plugin
Woocommerce-sms plugin
Peach accounting software settings
Home page ( why, how )
Special offers for developers
Quick Connection (SDK Library)
SOAP Web Service Guide
Library (modules and extensions)
Connecting Contractor Software
PTPSms
Send one by one
{{:: 'controllers.documentation.chooseFramework' | translate }}
PM > Install-Package
NikSms.Library.Net
PM > Install-Package
NikSms.Library.NetCore
using NikSms.Library.Net.ViewModels; using NikSms.Library.Net.WebApi; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace AwesomeApplication { public class NikSmsApiV1Client { private readonly PublicApiV1 service; public NikSmsApiV1Client(string username, string password, string culture = "fa") { service = new PublicApiV1(username, password, culture); } public async Task<string> PtpSmsDictionary( string senderNumber, Dictionary<string, string> recepients, DateTime? sendOn = null, int? sendType = null, List<string> yourMessageIds = null ) { return await PtpSms(senderNumber, recepients.Keys.ToList(), recepients.Values.ToList(), sendOn, sendType, yourMessageIds); } public async Task<string> PtpSms( string senderNumber, List<string> numbers, List<string> messages, DateTime? sendOn = null, int? sendType = null, List<string> yourMessageIds = null ) { var result = await service.PtpSms(senderNumber, numbers, messages, sendOn, sendType, yourMessageIds); switch (result.Status) { case LibOperationResultStatus.Success: return result.Data; case LibOperationResultStatus.InvalidModel: throw new Exception("Some required inputs are misssing..."); case LibOperationResultStatus.UnAuthorized: throw new Exception("Some thing is wrong with your account (call support!)"); case LibOperationResultStatus.Failed: throw new Exception("Ooops its our fault!"); default: throw new Exception("You sould not be here... :D"); } } } }