Adds API support for TradeStation #339

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@johnjelinek

No description provided.

@johnjelinek johnjelinek commented on the diff Dec 20, 2012
src/main/java/org/scribe/oauth/OAuth20ServiceImpl.java
@@ -28,6 +28,7 @@ public OAuth20ServiceImpl(DefaultApi20 api, OAuthConfig config)
public Token getAccessToken(Token requestToken, Verifier verifier)
{
OAuthRequest request = new OAuthRequest(api.getAccessTokenVerb(), api.getAccessTokenEndpoint());
+ request.addQuerystringParameter(OAuthConstants.GRANT_TYPE, OAuthConstants.AUTHORIZATION_CODE);
@johnjelinek
johnjelinek Dec 20, 2012

@fernandezpablo85 I needed to modify this to get the an access token from our API. The OAuth2 spec says to that grant_type=authorization_code is a required parameter.

@johnjelinek

@fernandezpablo85 why did this get rejected?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment