680 likes | 684 Views
<br>https://github.com/AmootSoft/AmootSMS<br><br><br>
E N D
Sign up AmootSoft / AmootSMS Public 0 stars 0 forks Star Notifications Code Issues Pull requests Actions Projects Wiki Security Insights main 7 View code README.md AmootSMS ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻝﺎﺳﺭﺍ ﯼﺍﺮﺑ ﻞﻣﺎﮐ ﺲﯾﻭ몭몭 ﺏﻭ ﯼﺍﺭﺍﺩ ﻪﻧﺎﻣﺎﺳ ﮏﯾ ﴾ﻥﺍﺮﯾﺍ ﯽﮑﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﻦﯾﺮﺗ ﻪﺘﻓ몭몭ﯿﭘ﴿ ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ .ﺪﯿﻨﮐ ﻩﺩﺎﻔﺘﺳﺍ ﻥﺁ ﺯﺍ ﺪﯿﻧﺍﻮﺘﯿﻣ ﯽﺘﺣﺍﺮﺑ ﻪﮐ ﺖﺳﺍ ﺮﮕﯾﺩ ﺕﺎﻣﺪﺧ ﻞﻣﺎﮐ ﺖﯾﺮﯾﺪﻣ ﻭ ﮏﻣﺎﯿﭘ ﺖﻓﺎﯾﺭﺩ ﻭ https://www.amootsms.com ﺖﯾﺎﺳ ﺏﻭ ﺱﺭﺩﺁ https://portal.amootsms.com ﻝﺎﺗﺮﭘ ﺱﺭﺩﺁ https://doc.amootsms.com ﺲﯾﻭ몭몭 ﺏﻭ ﺕﺍﺪﻨﺘﺴﻣ ﺱﺭﺩﺁ ﴾ASMX﴿ 2 ﺵﺭﺎﮕﻧ ‐ ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﺲﯾﻭ몭몭 ﺏﻭ https://portal.amootsms.com/webservice2.asmx ﺲﯾﻭ몭몭 ﺏﻭ ﺱﺭﺩﺁ ﴾AccountStatus﴿ ﯼﺮﺑﺭﺎﮐ ﺏﺎﺴﺣ ﺖﯿﻌﺿﻭ ﺪﺘﻣ ﺩﻮﺟﻮﻣ ﻭ ﻩﺪﻧﺎﻤﯿﻗﺎﺑ ﺭﺎﺒﺘﻋﺍ ﻞﯿﺒﻗ ﺯﺍ ﺩﻮﺧ ﯼﺮﺑﺭﺎﮐ ﺏﺎﺴﺣ ﺕﺎﻋ몭몭ﻃﺍ ﯽﻣﺎﻤﺗ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ . ﺪﯿﯾﺎﻤﻧ ﺖﻓﺎﯾﺭﺩ ﺍﺭ ﻁﻮﻄﺧ ﺖﺴﯿﻟ ﻭ ﻝﺎﺳﺭﺍ ﯼﺎﻫ ﻪﻓﺮﻌﺗ ، ﻞﻨﭘ ﺭﺩ AccountStatus ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ
AccountStatus ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ UserName String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ Password String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ ﴾#AccountStatus ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.AccountStatusResult result = client.AccountStatus(UserName, Password); if (result.Status == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ } ﴾AccountStatus ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/AccountStatus_REST"; $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾AccountStatus ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $result = $sms_client‐>AccountStatus($parameters)‐>AccountStatusResult; echo $result;//ﯽﺟﻭﺮﺧ
﴾SendSimple﴿ ﮏﻣﺎﯿﭘ ﻝﺎﺳﺭﺍ ﺪﺘﻣ ﯼﺎﻫ ﻩﺭﺎﻤﺷ ﺎﯾ ﻩﺭﺎﻤﺷ ﻪﺑ ﺍﺭ ﺩﻮﺧ ﯼﺎﻫ ﮏﻣﺎﯿﭘ ، ﻩﺭﺎﻤﺷ ﻭ ﻦﺘﻣ ﻥﺩﺮﮐ ﺩﺭﺍﻭ ﺎﺑ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ .ﺪﯿﯾﺎﻤﻧ ﻝﺎﺳﺭﺍ ﯽﺑﺎﺨﺘﻧﺍ SendSimple ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ UserName String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ Password String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ SendDateTime Object * ﮏﻣﺎﯿﭘ ﻝﺎﺳﺭﺍ ﻥﺎﻣﺯ SMSMessageText String * ﮏﻣﺎﯿﭘ ﻦﺘﻣ LineNumber String * ﻂﺧ ﻩﺭﺎﻤﺷ Mobiles Object * ﮏﻣﺎﯿﭘ ﻥﺎﮔﺪﻨﻨﮐ ﺖﻓﺎﯾﺭﺩ ﯼﺎﻫ ﻞﯾﺎﺑﻮﻣ ﺖﺴﯿﻟ ﴾#SendSimple ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; DateTime SendDateTime = DateTime.Now; string SMSMessageText = "ﻦﻣ ﯽﺘﺴﺗ ﮏﻣﺎﻴﭘ "; string LineNumber = "public"; string[] Mobiles = new string[] { "9120000000", "9150000000", }; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.SendResult result = client.SendSimple(UserName, Password, SendDateTime, SMSMessageText if (result.Status == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ } ﴾SendSimple ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/SendSimple_REST";
$url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $nowIran = new DateTime('now', new DateTimeZone('IRAN')); $url = $url."&"."SendDateTime=".$nowIran‐>format('c'); $url = $url."&"."SMSMessageText=".urlencode("ﻦﻣ ﯽﺘﺴﺗ ﮏﻣﺎﻴﭘ"); $url = $url."&"."LineNumber=public"; $url = $url."&"."Mobiles=9120000000,9150000000"; $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾SendSimple ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $nowIran = new DateTime('now', new DateTimeZone('IRAN')); $parameters['SendDateTime'] = $nowIran‐>format('c'); $parameters['SMSMessageText'] = "ﻦﻣ ﯽﺘﺴﺗ ﮏﻣﺎﻴﭘ"; $parameters['LineNumber'] = "public"; $parameters['Mobiles'] =array("9120000000", "9150000000"); $result = $sms_client‐>SendSimple($parameters)‐>SendSimpleResult; echo $result; ﴾SendSimple ﴾NodeJS ﺪﮐ ﻪﻧﻮﻤﻧ ///////////// Method GET => const https = require('https'); var url = 'https://portal.amootsms.com/webservice2.asmx/SendSimple_REST'; url += '?UserName=MyUserName'; url += '&Password=MyPassword'; url += '&SendDateTime=2020‐01‐01 12:00:00'; url += '&SMSMessageText='+encodeURIComponent('ﺖﺴﺗ'); url += '&LineNumber=public';
url += '&Mobiles=09159999999,09129999999'; https.get(url, (resp) => { let data = ''; // A chunk of data has been received. resp.on('data', (chunk) => { data += chunk; }); // The whole response has been received. Print out the result. resp.on('end', () => { console.log(JSON.parse(data).explanation); }); }).on("error", (err) => { console.log("Error: " + err.message); }); /////////// Method POST => const https = require('https'); var postData = JSON.stringify({ 'UserName': 'MyUserName', 'Password': 'MyPassword', 'SendDateTime': '2020‐01‐01 12:00:00', 'SMSMessageText': 'ﺖﺴﺗ', 'LineNumber': 'public', 'Mobiles': '09159999999,09129999999' }); var options = { hostname: 'portal.amootsms.com', port: 443, path: '/webservice2.asmx/SendSimple_REST', method: 'POST', headers: { 'Content‐Type': 'application/x‐www‐form‐urlencoded', 'Content‐Length': postData.length } }; var req = https.request(options, (resp) => { console.log('statusCode:', resp.statusCode); console.log('headers:', resp.headers); let data = ''; // A chunk of data has been received. resp.on('data', (chunk) => {
resp.on('data', (chunk) => { data += chunk; }); // The whole response has been received. Print out the result. resp.on('end', () => { console.log(JSON.parse(data).explanation); }); }); req.on('error', (e) => { console.error(e); }); req.write(postData); req.end(); ﴾SendQuickOTP﴿ ﯽﺠﻨﺳﺭﺎﺒﺘﻋﺍ ﺪﮐ ﻊﯾ몭몭 ﻝﺎﺳﺭﺍ ﺪﺘﻣ ﺩﻮﺧ ﯽﺑﺎﺨﺘﻧﺍ ﻩﺭﺎﻤﺷ ﻪﺑ ﯼﺭﻮﻓ ﺕﺭﻮﺻ ﻪﺑ ﺍﺭ ﻑ몭몭ﻣ ﺭﺎﺒﮑﯾ ﺰﻣﺭ ﺎﺑ ﮏﻣﺎﯿﭘ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ .ﺪﯿﺷﺎﺑ ﻩﺩﻮﻤﻧ ﻡ몭몭ﻋﺍ ﺍﺭ ﺩﻮﺧ ﻪﻋﻮﺠﻣ ﻡﺎﻧ ﺪﯾﺎﺑ ﺪﺘﻣ ﻦﯾﺍ ﺯﺍ ﻩﺩﺎﻔﺘﺳﺍ ﺖﻬﺟ ، ﺪﯿﯾﺎﻤﻧ ﻝﺎﺳﺭﺍ SendQuickOTP ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ String * UserName ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ String * Password ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ String * Mobile ﮏﻣﺎﯿﭘ ﻩﺪﻨﻨﮐ ﺖﻓﺎﯾﺭﺩ ﻞﯾﺎﺑﻮﻣ Short * CodeLength ﻢﻗﺭ 8 ﺮﺜﮐﺍﺪﺣ ﻭ ﻢﻗﺭ 4 ﻞﻗﺍﺪﺣ﴿ ﺪﮐ ﻝﻮﻃ﴿ String * ﻑ몭몭ﻣ ﺭﺎﺒﮑﯾ ﺰﻣﺭ ﺪﺷﺎﺑ ﯽﻟﺎﺧ ﺮﮔﺍ ﺩﻮﺧ 몭몭ﺭﺎﻔﺳ ﻑ몭몭ﻣ ﺭﺎﺒﮑﯾ ﺰﻣﺭ OptionalCode ﺩﻮﺷ ﯽﻣ ﺪﯿﻟﻮﺗ ﺭﻭ몭몭 ﺖﻤﺳ ﴾#SendQuickOTP ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; string Mobile = "9120000000"; short CodeLength = 4; string OptionalCode = "";
string OptionalCode = ""; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.SendOTPResult result = client.SendQuickOTP(UserName, Password, Mobile, CodeLength if (result.Status == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ } ﴾SendQuickOTP ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/SendQuickOTP_REST"; $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $url = $url."&"."Mobile=9120000000"; $url = $url."&"."CodeLength=4"; $url = $url."&"."OptionalCode="; $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾SendQuickOTP ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $parameters['Mobile'] = "9120000000"; $parameters['CodeLength'] = 4; $parameters['OptionalCode'] = ""; $result = $sms_client‐>SendQuickOTP($parameters)‐>SendQuickOTPResult; echo $result; ﴾SendWithPattern﴿ ﴾ﻥﺮﺘﭘ﴿ ﻮﮕﻟﺍ ﻖﯾﺮﻃ ﺯﺍ ﻝﺎﺳﺭﺍ ﺪﺘﻣ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﺯﺍ ﻩﺩﺎﻔﺘﺳﺍ ﺎﺑ ﺪﯿﺷﺎﺑ ﻩﺩﻮﻤﻧ ﺖﺒﺛ ﯼﺮﺑﺭﺎﮐ ﻞﻨﭘ ﺭﺩ ﺍﺭ ﺩﻮﺧ ﮏﻣﺎﯿﭘ ﯼﻮﮕﻟﺍ ﻪﮐ ﯽﺗﺭﻮﺻ ﺭﺩ .ﺪﯿﯾﺎﻤﻧ ﻝﺎﺳﺭﺍ ﯽﺑﺎﺨﺘﻧﺍ ﻩﺭﺎﻤﺷ ﻪﺑ ﻭ ﯼﺭﻮﻓ ﺕﺭﻮﺻ ﻪﺑ ﺍﺭ ﺩﻮﺧ ﯼﻮﮕﻟﺍ ﺪﯿﻧﺍﻮﺗ
ﯼ ﻪﻨﯾﺰﮔ <‐‐‐ ﺕﺎﻧﺎﮑﻣﺍ ﯼ ﻪﻨﯾﺰﮔ <‐‐‐‐ ﮏﻣﺎﯿﭘ ﯼﺮﺑﺭﺎﮐ ﻞﻨﭘ ﺭﺩ ﺍﺭ ﺩﻮﺧ ﮏﻣﺎﯿﭘ ﯼﻮﮕﻟﺍ ﺪﯾﺎﺑ ﺎﻤﺷ : ﻪﺘﮑﻧ ﯼﻮﮕﻟﺍ ﺪﯿﻧﺍﻮﺘﯿﻣ ، ﻥﺪﺷ ﻝﺎﻌﻓ ﻭ ﺕﺍﺮﺑﺎﺨﻣ ﺰﮐﺮﻣ ﺭﻮﺗﺍﺮﭘﺍ ﻂﺳﻮﺗ ﺪﯿﯾﺎﺗ ﺲﭘ ﻭ ﺪﯿﯾﺎﻤﻧ ﺖﺒﺛ ﻮﮕﻟﺍ ﺎﺑ ﯼﺎﻬﮑﻣﺎﯿﭘ .ﺪﯿﯾﺎﻤﻧ ﻝﺎﺳﺭﺍ ﺪﺘﻣ ﻦﯾﺍ ﺯﺍ ﻩﺩﺎﻔﺘﺳﺍ ﺎﺑ ﺍﺭ ﻩﺪﺷ ﺖﺒﺛ SendWithPattern ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ String * UserName ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ String * Password ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ String * Mobile ﮏﻣﺎﯿﭘ ﻩﺪﻨﻨﮐ ﺖﻓﺎﯾﺭﺩ ﻞﯾﺎﺑﻮﻣ PatternCodeID Int * ﮏﻣﺎﯿﭘ ﯼﻮﮕﻟﺍ ﺪﮐ String[] * ﺎﻫﻮﮕﻟﺍ ﻥﺎﻤﻫ ﺐﯿﺗﺮﺗ ﻪﺑ ﯽﺘﺴﯾﺎﺑ ﮏﻣﺎﯿﭘ ﻦﺘﻣ ﺭﺩ ﯼﺎﻫﻮﮕﻟﺍ ﺮﯾﺩﺎﻘﻣ PatternValues ﺩﻮﺷ ﻪﺘﻓﺮﮔ ﺮﻈﻧ ﺭﺩ ﴾#SendWithPattern ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; string Mobile = "9120000000"; int PatternCodeID = 1; string[] PatternValues = new string[] { "2 ﺮﺘﻣﺍﺭﺎﭘ" ,"1 ﺮﺘﻣﺍﺭﺎﭘ" }; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.SendResult result = client.SendWithPattern(UserName, Password, Mobile, PatternCodeID if (result.Status == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ } ﴾SendWithPattern ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/SendWithPattern_REST"; $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $url = $url."&"."Mobile=9120000000";
$url = $url."&"."Mobile=9120000000"; $url = $url."&"."PatternCodeID=1"; $url = $url."&"."PatternValues=p1,p2"; $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾SendWithPattern ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $parameters['Mobile'] = "9120000000"; $parameters['PatternCodeID'] = 1; $parameters['PatternValues'] =array("2 ﺮﺘﻣﺍﺭﺎﭘ" ,"1 ﺮﺘﻣﺍﺭﺎﭘ"); $result = $sms_client‐>SendWithPattern($parameters)‐>SendWithPatternResult; echo $result; ﴾CalculatePatternMessagePrice﴿ ﻮﮕﻟﺍ ﻝﺎﺳﺭﺍ ﻪﻨﯾﺰﻫ ﻪﺒﺳﺎﺤﻣ ﺪﺘﻣ ﯼﺎﻫ ﻩﺭﺎﻤﺷ ﻭ ﮏﻣﺎﯿﭘ ﻦﺘﻣ ، ﻮﮕﻟﺍ ﻪﺑ ﻁﻮﺑﺮﻣ ﺕﺎﻋ몭몭ﻃﺍ ﻥﺩﺮﮐ ﺩﺭﺍﻭ ﺎﺑ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ .ﺪﯿﯾﺎﻤﻧ ﻪﺒﺳﺎﺤﻣ ﺍﺭ ﺩﻮﺧ ﯼﻮﮕﻟﺍ ﺎﺑ ﻝﺎﺳﺭﺍ ﻪﻨﯾﺰﻫ ، ﻥﺎﮔﺪﻨﻨﮐ ﺖﻓﺎﯾﺭﺩ CalculatePatternMessagePrice ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ String * UserName ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ String * Password ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ String * Mobile ﮏﻣﺎﯿﭘ ﻩﺪﻨﻨﮐ ﺖﻓﺎﯾﺭﺩ ﻞﯾﺎﺑﻮﻣ PatternCodeID Int * ﮏﻣﺎﯿﭘ ﯼﻮﮕﻟﺍ ﺪﮐ String[] * ﺎﻫﻮﮕﻟﺍ ﻥﺎﻤﻫ ﺐﯿﺗﺮﺗ ﻪﺑ ﯽﺘﺴﯾﺎﺑ ﮏﻣﺎﯿﭘ ﻦﺘﻣ ﺭﺩ ﯼﺎﻫﻮﮕﻟﺍ ﺮﯾﺩﺎﻘﻣ PatternValues ﺩﻮﺷ ﻪﺘﻓﺮﮔ ﺮﻈﻧ ﺭﺩ
﴾#CalculatePatternMessagePrice ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; string Mobile = "9120000000"; int PatternCodeID = 1; string[] PatternValues = new string[] { "2 ﺮﺘﻣﺍﺭﺎﭘ" ,"1 ﺮﺘﻣﺍﺭﺎﭘ" }; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient int result = client.CalculatePatternMessagePrice(UserName, Password, Mobile, PatternCodeID if (result > 0) { //ﯽﺟﻭﺮﺧ } ﴾CalculatePatternMessagePrice ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/CalculatePatternMessagePrice_REST" $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $url = $url."&"."Mobile=9120000000"; $url = $url."&"."PatternCodeID=1"; $url = $url."&"."PatternValues=p1,p2"; $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾CalculatePatternMessagePrice ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $parameters['Mobile'] = "9120000000"; $parameters['PatternCodeID'] = 1; $parameters['PatternValues'] =array("2 ﺮﺘﻣﺍﺭﺎﭘ" ,"1 ﺮﺘﻣﺍﺭﺎﭘ"); $result = $sms_client‐>CalculatePatternMessagePrice($parameters)‐>CalculatePatternMessagePriceResult
$result = $sms_client‐>CalculatePatternMessagePrice($parameters)‐>CalculatePatternMessagePriceResult$result = $sms_client‐>CalculatePatternMessagePrice($parameters)‐>CalculatePatternMessagePriceResult echo $result; ﴾ContactCreate﴿ ﺐﻃﺎﺨﻣ ﺩﺎﺠﯾﺍ ﺪﺘﻣ ﻞﻨﭘ ﻦﻔﻠﺗ ﻪﭼﺮﺘﻓﺩ ﺭﺩ ﺍﺭ ﺺﺨﺷ ﻥﺁ ، ﺐﻃﺎﺨﻣ ﺕﺎﻋ몭몭ﻃﺍ ﻥﺩﺮﮐ ﺩﺭﺍﻭ ﺎﺑ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ .ﺪﯿﺋﺎﻤﻧ ﻩﺮﯿﺧﺫ ﺩﻮﺧ ﯼﺮﺑﺭﺎﮐ ContactCreate ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ String * UserName ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ String * Password ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ ﯼﺍﺮﺑ ﴾ﺪﯾﺭﺍﺬﮕﺑ 0 ‐ ﺪﺷﺎﺒﯿﻣ ﻝﺎﻌﻓﺮﯿﻏ﴿ ﺐﻃﺎﺨﻣ ﻩﻭﺮﮔ ﺪﮐ ﺮﺘﻣﺍﺭﺎﭘ ﺯﺍ ﺐﺴﭼﺮﺑ Labels ﺪﯿﻨﮐ ﻩﺩﺎﻔﺘﺳﺍ ContactGroupID Long * Active Bool * ﻝﺎﻌﻓ String * Mobile ﺐﻃﺎﺨﻣ ﻩﺍﺮﻤﻫ ﻩﺭﺎﻤﺷ String * FName ﻡﺎﻧ String * LName ﯽﮔﺩﺍﻮﻧﺎﺧ ﻡﺎﻧ GenderType Bool * False = ﻢﻧﺎﺧ , True = ﺎﻗﺁ String * CompanyTitle ﺖﮐ몭몭 ﻥﺍﻮﻨﻋ String * JobTitle ﻞﻐﺷ/ﺖﻤﺳ ﻥﺍﻮﻨﻋ String * Email ﻞﯿﻤﯾﺍ String * CityName ﺮﻬﺷ ﻡﺎﻧ String * AddressText ﺱﺭﺩﺁ
ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ Object * BornDate ﺪﻟﻮﺗ ﺦﯾﺭﺎﺗ Object * AnniversaryDate ﺩﺮﮕﻟﺎﺳ ﺦﯾﺭﺎﺗ String * CustomText1 1 몭몭ﺭﺎﻔﺳ ﺪﻠﯿﻓ String * CustomText2 2 몭몭ﺭﺎﻔﺳ ﺪﻠﯿﻓ String * CustomText3 3 몭몭ﺭﺎﻔﺳ ﺪﻠﯿﻓ String * CustomText4 4 몭몭ﺭﺎﻔﺳ ﺪﻠﯿﻓ String * CustomText5 5 몭몭ﺭﺎﻔﺳ ﺪﻠﯿﻓ String * CustomText6 6 몭몭ﺭﺎﻔﺳ ﺪﻠﯿﻓ Object * CustomDate1 1 몭몭ﺭﺎﻔﺳ ﺦﯾﺭﺎﺗ Object * CustomDate2 2 몭몭ﺭﺎﻔﺳ ﺦﯾﺭﺎﺗ Object * CustomDate3 3 몭몭ﺭﺎﻔﺳ ﺦﯾﺭﺎﺗ String[] * Labels ﺐﺴﭼﺮﺑ ﻦﯾﻭﺎﻨﻋ ﺖﺴﯿﻟ ﴾#ContactCreate ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; //ﺪﺷﺎﺒﻴﻣ ﻝﺎﻌﻓ ﺮﻴﻏ //ﺮﺘﻣﺍﺭﺎﭘ ﺯﺍ // Labels //ﺪﻴﻨﮐ ﻩﺩﺎﻔﺘﺳﺍ long ContactGroupID = 0;
bool Active = true; string Mobile = "09120000000"; string FName = ""; string LName = ""; bool GenderType = true; string CompanyTitle = ""; string JobTitle = ""; string Email = ""; string CityName = ""; string AddressText = ""; DateTime? BornDate = null; DateTime? AnniversaryDate = null; string CustomText1 = ""; string CustomText2 = ""; string CustomText3 = ""; string CustomText4 = ""; string CustomText5 = ""; string CustomText6 = ""; DateTime? CustomDate1 = null; DateTime? CustomDate2 = null; DateTime? CustomDate3 = null; string[] Labels = new string[2]{ "1 ﻩﻭﺮﮔ", "2 ﻩﻭﺮﮔ" }; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.ContactCreateEditResult result = client.ContactCreate(UserName, Password, ContactGroupID, Active, Mobile, FName, LName, GenderType, CompanyTitle, JobTitle, Email, CityName, AddressText, BornDate, AnniversaryDate, CustomText1, CustomText2, CustomText3, CustomText4, CustomText5, CustomText6, CustomDate1, CustomDate2, CustomDate3, Labels );
if (result.Status == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ } ﴾ContactCreate ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/ContactCreate_REST"; $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; //ﺪﺷﺎﺒﻴﻣ ﻝﺎﻌﻓ ﺮﻴﻏ //ﺮﺘﻣﺍﺭﺎﭘ ﺯﺍ // Labels //ﺪﻴﻨﮐ ﻩﺩﺎﻔﺘﺳﺍ $url = $url."&"."ContactGroupID=0"; $url = $url."&"."Active=true"; $url = $url."&"."Mobile=09120000000"; $url = $url."&"."FName="; $url = $url."&"."LName="; $url = $url."&"."GenderType="; $url = $url."&"."CompanyTitle="; $url = $url."&"."JobTitle="; $url = $url."&"."Email="; $url = $url."&"."CityName="; $url = $url."&"."AddressText="; $url = $url."&"."BornDate="; $url = $url."&"."AnniversaryDate="; $url = $url."&"."CustomText1="; $url = $url."&"."CustomText2="; $url = $url."&"."CustomText3="; $url = $url."&"."CustomText4="; $url = $url."&"."CustomText5="; $url = $url."&"."CustomText6="; $url = $url."&"."CustomDate1="; $url = $url."&"."CustomDate2="; $url = $url."&"."CustomDate3="; $url = $url."&"."Labels=2 ﻩﻭﺮﮔ,1 ﻩﻭﺮﮔ"; $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾ContactCreate ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ
ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; //ﺪﺷﺎﺒﻴﻣ ﻝﺎﻌﻓ ﺮﻴﻏ //ﺮﺘﻣﺍﺭﺎﭘ ﺯﺍ // Labels //ﺪﻴﻨﮐ ﻩﺩﺎﻔﺘﺳﺍ $parameters['ContactGroupID'] = 0; $parameters['Active'] = true; $parameters['Mobile'] = '09120000000'; $parameters['FName'] = null; $parameters['LName'] = null; $parameters['GenderType'] = null; $parameters['CompanyTitle'] = null; $parameters['JobTitle'] = null; $parameters['Email'] = null; $parameters['CityName'] = null; $parameters['AddressText'] = null; $parameters['BornDate'] = null; $parameters['AnniversaryDate'] = null; $parameters['CustomText1'] = null; $parameters['CustomText2'] = null; $parameters['CustomText3'] = null; $parameters['CustomText4'] = null; $parameters['CustomText5'] = null; $parameters['CustomText6'] = null; $parameters['CustomDate1'] = null; $parameters['CustomDate2'] = null; $parameters['CustomDate3'] = null; $parameters['Labels'] = array("2ﻩﻭﺮﮔ","1ﻩﻭﺮﮔ"); $result = $sms_client‐>ContactCreate($parameters)‐>ContactCreateResult; echo $result; ﴾ContactDelete﴿ ﺐﻃﺎﺨﻣ ﻑﺬﺣ ﺪﺘﻣ .ﺪﯿﺋﺎﻤﻧ ﻑﺬﺣ ﺩﻮﺧ ﯼﺮﺑﺭﺎﮐ ﻞﻨﭘ ﻦﻔﻠﺗ ﻪﭼﺮﺘﻓﺩ ﺯﺍ ﺍﺭ ﺐﻃﺎﺨﻣ ﮏﯾ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ ContactDelete ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ UserName String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ Password String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ
ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ Password String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ ContactID Long * ﺐﻃﺎﺨﻣ ﺪﮐ ﴾#ContactDelete ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; long ContactID = 0; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.ContactDeleteResult result = client.ContactDelete(UserName, Password, ContactID if (result.Status == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ } ﴾ContactDelete ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/ContactDelete_REST"; $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $url = $url."&"."ContactID=0"; $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾ContactDelete ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $parameters['ContactID'] = 0;
$result = $sms_client‐>ContactDelete($parameters)‐>ContactDeleteResult; $result = $sms_client‐>ContactDelete($parameters)‐>ContactDeleteResult; echo $result; ﴾SendWithAvanak﴿ ﮏﻧﺍﻭﺁ ﯽﺘﻧﺍﺭﺎﮔ ﺎﺑ ﻝﺎﺳﺭﺍ ﺪﺘﻣ ﺭﺩ ،ﺪﯿﯾﺎﻤﻧ ﻝﺎﺳﺭﺍ ﮏﻧﺍﻭﺁ ﯽﺗﻮﺻ ﻡﺎﯿﭘ ﯽﺘﻧﺍﺭﺎﮔ ﺎﺑ ﺍﺭ ﺩﻮﺧ ﯼﺎﻫ ﮏﻣﺎﯿﭘ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ ﺩﺩﺮﮕﯿﻣ ﻡﺎﺠﻧﺍ ﻩﺭﺎﻤﺷ ﻥﺁ ﻪﺑ ﯽﺗﻮﺻ ﻡﺎﯿﭘ ﻝﺎﺳﺭﺍ ﺪﺷﺎﺑ ﻩﺎﯿﺳ ﺖﺴﯿﻟ ﺭﺩ ﻩﺪﻨﻨﮐ ﺖﻓﺎﯾﺭﺩ ﻩﺭﺎﻤﺷ ﻪﮐ ﯽﺗﺭﻮﺻ . SendWithAvanak ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ UserName String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ Password String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ SendDateTime Object * ﮏﻣﺎﯿﭘ ﻝﺎﺳﺭﺍ ﻥﺎﻣﺯ SMSMessageText String * ﮏﻣﺎﯿﭘ ﻦﺘﻣ AvanakMessageText String * ﮏﻧﺍﻭﺁ ﯽﺗﻮﺻ ﻡﺎﯿﭘ ﻦﺘﻣ SpeakerType String * ﯽﺗﻮﺻ ﻡﺎﯿﭘ ﻩﺪﻨﯾﻮﮔ ﻉﻮﻧ female = 1, male = 2 LineNumber String * ﻂﺧ ﻩﺭﺎﻤﺷ Mobiles Object * ﮏﻣﺎﯿﭘ ﻥﺎﮔﺪﻨﻨﮐ ﺖﻓﺎﯾﺭﺩ ﯼﺎﻫ ﻞﯾﺎﺑﻮﻣ ﺖﺴﯿﻟ ﴾#SendWithAvanak ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; DateTime SendDateTime = DateTime.Now; string SMSMessageText = "ﻦﻣ ﯽﺘﺴﺗ ﮏﻣﺎﻴﭘ "; string AvanakMessageText = "ﻦﻣ ﯽﺘﺴﺗ ﯽﺗﻮﺻ ﻡﺎﻴﭘ"; string LineNumber = "public"; AmootSMS.AvanakSpeakerType AvanakSpeakerType = AmootSMS.AvanakSpeakerType.female; string[] Mobiles = new string[] { "9120000000", "9150000000", }; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.SendResult result = client.SendWithAvanak(UserName, Password, SendDateTime
if (result.Status == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ } ﴾SendWithAvanak ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/SendWithAvanak_REST"; $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $nowIran = new DateTime('now', new DateTimeZone('IRAN')); $url = $url."&"."SendDateTime=".$nowIran‐>format('c'); $url = $url."&"."SMSMessageText=".urlencode("ﻦﻣ ﯽﺘﺴﺗ ﮏﻣﺎﻴﭘ"); $url = $url."&"."AvanakMessageText=".urlencode("ﻦﻣ ﯽﺘﺴﺗ ﯽﺗﻮﺻ ﻡﺎﻴﭘ"); $url = $url."&"."AvanakSpeakerType=female"; $url = $url."&"."LineNumber=public"; $url = $url."&"."Mobiles=9120000000,9150000000"; $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾SendWithAvanak ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $nowIran = new DateTime('now', new DateTimeZone('IRAN')); $parameters['SendDateTime'] = $nowIran‐>format('c'); $parameters['SMSMessageText'] = "ﻦﻣ ﯽﺘﺴﺗ ﮏﻣﺎﻴﭘ"; $parameters['AvanakMessageText'] = "ﻦﻣ ﯽﺘﺴﺗ ﯽﺗﻮﺻ ﻡﺎﻴﭘ"; $parameters['AvanakSpeakerType'] = "female"; $parameters['LineNumber'] = "public"; $parameters['Mobiles'] =array("9120000000", "9150000000"); $result = $sms_client‐>SendWithAvanak($parameters)‐>SendWithAvanakResult; echo $result;
﴾ContactEdit﴿ ﺐﻃﺎﺨﻣ ﺶﯾﺍﺮﯾﻭ ﺪﺘﻣ ﻞﻨﭘ ﻦﻔﻠﺗ ﻪﭼﺮﺘﻓﺩ ﺭﺩ ﺍﺭ ﺺﺨﺷ ﻥﺁ ، ﺐﻃﺎﺨﻣ ﺕﺎﻋ몭몭ﻃﺍ ﻥﺩﺮﮐ ﺩﺭﺍﻭ ﺎﺑ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ .ﺪﯿﺋﺎﻤﻧ ﻩﺮﯿﺧﺫ ﻭ ﺶﯾﺍﺮﯾﻭ ﯼﺮﺑﺭﺎﮐ ContactEdit ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ UserName String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ Password String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ ContactID Long * ﺶﯾﺍﺮﯾﻭ ﺖﻬﺟ ﺐﻃﺎﺨﻣ ﺪﮐ ContactGroupID Long * ﺐﻃﺎﺨﻣ ﻩﻭﺮﮔ ﺪﮐ Active Bool * ﻝﺎﻌﻓ Mobile String * ﺐﻃﺎﺨﻣ ﻩﺍﺮﻤﻫ ﻩﺭﺎﻤﺷ FName String * ﻡﺎﻧ LName String * ﯽﮔﺩﺍﻮﻧﺎﺧ ﻡﺎﻧ GenderType Bool * False = ﻢﻧﺎﺧ , True = ﺎﻗﺁ CompanyTitle String * ﺖﮐ몭몭 ﻥﺍﻮﻨﻋ JobTitle String * ﻞﻐﺷ/ﺖﻤﺳ ﻥﺍﻮﻨﻋ Email String * ﻞﯿﻤﯾﺍ CityName String * ﺮﻬﺷ ﻡﺎﻧ AddressText String * ﺱﺭﺩﺁ BornDate Object * ﺪﻟﻮﺗ ﺦﯾﺭﺎﺗ AnniversaryDate Object * ﺩﺮﮕﻟﺎﺳ ﺦﯾﺭﺎﺗ CustomText1 String * 1 몭몭ﺭﺎﻔﺳ ﺪﻠﯿﻓ CustomText2 String * 2 몭몭ﺭﺎﻔﺳ ﺪﻠﯿﻓ CustomText3 String * 3 몭몭ﺭﺎﻔﺳ ﺪﻠﯿﻓ CustomText4 String * 4 몭몭ﺭﺎﻔﺳ ﺪﻠﯿﻓ CustomText5 String * 5 몭몭ﺭﺎﻔﺳ ﺪﻠﯿﻓ CustomText6 String * 6 몭몭ﺭﺎﻔﺳ ﺪﻠﯿﻓ
ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ CustomText6 String * 6 몭몭ﺭﺎﻔﺳ ﺪﻠﯿﻓ CustomDate1 Object * 1 몭몭ﺭﺎﻔﺳ ﺦﯾﺭﺎﺗ CustomDate2 Object * 2 몭몭ﺭﺎﻔﺳ ﺦﯾﺭﺎﺗ CustomDate3 Object * 3 몭몭ﺭﺎﻔﺳ ﺦﯾﺭﺎﺗ ﴾#ContactEdit ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; long ContactID = 0; long ContactGroupID = 0; bool Active = true; string Mobile = "09120000000"; string FName = ""; string LName = ""; bool GenderType = true; string CompanyTitle = ""; string JobTitle = ""; string Email = ""; string CityName = ""; string AddressText = ""; DateTime? BornDate = null; DateTime? AnniversaryDate = null; string CustomText1 = ""; string CustomText2 = ""; string CustomText3 = ""; string CustomText4 = ""; string CustomText5 = ""; string CustomText6 = ""; DateTime? CustomDate1 = null; DateTime? CustomDate2 = null; DateTime? CustomDate3 = null; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.ContactCreateEditResult result = client.ContactEdit(UserName, Password, ContactID, ContactGroupID, Active, Mobile, FName, LName, GenderType, CompanyTitle,
CompanyTitle, JobTitle, Email, CityName, AddressText, BornDate, AnniversaryDate, CustomText1, CustomText2, CustomText3, CustomText4, CustomText5, CustomText6, CustomDate1, CustomDate2, CustomDate3); if (result.Status == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ } ﴾ContactEdit ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/ContactEdit_REST"; $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $url = $url."&"."ContactID=0"; $url = $url."&"."ContactGroupID=0"; $url = $url."&"."Active=true"; $url = $url."&"."Mobile=09120000000"; $url = $url."&"."FName="; $url = $url."&"."LName="; $url = $url."&"."GenderType="; $url = $url."&"."CompanyTitle="; $url = $url."&"."JobTitle="; $url = $url."&"."Email="; $url = $url."&"."CityName="; $url = $url."&"."AddressText="; $url = $url."&"."BornDate="; $url = $url."&"."AnniversaryDate="; $url = $url."&"."CustomText1="; $url = $url."&"."CustomText2="; $url = $url."&"."CustomText3="; $url = $url."&"."CustomText4="; $url = $url."&"."CustomText5="; $url = $url."&"."CustomText6="; $url = $url."&"."CustomDate1=";
$url = $url."&"."CustomDate1="; $url = $url."&"."CustomDate2="; $url = $url."&"."CustomDate3="; $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾ContactEdit ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $parameters['ContactID'] = 0; $parameters['ContactGroupID'] = 0; $parameters['Active'] = true; $parameters['Mobile'] = '09120000000'; $parameters['FName'] = null; $parameters['LName'] = null; $parameters['GenderType'] = null; $parameters['CompanyTitle'] = null; $parameters['JobTitle'] = null; $parameters['Email'] = null; $parameters['CityName'] = null; $parameters['AddressText'] = null; $parameters['BornDate'] = null; $parameters['AnniversaryDate'] = null; $parameters['CustomText1'] = null; $parameters['CustomText2'] = null; $parameters['CustomText3'] = null; $parameters['CustomText4'] = null; $parameters['CustomText5'] = null; $parameters['CustomText6'] = null; $parameters['CustomDate1'] = null; $parameters['CustomDate2'] = null; $parameters['CustomDate3'] = null; $result = $sms_client‐>ContactEdit($parameters)‐>ContactEditResult; echo $result; ﴾ContactGet﴿ ﺐﻃﺎﺨﻣ ﺕﺎﻋ몭몭ﻃﺍ ﺖﻓﺎﯾﺭﺩ ﺪﺘﻣ .ﺪﯿﯾﺎﻤﻧ ﺖﻓﺎﯾﺭﺩ ﺩﻮﺧ ﯼﺮﺑﺭﺎﮐ ﻞﻨﭘ ﺯﺍ ﺍﺭ ﺩﻮﺧ ﺐﻃﺎﺨﻣ ﻪﺑ ﻁﻮﺑﺮﻣ ﺕﺎﻋ몭몭ﻃﺍ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ
.ﺪﯿﯾﺎﻤﻧ ﺖﻓﺎﯾﺭﺩ ﺩﻮﺧ ﯼﺮﺑﺭﺎﮐ ﻞﻨﭘ ﺯﺍ ﺍﺭ ﺩﻮﺧ ﺐﻃﺎﺨﻣ ﻪﺑ ﻁﻮﺑﺮﻣ ﺕﺎﻋ몭몭ﻃﺍ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ ContactGet ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ UserName String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ Password String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ ContactID Long * ﺐﻃﺎﺨﻣ ﺪﮐ ﴾#ContactGet ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; long ContactID = 0; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.GetContactResult result = client.ContactGet(UserName, Password, ContactID if (result.Status == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ } ﴾ContactGet ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/ContactGet_REST"; $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $url = $url."&"."ContactID=0"; $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾ContactGet ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0");
$sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $parameters['ContactID'] = 0; $result = $sms_client‐>ContactGet($parameters)‐>ContactGetResult; echo $result; ﴾ContactGroupList﴿ ﻦﯿﺒﻃﺎﺨﻣ ﴾ﯼﺎﻫ ﺐﺴﭼﺮﺑ﴿ ﯼﺎﻬﻫﻭﺮﮔ ﺖﺴﯿﻟ ﺖﻓﺎﯾﺭﺩ ﺪﺘﻣ ﻦﻔﻠﺗ ﻪﭼﺮﺘﻓﺩ ﺭﺩ ﺩﻮﺟﻮﻣ ﻦﯿﺒﻃﺎﺨﻣ ﴾ﯼﺎﻫ ﺐﺴﭼﺮﺑ﴿ ﯼﺎﻬﻫﻭﺮﮔ ﺖﺴﯿﻟ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ .ﺪﯿﺋﺎﻤﻧ ﺖﻓﺎﯾﺭﺩ ContactGroupList ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ UserName String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ Password String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ ﴾#ContactGroupList ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.AccountStatusResult result = client.ContactGroupList(UserName, Password); if (result.Status == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ } ﴾ContactGroupList ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/ContactGroupList_REST"; $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $json = file_get_contents($url); echo $json;
echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾ContactGroupList ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $result = $sms_client‐>ContactGroupList($parameters)‐>AccountStatusResult; echo $result;//ﯽﺟﻭﺮﺧ ﴾ContactList﴿ ﻩﻭﺮﮔ ﻦﯿﺒﻃﺎﺨﻣ ﺖﺴﯿﻟ ﺖﻓﺎﯾﺭﺩ ﺪﺘﻣ ﻦﯿﺒﻃﺎﺨﻣ ، ﴾ﺐﻃﺎﺨﻣ ﻩﻭﺮﮔ ﺎﯾ ﺐﺴﭼﺮﺑ ﺪﮐ﴿ ﻩﻭﺮﮔ ﺕﺎﻋ몭몭ﻃﺍ ﻥﺩﺮﮐ ﺩﺭﺍﻭ ﺎﺑ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ . ﺪﯿﯾﺎﻤﻧ ﺖﻓﺎﯾﺭﺩ ﺍﺭ ﯼﺪﻨﺑ ﻩﻭﺮﮔ ﻥﺁ ﺭﺩ ﺩﻮﺟﻮﻣ ContactList ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ UserName String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ Password String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ ContactGroupID Long * ﺐﺴﭼﺮﺑ﴿ ﻦﯿﺒﻃﺎﺨﻣ ﻩﻭﺮﮔ ﺪﮐ﴿ ﴾#ContactList ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; long ContactGroupID = 0; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.ContactListResult result = client.ContactList(UserName, Password, ContactGroupID if (result.Status == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ }
﴾ContactList ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/ContactList_REST"; $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $url = $url."&"."ContactGroupID=0"; $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾ContactList ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $parameters['ContactGroupID'] = 0; $result = $sms_client‐>ContactList($parameters)‐>ContactListResult; echo $result; ﴾ContactListUpdates ﴾ContactListUpdates ﺪﺘﻣ .ﺪﯿﯾﺎﻤﻧ ﻩﺩﺎﻔﺘﺳﺍ ﺩﻮﺧ ﻦﯿﺒﻃﺎﺨﻣ ﻥﺩﺮﮐ sync ﯼﺍﺮﺑ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ ContactListUpdates ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ UserName String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ Password String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ ContactGroupID Long * ﻦﯿﺒﻃﺎﺨﻣ ﻩﻭﺮﮔ ﺪﮐ ﴾#ContactListUpdates ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ
string UserName = "MyUserName"; string Password = "MyPassword"; long ContactGroupID = 0; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.ContactListUpdatesResult result = client.ContactListUpdates(UserName, Password if (result.Status == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ } ﴾ContactListUpdates ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/ContactListUpdates_REST"; $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $url = $url."&"."ContactGroupID=0"; $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾ContactListUpdates ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $parameters['ContactGroupID'] = 0; $result = $sms_client‐>ContactListUpdates($parameters)‐>ContactListUpdatesResult; echo $result; ﴾CourseCreateSimple﴿ ﯼﺍ ﻩﺭﻭﺩ ﺪﻨﻤﺷﻮﻫ ﻝﺎﺳﺭﺍ ﺩﺎﺠﯾﺍ ﺪﺘﻣ ﻞﻨﭘ ﻪﮐ ﯽﺗﺭﻮﺻ ﺭﺩ ، ﺪﯿﯾﺎﻤﻧ ﺩﺎﺠﯾﺍ ﺍﺭ ﺪﻨﻤﺷﻮﻫ ﯼﺍ ﻩﺭﻭﺩ ﻝﺎﺳﺭﺍ ﻪﻣﺎﻧﺮﺑ ﮏﯾ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ
ﻞﻨﭘ ﻪﮐ ﯽﺗﺭﻮﺻ ﺭﺩ ، ﺪﯿﯾﺎﻤﻧ ﺩﺎﺠﯾﺍ ﺍﺭ ﺪﻨﻤﺷﻮﻫ ﯼﺍ ﻩﺭﻭﺩ ﻝﺎﺳﺭﺍ ﻪﻣﺎﻧﺮﺑ ﮏﯾ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ .ﺩﺩﺮﮔ ﯽﻣ ﻡﺎﺠﻧﺍ ﺭﺎﮐ ﺩﻮﺧ ﺕﺭﻮﺻ ﻪﺑ ﺎﻫ ﻝﺎﺳﺭﺍ ﺪﺷﺎﺑ ﺭﺎﺒﺘﻋﺍ ﯼﺍﺭﺍﺩ CourseCreateSimple ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ String * UserName ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ String * Password ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ CourseGroupID Long * ﺪﻨﻤﺷﻮﻫ ﯼﺍ ﻩﺭﻭﺩ ﻝﺎﺳﺭﺍ ﻪﻣﺎﻧﺮﺑ ﻩﻭﺮﮔ ﺪﮐ String * ﺪﻨﻤﺷﻮﻫ ﻪﻣﺎﻧﺮﺑ ﻉﻮﻧ Yearly = 0, Monthly = 1, Weekly = CourseType 2, Daily = 3, Object * CourseDateTime ﻪﻣﺎﻧﺮﺑ ﻉﻭ몭몭 ﻥﺎﻣﺯ String * Title ﻥﺍﻮﻨﻋ String * Mobile ﻞﯾﺎﺑﻮﻣ String * SMSMessageText ﮏﻣﺎﯿﭘ ﻦﺘﻣ String * LineNumber ﻂﺧ ﻩﺭﺎﻤﺷ ﴾#CourseCreateSimple ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; long CourseGroupID = 0; AmootSMS.CourseType CourseType = AmootSMS.CourseType.Daily; DateTime CourseDateTime = DateTime.Now.Date; string Title = ""; string Mobile = "9120000000"; string SMSMessageText = ""; string LineNumber = "public"; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.CourseCreateResult result = client.CourseCreateSimple(UserName, Password,
AmootSMS.CourseCreateResult result = client.CourseCreateSimple(UserName, Password,AmootSMS.CourseCreateResult result = client.CourseCreateSimple(UserName, Password, CourseGroupID, CourseType, CourseDateTime, Title, Mobile, SMSMessageText, LineNumber ); if (result.Status == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ } ﴾CourseCreateSimple ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/CourseCreateSimple_REST"; $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $url = $url."&"."CourseGroupID=0"; $url = $url."&"."CourseType=Daily"; $nowIran = new DateTime('now', new DateTimeZone('IRAN')); $url = $url."&"."CourseDateTime=".$nowIran‐>format('c'); $url = $url."&"."Title=MyTitle"; $url = $url."&"."Mobile=9120000000"; $url = $url."&"."SMSMessageText=".urlencode("ﻦﻣ ﯽﺘﺴﺗ ﮏﻣﺎﻴﭘ"); $url = $url."&"."LineNumber=public"; $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾CourseCreateSimple ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $parameters['CourseGroupID'] = 0;
$parameters['CourseType'] = "Daily"; $nowIran = new DateTime('now', new DateTimeZone('IRAN')); $parameters['CourseDateTime'] = $nowIran‐>format('c'); $parameters['Title'] = ""; $parameters['Mobile'] = "9120000000"; $parameters['SMSMessageText'] = ""; $parameters['LineNumber'] = "public"; $result = $sms_client‐>CourseCreateSimple($parameters)‐>CourseCreateSimpleResult; echo $result; ﮏﻧﺍﻭﺁ ﯽﺘﻧﺍﺭﺎﮔ ﺎﺑ ﯼﺍ ﻩﺭﻭﺩ ﺪﻨﻤﺷﻮﻫ ﻝﺎﺳﺭﺍ ﺩﺎﺠﯾﺍ ﺪﺘﻣ ﴾CourseCreateWithAvanak﴿ ﻪﮐ ﯽﺗﺭﻮﺻ ﺭﺩ ، ﺪﯿﯾﺎﻤﻧ ﺩﺎﺠﯾﺍ ﺍﺭ ﺪﻨﻤﺷﻮﻫ ﯼﺍ ﻩﺭﻭﺩ ﻝﺎﺳﺭﺍ ﻪﻣﺎﻧﺮﺑ ﮏﯾ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ . ﺩﺩﺮﮕﯿﻣ ﻡﺎﺠﻧﺍ ﻩﺭﺎﻤﺷ ﻥﺁ ﻪﺑ ﯽﺗﻮﺻ ﻡﺎﯿﭘ ﻝﺎﺳﺭﺍ ﺪﺷﺎﺑ ﻩﺎﯿﺳ ﺖﺴﯿﻟ ﺭﺩ ﻩﺪﻨﻨﮐ ﺖﻓﺎﯾﺭﺩ ﻩﺭﺎﻤﺷ CourseCreateWithAvanak ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ String * UserName ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ String * Password ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ CourseGroupID Long * ﺪﻨﻤﺷﻮﻫ ﯼﺍ ﻩﺭﻭﺩ ﻝﺎﺳﺭﺍ ﻪﻣﺎﻧﺮﺑ ﻩﻭﺮﮔ ﺪﮐ String * ﺪﻨﻤﺷﻮﻫ ﻪﻣﺎﻧﺮﺑ ﻉﻮﻧ Yearly = 0, Monthly = 1, Weekly = 2, Daily = 3, CourseType Object * CourseDateTime ﻪﻣﺎﻧﺮﺑ ﻉﻭ몭몭 ﻥﺎﻣﺯ String * Title ﻥﺍﻮﻨﻋ String * Mobile ﻞﯾﺎﺑﻮﻣ String * SMSMessageText ﮏﻣﺎﯿﭘ ﻦﺘﻣ String * AvanakMessageText ﮏﻧﺍﻭﺁ ﯽﺗﻮﺻ ﻡﺎﯿﭘ ﻦﺘﻣ
ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ String * SpeakerType ﯽﺗﻮﺻ ﻡﺎﯿﭘ ﻩﺪﻨﯾﻮﮔ ﻉﻮﻧ female = 1, male = 2 String * LineNumber ﻂﺧ ﻩﺭﺎﻤﺷ ﴾#CourseCreateWithAvanak ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; long CourseGroupID = 0; AmootSMS.CourseType CourseType = AmootSMS.CourseType.Daily; DateTime CourseDateTime = DateTime.Now.Date; string Title = ""; string Mobile = "9120000000"; string SMSMessageText = ""; string AvanakMessageText = "ﻦﻣ ﯽﺘﺴﺗ ﯽﺗﻮﺻ ﻡﺎﻴﭘ"; AmootSMS.AvanakSpeakerType AvanakSpeakerType = AmootSMS.AvanakSpeakerType.female; string LineNumber = "public"; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.CourseCreateResult result = client.CourseCreateWithAvanak(UserName, Password CourseGroupID, CourseType, CourseDateTime, Title, Mobile, SMSMessageText, AvanakMessageText, AvanakSpeakerType, LineNumber ); if (result.Status == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ } ﴾CourseCreateWithAvanak ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/CourseCreateWithAvanak_REST"; $url = $url."?"."UserName=MyUserName";
$url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $url = $url."&"."CourseGroupID=0"; $url = $url."&"."CourseType=Daily"; $nowIran = new DateTime('now', new DateTimeZone('IRAN')); $url = $url."&"."CourseDateTime=".$nowIran‐>format('c'); $url = $url."&"."Title=MyTitle"; $url = $url."&"."Mobile=9120000000"; $url = $url."&"."SMSMessageText=".urlencode("ﻦﻣ ﯽﺘﺴﺗ ﮏﻣﺎﻴﭘ"); $url = $url."&"."AvanakMessageText=".urlencode("ﻦﻣ ﯽﺘﺴﺗ ﯽﺗﻮﺻ ﻡﺎﻴﭘ"); $url = $url."&"."AvanakSpeakerType=female"; $url = $url."&"."LineNumber=public"; $url = $url."&"."BackupLineNumber=98"; $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾CourseCreateWithAvanak ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $parameters['CourseGroupID'] = 0; $parameters['CourseType'] = "Daily"; $nowIran = new DateTime('now', new DateTimeZone('IRAN')); $parameters['CourseDateTime'] = $nowIran‐>format('c'); $parameters['Title'] = ""; $parameters['Mobile'] = "9120000000"; $parameters['SMSMessageText'] = "ﻦﻣ ﯽﺘﺴﺗ ﮏﻣﺎﻴﭘ"; $parameters['AvanakMessageText'] = "ﻦﻣ ﯽﺘﺴﺗ ﯽﺗﻮﺻ ﻡﺎﻴﭘ"; $parameters['AvanakSpeakerType'] = "female"; $parameters['LineNumber'] = "public"; $result = $sms_client‐>CourseCreateWithAvanak($parameters)‐>CourseCreateWithAvanakResult echo $result; ﯽﺗﺎﻐﯿﻠﺒﺗ ﻂﺧ ﯽﺘﻧﺍﺭﺎﮔ ﺎﺑ ﯼﺍ ﻩﺭﻭﺩ ﺪﻨﻤﺷﻮﻫ ﻝﺎﺳﺭﺍ ﺩﺎﺠﯾﺍ ﺪﺘﻣ
ﯽﺗﺎﻐﯿﻠﺒﺗ ﻂﺧ ﯽﺘﻧﺍﺭﺎﮔ ﺎﺑ ﯼﺍ ﻩﺭﻭﺩ ﺪﻨﻤﺷﻮﻫ ﻝﺎﺳﺭﺍ ﺩﺎﺠﯾﺍ ﺪﺘﻣ ﴾CourseCreateWithBackupLine﴿ ﻪﮐ ﯽﺗﺭﻮﺻ ﺭﺩ ، ﺪﯿﯾﺎﻤﻧ ﺩﺎﺠﯾﺍ ﺍﺭ ﺪﻨﻤﺷﻮﻫ ﯼﺍ ﻩﺭﻭﺩ ﻝﺎﺳﺭﺍ ﻪﻣﺎﻧﺮﺑ ﮏﯾ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ ﻡﺎﺠﻧﺍ ﻝﺎﺳﺭﺍ ﻥﺎﺸﯾﺍ ﻪﺑ ﴾98﴿ ﯽﺗﺎﻐﯿﻠﺒﺗ ﻂﺧ ﻖﯾﺮﻃ ﺯﺍ ﺪﺷﺎﺑ ﻩﺎﯿﺳ ﺖﺴﯿﻟ ﺭﺩ ﻩﺪﻨﻨﮐ ﺖﻓﺎﯾﺭﺩ ﻩﺭﺎﻤﺷ .ﺩﺩﺮﮕﯿﻣ CourseCreateWithBackupLine ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ String * UserName ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ String * Password ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ CourseGroupID Long * ﺪﻨﻤﺷﻮﻫ ﯼﺍ ﻩﺭﻭﺩ ﻝﺎﺳﺭﺍ ﻪﻣﺎﻧﺮﺑ ﻩﻭﺮﮔ ﺪﮐ String * ﺪﻨﻤﺷﻮﻫ ﻪﻣﺎﻧﺮﺑ ﻉﻮﻧ Yearly = 0, Monthly = 1, Weekly CourseType = 2, Daily = 3, Object * CourseDateTime ﻪﻣﺎﻧﺮﺑ ﻉﻭ몭몭 ﻥﺎﻣﺯ String * Title ﻥﺍﻮﻨﻋ String * Mobile ﻞﯾﺎﺑﻮﻣ String * SMSMessageText ﮏﻣﺎﯿﭘ ﻦﺘﻣ String * LineNumber ﻂﺧ ﻩﺭﺎﻤﺷ String * BackupLineNumber ﻥﺎﺒﯿﺘﺸﭘ ﻂﺧ ﻩﺭﺎﻤﺷ ﴾#CourseCreateWithBackupLine ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; long CourseGroupID = 0; AmootSMS.CourseType CourseType = AmootSMS.CourseType.Daily; DateTime CourseDateTime = DateTime.Now.Date; string Title = "";
string Title = ""; string Mobile = "9120000000"; string SMSMessageText = "ﻦﻣ ﯽﺘﺴﺗ ﮏﻣﺎﻴﭘ "; string LineNumber = "public"; string BackupLineNumber = "98"; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.CourseCreateResult result = client.CourseCreateWithBackupLine(UserName, Password CourseGroupID, CourseType, CourseDateTime, Title, Mobile, SMSMessageText, LineNumber, BackupLineNumber ); if (result.Status == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ } ﴾CourseCreateWithBackupLine ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/CourseCreateWithBackupLine_REST" $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $url = $url."&"."CourseGroupID=0"; $url = $url."&"."CourseType=Daily"; $nowIran = new DateTime('now', new DateTimeZone('IRAN')); $url = $url."&"."CourseDateTime=".$nowIran‐>format('c'); $url = $url."&"."Title=MyTitle"; $url = $url."&"."Mobile=9120000000"; $url = $url."&"."SMSMessageText=".urlencode("ﻦﻣ ﯽﺘﺴﺗ ﮏﻣﺎﻴﭘ"); $url = $url."&"."LineNumber=public"; $url = $url."&"."BackupLineNumber=98"; $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status;
﴾CourseCreateWithBackupLine ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $parameters['CourseGroupID'] = 0; $parameters['CourseType'] = "Daily"; $nowIran = new DateTime('now', new DateTimeZone('IRAN')); $parameters['CourseDateTime'] = $nowIran‐>format('c'); $parameters['Title'] = ""; $parameters['Mobile'] = "9120000000"; $parameters['SMSMessageText'] = "ﻦﻣ ﯽﺘﺴﺗ ﮏﻣﺎﻴﭘ"; $parameters['LineNumber'] = "public"; $parameters['BackupLineNumber'] = "98"; $result = $sms_client‐>CourseCreateWithBackupLine($parameters)‐>CourseCreateWithBackupLineResult echo $result; ﴾CourseList﴿ ﯼﺍ ﻩﺭﻭﺩ ﺪﻨﻤﺷﻮﻫ ﻝﺎﺳﺭﺍ ﯼﺎﻫ ﻪﻣﺎﻧﺮﺑ ﺖﺴﯿﻟ ﺖﻓﺎﯾﺭﺩ ﺪﺘﻣ .ﺪﯿﯾﺎﻤﻧ ﺖﻓﺎﯾﺭﺩ ﺍﺭ ﺪﻨﻤﺷﻮﻫ ﯼﺍ ﻩﺭﻭﺩ ﻝﺎﺳﺭﺍ ﯼﺎﻫ ﻪﻣﺎﻧﺮﺑ ﺖﺴﯿﻟ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ CourseList ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ UserName String * Password String * ﴾#CourseList ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.CourseListResult result = client.CourseList(UserName, Password); if (result.Status == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ }
} ﴾CourseList ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/CourseList_REST"; $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾CourseList ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $result = $sms_client‐>CourseList($parameters)‐>CourseListResult; echo $result; ﴾CourseSetActive﴿ ﯼﺍ ﻩﺭﻭﺩ ﺪﻨﻤﺷﻮﻫ ﻝﺎﺳﺭﺍ ﻪﻣﺎﻧﺮﺑ ﻥﺩﺮﮐ ﻝﺎﻌﻓ ﺪﺘﻣ .ﺪﯿﯾﺎﻤﻧ ﻝﺎﻌﻓﺮﯿﻏ ﺎﯾ ﻝﺎﻌﻓ ﺍﺭ ﺪﻨﻤﺷﻮﻫ ﯼﺍ ﻩﺭﻭﺩ ﻝﺎﺳﺭﺍ ﻪﻣﺎﻧﺮﺑ ﮏﯾ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ CourseSetActive ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ UserName String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ Password String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ CourseID Long * ﺪﻨﻤﺷﻮﻫ ﯼﺍ ﻩﺭﻭﺩ ﻝﺎﺳﺭﺍ ﻪﻣﺎﻧﺮﺑ ﺪﮐ Active Bool * ﻥﺩﻮﺑ ﻝﺎﻌﻓ ﴾#CourseSetActive ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ
string UserName = "MyUserName"; string Password = "MyPassword"; long CourseID = 0; bool Active = true; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.Status result = client.CourseSetActive(UserName, Password, CourseID, Active if (result == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ } ﴾CourseSetActive ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/CourseSetActive_REST"; $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $url = $url."&"."CourseID=0"; $url = $url."&"."Active=true"; $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾CourseSetActive ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $parameters['CourseID'] = 0; $parameters['Active'] = true; $result = $sms_client‐>CourseSetActive($parameters)‐>CourseSetActiveResult; echo $result; ﴾GetBankTree﴿ ﯽﺗﺎﻋ몭몭ﻃﺍ ﮏﻧﺎﺑ ﺖﺴﯿﻟ ﺖﻓﺎﯾﺭﺩ ﺪﺘﻣ
﴾GetBankTree﴿ ﯽﺗﺎﻋ몭몭ﻃﺍ ﮏﻧﺎﺑ ﺖﺴﯿﻟ ﺖﻓﺎﯾﺭﺩ ﺪﺘﻣ .ﺪﯿﺋﺎﻤﻧ ﺖﻓﺎﯾﺭﺩ ﺍﺭ ﻩﺍﺮﻤﻫ ﻩﺭﺎﻤﺷ ﯽﺗﺎﻋ몭몭ﻃﺍ ﮏﻧﺎﺑ ﯽﺘﺧﺭﺩ ﺖﺴﯿﻟ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ GetBankTree ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ UserName String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ Password String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ ﴾#GetBankTree ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.BankTreeResult result = client.GetBankTree(UserName, Password); if (result.Status == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ } ﴾GetBankTree ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/GetBankTree_REST"; $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾GetBankTree ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword";
$parameters['Password'] = "MyPassword"; $result = $sms_client‐>GetBankTree($parameters)‐>GetBankTreeResult; echo $result; ﴾GetMessage﴿ ﯽﻟﺎﺳﺭﺍ ﮏﻣﺎﯿﭘ ﺖﻓﺎﯾﺭﺩ ﺪﺘﻣ .ﺪﯿﯾﺎﻤﻧ ﺖﻓﺎﯾﺭﺩ ﺍﺭ ﺪﯾﺩﻮﻤﻧ ﻝﺎﺳﺭﺍ ﻪﮐ ﯽﮑﻣﺎﯿﭘ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ GetMessage ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ UserName String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ Password String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ MessageID Long * ﻡﺎﯿﭘ ﺪﮐ ﴾#GetMessage ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; long MessageID = 1000; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.MessageResult result = client.GetMessage(UserName, Password, MessageID); if (result.Status == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ } ﴾GetMessage ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/GetMessage_REST"; $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $url = $url."&"."MessageID=1000"; $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status;
//echo $result‐>Status; ﴾GetMessage ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $parameters['MessageID'] = 1000; $result = $sms_client‐>GetMessage($parameters)‐>GetMessageResult; echo $result; ﴾RecieveMessages﴿ ﯽﺘﻓﺎﯾﺭﺩ ﯼﺎﻫ ﮏﻣﺎﯿﭘ ﺖﻓﺎﯾﺭﺩ ﺪﺘﻣ .ﺪﯿﯾﺎﻤﻧ ﺖﻓﺎﯾﺭﺩ ﺺﺨﺸﻣ ﯽﻧﺎﻣﺯ ﻩﺯﺎﺑ ﺭﺩ ﺍﺭ ﺩﻮﺧ ﯽﻟﺎﺳﺭﺍ ﯼﺎﻫ ﮏﻣﺎﯿﭘ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ RecieveMessages ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ UserName String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ Password String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ FromDateTime Object * ﻥﺎﻣﺯ/ﺦﯾﺭﺎﺗ ﺯﺍ ToDateTime Object * ﻥﺎﻣﺯ/ﺦﯾﺭﺎﺗ ﺎﺗ ﴾#RecieveMessages ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; DateTime FromDateTime = DateTime.Now.AddMonths(‐1); DateTime ToDateTime = DateTime.Now; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.ReceiveResult result = client.RecieveMessages(UserName, Password, FromDateTime if (result.Status == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ }
﴾RecieveMessages ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/RecieveMessages_REST"; $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $FromDateTime= new DateTime('2020‐01‐01'); $url = $url."&"."FromDateTime=".$FromDateTimeIran‐>format('c'); $ToDateTime= new DateTime('2020‐02‐01'); $url = $url."&"."ToDateTime=".$ToDateTime‐>format('c'); $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾RecieveMessages ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $parameters['FromDateTime'] = "2020‐02‐01"; $parameters['ToDateTime'] = "2020‐03‐01"; $result = $sms_client‐>RecieveMessages($parameters)‐>RecieveMessagesResult; echo $result; ﴾RecieveNewMessages﴿ ﯽﺘﻓﺎﯾﺭﺩ ﺪﯾﺪﺟ ﯼﺎﻫ ﮏﻣﺎﯿﭘ ﺖﻓﺎﯾﺭﺩ ﺪﺘﻣ .ﺪﯿﯾﺎﻤﻧ ﺖﻓﺎﯾﺭﺩ ﺍﺭ ﺩﻮﺧ ﯽﺘﻓﺎﯾﺭﺩ ﺪﯾﺪﺟ ﯼﺎﻫ ﮏﻣﺎﯿﭘ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ .ﺪﻫﺩ ﯽﻣ ﻥﺎﺸﻧ ﺎﻤﺷ ﻪﺑ ﺍﺭ ﺎﻫ ﮏﻣﺎﯿﭘ ﺭﺎﺒﮑﯾ ﻂﻘﻓ ﺪﺘﻣ ﻦﯾﺍ ﯼﺍﺮﺟﺍ ﺭﺎﺑ ﺮﻫ ﺭﺩ : ﻪﺘﮑﻧ RecieveNewMessages ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ
ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ UserName String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ Password String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ Count Int * ﯽﺘﻓﺎﯾﺭﺩ ﯼﺎﻬﻣﺎﯿﭘ ﺩﺍﺪﻌﺗ ﴾#RecieveNewMessages ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; int Count = 10; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.ReceiveResult result = client.RecieveNewMessages(UserName, Password, Count if (result.Status == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ } ﴾RecieveNewMessages ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/RecieveNewMessages_REST"; $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $url = $url."&"."Count=100"; $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾RecieveNewMessages ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $parameters['Count'] = 10;
$parameters['Count'] = 10; $result = $sms_client‐>RecieveNewMessages($parameters)‐>RecieveNewMessagesResult; echo $result; ﴾RelayMessageDeliveryCreate﴿ ﯼﺭﻮﯿﻟﺩ ﺖﻓﺎﯾﺭﺩ ﺖﻬﺟ ﺱﺭﺩﺁ ﻥﺩﻭﺰﻓﺍ ﺪﺘﻣ "ﯽﻟﺎﺳﺭﺍ ﯼﺎﻬﻣﺎﯿﭘ ﯼﺭﻮﯿﻟﺩ ﻝﺎﻘﺘﻧﺍ" ﯼﺎﻬﺳﺭﺩﺁ ﺖﺴﯿﻟ ﻪﺑ ﺪﯾﺪﺟ ﺱﺭﺩﺁ ﮏﯾ ﺪﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ .ﺪﻨﮐ ﻪﻓﺎﺿﺍ RelayMessageDeliveryCreate ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ UserName String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ Password String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ URLAddress String * ﺱﺭﺩﺁ URL ﴾#RelayMessageDeliveryCreate ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; string URLAddress = "http://Mysite.com/RelayMessageDelivery"; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.RelayMessageDeliveryCreateResult result = client.RelayMessageDeliveryCreate if (result.Status == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ } ﴾RelayMessageDeliveryCreate ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/RelayMessageDeliveryCreate_REST" $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $url = $url."&"."URLAddress=".urlencode( "http://Mysite.com/RelayMessageDelivery"); $json = file_get_contents($url); echo $json;
//$result = json_decode($json); //echo $result‐>Status; ﴾RelayMessageDeliveryCreate ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $parameters['URLAddress'] = "http://Mysite.com/RelayMessageDelivery"; $result = $sms_client‐>RelayMessageDeliveryCreate($parameters)‐>RelayMessageDeliveryCreateResult echo $result; ﴾RelayMessageDeliveryList﴿ ﯼﺭﻮﯿﻟﺩ ﺖﻓﺎﯾﺭﺩ ﯼﺎﻫ ﺱﺭﺩﺁ ﺖﺴﯿﻟ ﺖﻓﺎﯾﺭﺩ ﺪﺘﻣ .ﺪﯿﯾﺎﻤﻧ ﺖﻓﺎﯾﺭﺩ ﺍﺭ "ﯽﻟﺎﺳﺭﺍ ﯼﺎﻬﻣﺎﯿﭘ ﯼﺭﻮﯿﻟﺩ ﻝﺎﻘﺘﻧﺍ" ﯼﺎﻬﺳﺭﺩﺁ ﺖﺴﯿﻟ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ RelayMessageDeliveryList ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ UserName String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ Password String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ ﴾#RelayMessageDeliveryList ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.RelayMessageDeliveryListResult result = client.RelayMessageDeliveryList(UserName if (result.Status == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ } ﴾RelayMessageDeliveryList ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ
﴾RelayMessageDeliveryList ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/RelayMessageDeliveryList_REST" $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾RelayMessageDeliveryList ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $result = $sms_client‐>RelayMessageDeliveryList($parameters)‐>RelayMessageDeliveryListResult echo $result; ﴾RelayMessageDeliverySetActive﴿ ﯼﺭﻮﯿﻟﺩ ﻝﺎﻘﺘﻧﺍ ﺱﺭﺩﺁ ﻥﺩﺮﮐ ﻝﺎﻌﻓ ﺪﺘﻣ .ﺪﯿﯾﺎﻤﻧ ﻝﺎﻌﻓﺮﯿﻏ ﺎﯾ ﻝﺎﻌﻓ ﺍﺭ "ﯽﻟﺎﺳﺭﺍ ﯼﺎﻬﻣﺎﯿﭘ ﯼﺭﻮﯿﻟﺩ ﻝﺎﻘﺘﻧﺍ" ﺱﺭﺩﺁ ﮏﯾ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ RelayMessageDeliverySetActive ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ UserName String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ Password String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ RelayMessageDeliveryID Long * ﯽﻟﺎﺳﺭﺍ ﯼﺎﻬﻣﺎﯿﭘ ﯼﺭﻮﯿﻟﺩ ﻝﺎﻘﺘﻧﺍ" ﺱﺭﺩﺁ ﺪﮐ" Active Bool * ﻥﺩﻮﺑ ﻝﺎﻌﻓ ﴾#RelayMessageDeliverySetActive ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword";
long RelayMessageDeliveryID = 0; bool Active = true; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.Status result = client.RelayMessageDeliverySetActive(UserName, Password, if (result == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ } ﴾RelayMessageDeliverySetActive ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/RelayMessageDeliverySetActive_REST" $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $url = $url."&"."RelayMessageDeliveryID=0"; $url = $url."&"."Active=true"; $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾RelayMessageDeliverySetActive ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $parameters['RelayMessageDeliveryID'] = 0; $parameters['Active'] = true; $result = $sms_client‐>RelayMessageDeliverySetActive($parameters)‐>RelayMessageDeliverySetActiveResult echo $result; ﴾RelayRecieveMessageCreate﴿ ﯽﺘﻓﺎﯾﺭﺩ ﯼﺎﻬﻣﺎﯿﭘ ﻝﺎﻘﺘﻧﺍ ﺱﺭﺩﺁ ﻥﺩﻭﺰﻓﺍ ﺪﺘﻣ
ﻪﻓﺎﺿﺍ "ﯽﺘﻓﺎﯾﺭﺩ ﯼﺎﻬﻣﺎﯿﭘ ﻝﺎﻘﺘﻧﺍ" ﯼﺎﻬﺳﺭﺩﺁ ﺖﺴﯿﻟ ﻪﺑ ﺪﯾﺪﺟ ﺱﺭﺩﺁ ﮏﯾ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ .ﺪﻨﮐ ﯽﻣ RelayRecieveMessageCreate ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ UserName String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ Password String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ URLAddress String * ﺱﺭﺩﺁ URL ﴾#RelayRecieveMessageCreate ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; string URLAddress = "http://Mysite.com/RelayRecieveMessage"; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.RelayRecieveMessageCreateResult result = client.RelayRecieveMessageCreate if (result.Status == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ } ﴾RelayRecieveMessageCreate ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/RelayRecieveMessageCreate_REST" $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $url = $url."&"."URLAddress=".urlencode( "http://Mysite.com/RelayRecieveMessage"); $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾RelayRecieveMessageCreate ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ
ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $parameters['URLAddress'] = "http://Mysite.com/RelayRecieveMessage"; $result = $sms_client‐>RelayRecieveMessageCreate($parameters)‐>RelayMessageDeliveryCreateResult echo $result; ﴾RelayRecieveMessageList﴿ ﯽﺘﻓﺎﯾﺭﺩ ﯼﺎﻬﻣﺎﯿﭘ ﻝﺎﻘﺘﻧﺍ ﯼﺎﻫ ﺱﺭﺩﺁ ﺖﻓﺎﯾﺭﺩ ﺪﺘﻣ .ﺪﯿﯾﺎﻤﻧ ﺖﻓﺎﯾﺭﺩ ﺍﺭ "ﯽﺘﻓﺎﯾﺭﺩ ﯼﺎﻬﻣﺎﯿﭘ ﻝﺎﻘﺘﻧﺍ" ﯼﺎﻬﺳﺭﺩﺁ ﺖﺴﯿﻟ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ RelayRecieveMessageList ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ UserName String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ Password String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ ﴾#RelayRecieveMessageList ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.RelayRecieveMessageListResult result = client.RelayRecieveMessageList(UserName if (result.Status == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ } ﴾RelayRecieveMessageList ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/RelayRecieveMessageList_REST" $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $json = file_get_contents($url); echo $json;
echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾RelayRecieveMessageList ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $result = $sms_client‐>RelayRecieveMessageList($parameters)‐>RelayRecieveMessageListResult echo $result; ﯽﺘﻓﺎﯾﺭﺩ ﯼﺎﻬﻣﺎﯿﭘ ﻝﺎﻘﺘﻧﺍ ﺱﺭﺩﺁ ﻥﺩﺮﮐ ﻝﺎﻌﻓ ﺪﺘﻣ ﴾RelayRecieveMessageSetActive﴿ .ﺪﯿﯾﺎﻤﻧ ﻝﺎﻌﻓﺮﯿﻏ ﺎﯾ ﻝﺎﻌﻓ ﺍﺭ "ﯽﺘﻓﺎﯾﺭﺩ ﯼﺎﻬﻣﺎﯿﭘ ﻝﺎﻘﺘﻧﺍ" ﺱﺭﺩﺁ ﮏﯾ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ RelayRecieveMessageSetActive ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ ﻡﺎﻧ ﻉﻮﻧ ﺕﺎﺤﯿﺿﻮﺗ UserName String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﯼﺮﺑﺭﺎﮐ ﻡﺎﻧ Password String * ﺕﻮﻣﺁ ﮏﻣﺎﯿﭘ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺎﻤﺷ ﺭﻮﺒﻋ ﺰﻣﺭ RelayRecieveMessageID Long * ﯽﺘﻓﺎﯾﺭﺩ ﯼﺎﻬﻣﺎﯿﭘ ﻝﺎﻘﺘﻧﺍ" ﺱﺭﺩﺁ ﺪﮐ" Active Bool * ﻥﺩﻮﺑ ﻝﺎﻌﻓ ﴾#RelayRecieveMessageSetActive ﴾C ﺪﮐ ﻪﻧﻮﻤﻧ string UserName = "MyUserName"; string Password = "MyPassword"; long RelayRecieveMessageID = 0; bool Active = true; AmootSMS.AmootSMSWebService2SoapClient client = new AmootSMS.AmootSMSWebService2SoapClient AmootSMS.Status result = client.RelayRecieveMessageSetActive(UserName, Password, RelayRecieveMessageID if (result == AmootSMS.Status.Success)
if (result == AmootSMS.Status.Success) { //ﯽﺟﻭﺮﺧ } ﴾RelayRecieveMessageSetActive ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ $url = "https://portal.amootsms.com/webservice2.asmx/RelayRecieveMessageSetActive_REST" $url = $url."?"."UserName=MyUserName"; $url = $url."&"."Password=MyPassword"; $url = $url."&"."RelayRecieveMessageID=0"; $url = $url."&"."Active=true"; $json = file_get_contents($url); echo $json; //$result = json_decode($json); //echo $result‐>Status; ﴾RelayRecieveMessageSetActive ﴾PHP ﺪﮐ ﻪﻧﻮﻤﻧ ini_set("soap.wsdl_cache_enabled", "0"); $sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', $parameters['UserName'] = "MyUserName"; $parameters['Password'] = "MyPassword"; $parameters['RelayRecieveMessageID'] = 0; $parameters['Active'] = true; $result = $sms_client‐>RelayRecieveMessageSetActive($parameters)‐>RelayRecieveMessageSetActiveResult echo $result; ﴾SendBank﴿ ﯽﺗﺎﻋ몭몭ﻃﺍ ﮏﻧﺎﺑ ﻖﯾﺮﻃ ﺯﺍ ﻝﺎﺳﺭﺍ ﺪﺘﻣ ﻪﻧﺎﻣﺎﺳ ﺭﺩ ﺩﻮﺟﻮﻣ ﯽﺗﺎﻋ몭몭ﻃﺍ ﯼﺎﻫ ﮏﻧﺎﺑ ﺯﺍ ﻩﺩﺎﻔﺘﺳﺍ ﺎﺑ ﺍﺭ ﺩﻮﺧ ﯼﺎﻫ ﮏﻣﺎﯿﭘ ﺪﯿﻧﺍﻮﺗ ﯽﻣ ﺪﺘﻣ ﻦﯾﺍ ﻖﯾﺮﻃ ﺯﺍ .ﺪﯿﯾﺎﻤﻧ ﻝﺎﺳﺭﺍ SendBank ﯼﺩﻭﺭﻭ ﯼﺎﻫﺮﺘﻣﺍﺭﺎﭘ