Hi @John_Borelli,
Thanks for bearing me, here what I am doing.
I need to integrate infusionSoft with salesforce.
First I redirect to “https://signin.infusionsoft.com/app/oauth/authorize” along with client_id ,redirect_uri,response_type and scope. client_id and redirect_uri we can suppose here any random number and url because I don’t want them to publish on community.
after that I got redirected to the redirect_uri and also I got a code in the response and using that code i make a new request which look like
Endpoint=https://api.infusionsoft.com/token?code=2rhd5mwyy2kfq8wrgeyckur6
&client_id=rtertretertert
&grant_type=authorization_code
&client_secret=rggeerbbdb
&redirect_uri=https://test.salesforce.com/services/authcallback/645rddbdbdd/InfusionSoft_Auth_Provider,
Method=POST
here code in not static its dynamic and change every time when I hit the url, Here I just typed random number.
so from this request i am not getting the response like you had post above
/************************************************************************************/
Once the /token endpoint calls back, you will be sent a json string in the body of the callback with the following information:
object(stdClass)[2] public ‘access_token’ => string ‘{access token here}’ (length=24)
public ‘token_type’ => string ‘bearer’ (length=6)
public ‘expires_in’ => int 86400
public ‘refresh_token’ => string ‘{refresh token here}’ (length=24)
public ‘scope’ => string ‘full|ab123.infusionsoft.com’ (length=27)
public ‘applicationName’ => string ‘ab123’ (length=5)
/************************************************************************************/
I am not getting the above response instead I got invalid client(401). and I didn’t got the token a single time, so refreshing the token comes after that, before that I need to get the token at least once.
May be this is because of some permission which need to give to user in order to gain access because as the error says invalid client so I think user don’t have permission so if you can let me know how give permission to user.
If you can provide me your skpe id then I can call you and explain you more better.