برای خرید سامانه پیامک همین الان در پیامک آموت ثبت نام کنید
متد وب سرویس
دریافت آدرس های انتقال پیامهای دریافتی (RelayRecieveMessageList)
آخرین بروزرسانی
شنبه 27 شهریور 1400 14:43
Loading
آدرس وب سرویس
non-wsdl
wsdl
متد RelayRecieveMessageList
از طریق این متد می توانید لیست آدرسهای "انتقال پیامهای دریافتی" را دریافت نمایید.
Loading
نام | نوع | توضیحات |
UserName | String الزامی | نام کاربری شما در سامانه پیامک آموت |
Password | String الزامی | رمز عبور شما در سامانه پیامک آموت |
Loading
نام | نوع | توضیحات |
ReturnValue | Object | |
Loading
string UserName = "MyUserName";
string Password = "MyPassword";
SMS.WebService2SoapClient client = new SMS.WebService2SoapClient("WebService2Soap12");
SMS.RelayRecieveMessageListResult result = client.RelayRecieveMessageList(UserName, Password);
if (result.Status == SMS.Status.Success)
{
//خروجی
}
$url = "https://portal.amootsms.com/webservice2.asmx/RelayRecieveMessageList_REST";
$url = $url."?"."UserName=".urlencode("MyUserName");
$url = $url."&"."Password=".urlencode("MyPassword");
$json = file_get_contents($url);
echo $json;
//$result = json_decode($json);
//echo $result->Status;
ini_set("soap.wsdl_cache_enabled", "0");
$sms_client = new SoapClient('https://portal.amootsms.com/webservice2.asmx?wsdl', array('encoding'=>'UTF-8'));
$parameters['UserName'] = "MyUserName";
$parameters['Password'] = "MyPassword";
$result = $sms_client->RelayRecieveMessageList($parameters)->RelayRecieveMessageListResult;
echo $result;