0

I have developed a simple alexa skill using nodejs which uses salesforce and have been successful linking the account(oauth 2.0). However what i want to do is to invoke any salesforce API and for this i require the instance_url that is returned in the oauth response. How do access this in alexa skill? Or is their any salesforce api through which i can get the instance url using the accessToken?

hisener
  • 1,431
  • 1
  • 17
  • 23
Akhil Soman
  • 2,077
  • 2
  • 17
  • 30
  • Appears you need to use the URL CLass within the Salesforce REST API. There is some information at: https://salesforce.stackexchange.com/questions/64616/how-to-get-salesforce-instance-url – jwilleke Jul 24 '17 at 09:40

1 Answers1

0

Solution : I got an API from salesforce that returns the Information about a User.

API Endpoint : https://login.salesforce.com/services/oauth2/userinfo

I got the solution from this stackexchange link. The API accepts an access token in header or as a parameter 'oauth_token'. Refer the above link or this salesforce help link.

Akhil Soman
  • 2,077
  • 2
  • 17
  • 30