Open xgp opened 6 years ago
According to https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_web_server_oauth_flow.htm the instance_url and id are returned when a request is made for an access token in exchange for an authorization code (your Auth.completeOAuthWebServerFlow method that returns an ApiSession). Is it possible to add those fields to ApiSession? Would you accept a PR that does this? Thanks!
instance_url
id
Auth.completeOAuthWebServerFlow
https://github.com/jesperfj/force-rest-api/pull/71
instance_url is available in ApiSession.getApiEndpoint(). id is not currently available but I believe it's just a pointer to the same resource as what you get with ForceApi.getIdentity(). Can you confirm?
ApiSession.getApiEndpoint()
ForceApi.getIdentity()
According to https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_web_server_oauth_flow.htm the
instance_url
andid
are returned when a request is made for an access token in exchange for an authorization code (yourAuth.completeOAuthWebServerFlow
method that returns an ApiSession). Is it possible to add those fields to ApiSession? Would you accept a PR that does this? Thanks!