Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I got two applications which are now both using the REST approach. I find the Salesforce documentation very useful.</p> <p><strong>Remote Access</strong></p> <p>Create the consumer key, secret and set the callback under Setup -> App Setup -> Develop -> Remote Access</p> <p><strong>Callback</strong></p> <p>The callback handling is part of OAuth protocol - find an explanation here: <a href="http://developer.xero.com/oauth-callback-domains-explained/" rel="nofollow">OAuth Callback Domains explained</a> It simply needs to return a valid page - it is a security feature validating the domain</p> <p><strong>More on OAuth Authorisation</strong></p> <p>See <a href="http://www.salesforce.com/us/developer/docs/api_rest/Content/quickstart_oauth.htm" rel="nofollow">OAuth Quickstart</a></p> <p><strong>Alternative: Session ID Authorization for SOAP</strong></p> <p>Explained at the bottom of the page <a href="http://blogs.developerforce.com/tech-pubs/2011/10/salesforce-apis-what-they-are-when-to-use-them.html" rel="nofollow">OAuth Quickstart</a></p> <p><strong>Using higher level libs</strong></p> <p>It is worth investigating if your chosen target environment has a higher level library available that covers some of the lower level aspects of communicating with the API. I am for example using a Ruby gem on top of the API - less work handling some of the API aspects.</p> <p><strong>Also useful</strong></p> <p><a href="http://blogs.developerforce.com/tech-pubs/2011/10/salesforce-apis-what-they-are-when-to-use-them.html" rel="nofollow">Salesforce APIs – What They Are &amp; When to Use Them</a></p> <p><strong>SOAP</strong></p> <p>I got an older application running on SOAP - does only require password and security token. No need to create a Remote Application if you are going to use that approach.</p> <p><strong>REST</strong></p> <p><a href="http://www.salesforce.com/us/developer/docs/api_rest/" rel="nofollow">Does require OAuth authentication</a> "Before making REST API calls, you must authenticate the user using OAuth 2.0" ... hence you need to create a Remote Application to generate consumer key and secret</p> <p>Enjoy your adventure with the Salesforce API - Eugen</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload