پارامترهای ورودی
|
|
|
---|---|---|
نام کاربری
|
Char
|
Uname
|
پسورد
|
Char
|
Pass
|
موضوع تیکت
|
Char
|
subject
|
توضیحات
|
Int
|
description
|
نوع پشتیبانی
|
Char
|
type
|
درجه اهمیت
|
Char
|
importance
|
اطلاع رسانی از طریق پیامک
|
Int
|
sms_notification
|
فایل ضمیمه
|
Int
|
file
|
ticketadd
|
Int
|
op
|
ارسال تیکت پشتیبانی
فایل مورد بحث : addticketResponse
خطا : The username or password is incorrect مربوط به اشتباه بودن نام کاربری یا رمز عبور می باشد.
مشاهده نمونه کدها
<?php $url = "https://ippanel.com/services.jspd"; $param = array ( 'uname'=>'', 'pass'=>'', 'subject' => 'موضوع', 'description' => 'توضیحات', 'type'=> 'fiscal', //'fiscal','webservice','problem','lineservices' 'importance' => 'low', //'low','middle','quick','acute' 'sms_notification' => 'yes', //'yes','no' 'file'=> 'http://yoururl/file.zip', /// .zip 'op'=>'ticketadd' ); $handler = curl_init($url); curl_setopt($handler, CURLOPT_CUSTOMREQUEST, "POST"); 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; ?>
آیا این مقاله برای شما مفید بود؟
بله|نه|