I'm running into an issue with the authentication.
2. The response is some HTML with a hyperlink, which when the user clicks, directs them to the ChannelAdvisor authentication page where they grant the application access
3. ChannelAdvisor sends the user back to the redirect uri with the code parameter.
4. My web app then make an api call back to
https://api.channeladvisor.com/oauth2/token with the grant_type as authorization_code (as per their documentation and examples), as well as the code, and redirect uri (not sure why they need this a second time?).
5. The response is simply {"error":"unsupported_grant_type"}
Any help would be appreciated.