+ Start a Discussion

Apex Rest API help



I am trying to access my Rest API class from curl but i am not able to connect my instance using curl.


1. First of all if i want to call my WS through curl what will be the callback url in the remote access setting?

2. When ever i try to call the REST WS through curl using the curl command "curl -H "Authorization: Bearer Access Token "https://ap1.salesforce.com/services/apexrest/Fiserv/GetService/Account ID" " i am getting an SSL error.If i replace it -H with -k it throws invalid session ID.


Please help me on this.