Name | Type | Required | Data |
---|---|---|---|
username | Text varchar(50) | YES | Username |
password | Text varchar(100) | YES | Password |
user_token | Text | YES | Token provided |
part_id | Numeric (int 11) | YES | Part assigned id |
status | Numeric (int 1) | YES | Status assigned id |
$post = [
'username' => '',
'password' => '',
'user_token' => '',
'part_id' => '288702',
'status' => '2',
];
$ch = curl_init('https://api.rrr.lt/crm/changePartStatus');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$response = json_decode(curl_exec($ch));
curl_close($ch);
{
"msg": "OK",
"status_code": "R200"
}