I need to install a modx revo and some content will be use a api example of api:
"example GET require:
$ch = curl_init(""
https://autoprokat24.ru/api/crm/bagholerange"");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, ""GET"");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(########################## //autorize (token)
$result = curl_exec($ch);
curl_close($ch);
$response = json_decode($result); "
and:
"post require"
$data = array(
""phone""=>""+7(555)555-55-55"",
""model_id""=>""15"",
""tip_arendy""=>""daily"",
""sum""=>""999""
);
$ch = curl_init(""
https://autoprokat24.ru/api/crm/oneclickorder"");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(#######################));
$result = curl_exec($ch);
curl_close($ch);
$response = json_decode($result); "
Who can help me how i can use this for modx revo, because i have not found the answer in off site
Please give me a works example
[ed. note: imagination last edited this post 5 years, 10 months ago.]