You need to sign in to do that
Don't have an account?

I am calling php rest api and i am getting some error .
i am getting some error when i am trying to call rest api of x2 engine .
07:32:01:949 USER_DEBUG [24]|DEBUG|{"httpHeaders":{"Content-Type":"application\/json; charset=utf-8"},"reqHeaders":{"Authorization":"Basic xxxxxxxxxxxxxx","SFDC_STACK_DEPTH":"1","User-Agent":"SFDC-Callout\/31.0","Pragma":"no-cache","Host":"trial.x2engine.com","Accept":"text\/html, image\/gif, image\/jpeg, *; q=.2, *\/*; q=.2","Via":"1.1 proxy-chi.net.salesforce.com (squid)","X-Forwarded-For":"10.238.12.23","Cache-Control":"no-cache","Connection":"keep-alive"},"message":"You do not have permission to perform this action..","error":true,"status":403}
07:32:01:949 USER_DEBUG [24]|DEBUG|{"httpHeaders":{"Content-Type":"application\/json; charset=utf-8"},"reqHeaders":{"Authorization":"Basic xxxxxxxxxxxxxx","SFDC_STACK_DEPTH":"1","User-Agent":"SFDC-Callout\/31.0","Pragma":"no-cache","Host":"trial.x2engine.com","Accept":"text\/html, image\/gif, image\/jpeg, *; q=.2, *\/*; q=.2","Via":"1.1 proxy-chi.net.salesforce.com (squid)","X-Forwarded-For":"10.238.12.23","Cache-Control":"no-cache","Connection":"keep-alive"},"message":"You do not have permission to perform this action..","error":true,"status":403}
You should be using Apex HTTP Callouts to communicate with external REST APIs. You can start from here: http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_callouts_http.htm

Thanks Matthews , i have been using above link , and then get these error .