You need to sign in to do that
Don't have an account?
A few questions about REST URLs
I have a few questions about the example at http://wiki.developerforce.com/index.php/Getting_Started_with_the_Force.com_REST_API
It looks like we need three URLs:
1 for authorization (authUrl, where the user logs in to authorize the app to see their data: https://login.salesforce.com/services/oauth2/authorize?response_type=code&client_id=$CLIENT_ID&redirect_uri=$REDIRECT_URI)
1 for getting the access and refresh tokens (tokenUrl: /services/data/v20.0/query)
1 for making REST calls (instanceUrl), which is na3.salesforce.com or na7.salesforce.com
Will these URLs change? Are they posted somewhere so we can make sure that what we have in our records are up to date?
I also have a few questions about the instance URL. I have two accounts that I am using. One seems to use na3.salesforce.com, and the other uses na7.salesforce.com. Are accounts linked to a particular instance? Will I need to keep track which user or account goes to which instance? Or can I pick a random instance?
They are detailed in the docs, the online help section on remote access for the oauth ones, and the rest api docs for the others.
user logins are part of an organization, and organizations are tied to an instance, no you can't pick a random instance. the oauth responses include information about which instance the authenticated user is on.