REST API on Back4App

1,159 views
Skip to first unread message

Ashish Deshpande

unread,
May 6, 2016, 10:58:05 PM5/6/16
to back{4}app
Anyone tried Rest API for pack4app? 
I am referring https://www.back4app.com/docs/rest/guide/tutorial-security.html and tried API on Google Chrome extension Postman.
I am getting below error
{"code":111,"error":"Application ID Missing"}

One question I have here is how do I get X-Access-Token?

Regards,
AD 

Davi Macêdo

unread,
May 9, 2016, 5:11:01 PM5/9/16
to back{4}app
Hi, Ashish.

This is the doc for our old API. We replaced it for the Parse Server. You can find docs for security API here:

Just remember to use https://parseapi.back4app.com/ endpoint instead of https://api.parse.com/1/

Best!

mohn...@gmail.com

unread,
Jul 30, 2016, 1:23:23 PM7/30/16
to back{4}app
Hi
Thank you so much

Pallavi Khutal

unread,
Sep 2, 2016, 6:08:16 PM9/2/16
to back{4}app
Hello Ashish ,

I am facing the same issue while creating app using REST API. First it was giving error Application ID Missing and now its giving unauthorized.
Please let me know what is missing , below is the code i am using:

$headers = array(  
  "Content-Type: application/json",  
  "X-Parse-Email:",.PARSE_EMAIL_ID,  
  "X-Parse-Password:".PARSE_PASSWORD  
);  
$objectData = '{"appName":"'.$app_name.'", "clientClassCreationEnabled":true}';  
$rest = curl_init();  
curl_setopt($rest,CURLOPT_URL,$url);  
curl_setopt($rest,CURLOPT_POST,1);  
curl_setopt($rest,CURLOPT_POSTFIELDS,$objectData);  
curl_setopt($rest,CURLOPT_HTTPHEADER,$headers);  
curl_setopt($rest,CURLOPT_SSL_VERIFYPEER, false);  
curl_setopt($rest,CURLOPT_RETURNTRANSFER, true);  
$response = curl_exec($rest); 
curl_close($rest);  
return $response;

Thank you.

Davi Macêdo

unread,
Sep 12, 2016, 3:08:42 AM9/12/16
to back{4}app
Hi, Pallavi.

Actually app creation endpoint does not exist yet in Parse Server. I am creating a custom endpoint for you (or anyway that need it).

Best.

parulg...@gmail.com

unread,
Nov 9, 2016, 2:12:50 AM11/9/16
to back{4}app
Ashish, Was you able to resolve the issue? If yes can you please post a screenshot from postman? 

Thanks
Parul

Davi Macêdo

unread,
Nov 22, 2016, 11:50:49 AM11/22/16
to back{4}app
Hi, Parul.

What's the error you have?

Best

parulg...@gmail.com

unread,
Nov 23, 2016, 1:49:07 AM11/23/16
to back{4}app
Hi Davi

Thanks for the reply, I have resolved the issue successfully.

Thanks
Parul
Reply all
Reply to author
Forward
0 new messages