Backendless Support
 
Assigned to Dev

PHP REST ERROR " code->[2002] version is disabled...."

my code is

  1. <?php
  2. $url = 'http://api.backendless.com/v1/data/Users?props=ownerId';
  3. $headers = array(
  4. 'Content-Type : application/json',
  5. 'application-id : BA93FD40-F603-26A3-FFEF-946A06DCD600',
  6. 'secret-key : 1BB80B41-E60E-B999-FF6E-D2023400CD00'
  7. );
  8. // Open connection
  9. $ch = curl_init();
  10. curl_setopt($ch, CURLOPT_URL, $url);
  11. curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  12. curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
  13. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  14. // Execute request
  15. $result = curl_exec($ch);
  16. // Close connection
  17. curl_close($ch);
  18. print_r(json_decode($result,true));
  19. ?>

This code is as it exported from REST console

My output is [See attachment]

Files: tp.png
Leave a Comment

Comments (4)

photo
1

Hey Vitaly,i wasn't able to see your comment on this page but i got to see it on my email;i dont know why.Please look into that.

Coming to our topic my secret-key is valid please see my Rest console [See attatchment]

Files: tp.png
photo
1

I have reproduced the issue and have created an internal ticket (BKNDLSS-13753)

Will let you know when the fix will be available

photo
1

What does that mean ?

So will my code work now ?

photo
1

Okay got it.Hoping to get that thing fixed soon.

Thank you !

photo