ساخت کاربر جدید (نمایندگان)
نام کاربری | Char | Uname |
پسورد | Char | Pass |
نام کاربری کاربر | Char | User-name |
پسورد کاربر | Char | User-pass |
نام | Char | name |
نام شرکت | Char | company |
کد ملی | Char | national-id |
شماره شناسنامه | Char | certificate-id |
Id سطح دسترسی | Char | access-id |
تلفن | Char | Tell |
موبایل | Char | mobile |
کدپستی | Char | postalcode |
ایمیل | Char | email |
آدرس | Char | address |
newuser | Char | Op |
'',
'pass'=>'',
'user_uname'=>'',
'user_pass'=>'',
'name'=>'',
'company'=>'',
'national_id'=>'',
'certificate_id'=>'',
'access_id'=>'',
'tell'=>'',
'mobile'=>'',
'postalcode'=>'',
'email'=>'',
'address'=>'',
'op'=>'newuser'
);
$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;
?>