function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ram ChaturvediRam Chaturvedi 

How can i call php rest api from salesforce ?

I want to call x2 engine rest api  from salesforce , how can i do because i am new to integration so from where i have to start .

ShashankShashank (Salesforce Developers) 
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
Ram ChaturvediRam Chaturvedi
Thanks Shashank : 
But i am getting a error :
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}
ShashankShashank (Salesforce Developers) 
Looks like the issue is on your php rest api side authentication.