پارامترهای ورودی
|
|
|
---|---|---|
نام کاربری
|
Char
|
Uname
|
پسورد
|
Char
|
Pass
|
شماره ارسال کننده
|
Char
|
From
|
پیام
|
Int
|
Message
|
Json ای دی شهر
|
Char
|
city_id
|
نوع شماره : دائمی یا اعتباری
|
Char
|
number_type
|
countrypreid
|
Char
|
op
|
وب سرویس ارسال پیامک بین المللی
فایل مورد بحث : countryPreIdResponse
خطا : The username or password is incorrect مربوط به اشتباه بودن نام کاربری یا رمز عبور می باشد.
مشاهده نمونه کدها
<?php //$type = &quot;credit&quot;; //etebari //$type = &quot;fixed&quot;; //sabet $url = &quot;https://ippanel.com/services.jspd&quot;; $param = array ( 'uname'=>'', 'pass'=>'', 'city_id'=>'', 'number_type'=>$type, 'op'=>'countrypreid' ); $handler = curl_init($url); curl_setopt($handler, CURLOPT_CUSTOMREQUEST, &quot;POST&quot;); curl_setopt($handler, CURLOPT_POSTFIELDS, $param); curl_setopt($handler, CURLOPT_RETURNTRANSFER, true); $response2 = curl_exec($handler); $response2 = json_decode($response2); $res_code = $response2[0]; $res_data = $response2[1]; echo $res_data; ?>
</pre>
<p>
آیا این مقاله برای شما مفید بود؟
بله|نه|