rest error 2002

Hi I have a web app that i developed a while back, it uses the rest api, during this week i started getting the following response "2002,“message”:“Version is disabled or provided wrong application info (application id or secret key)” , The Same Rest key and app key work perfectly on PHP SDK requests
Heres an example of my rest requests
$url = ‘https://api.backendless.com/v1/data/Users’;
$headers = array(
‘Content-Type : application/json’,

[spoiler=“app”]‘application-id : 3FD54743-9943-C4CE-FF66-BD6DF7BF4E00’
key
‘secret-key : 781EA930-907E-9CAE-FFF0-64D6442DEF00’
[/spoiler]
);
// Open connection
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, “GET”);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// Execute request
$result = curl_exec($ch);
// Close connection
curl_close($ch);

Hi!

Please check your rest request syntax. Following request works as expected:


















curl -X GET -H 'application-id:3FD54743-9943-C4CE-FF66-BD6DF7BF4E00' -H 'secret-key:781Exxx' https://api.backendless.com/v1/data/Users

Hi Kate,

Still Experiencing an issue, Using code generated from the rest Console -> Export As .

All My Calls Worked 100% until last week .

This php code was supplied by the php code generator in the backendless rest console, i only removed the appid and secret for this post .

<?php $url = 'https://api.backendless.com/v1/data/Users'; $headers = array( 'Content-Type : application/json', 'application-id : ', 'secret-key : <secret-key>' ); // Open connection $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Execute request $result = curl_exec($ch); // Close connection curl_close($ch); print_r(json_decode($result, true));

Please see the response in your new topic: http://support.backendless.com/t/rest-error-2002_1