Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

accessToken and accessTokenSecret #340

Closed
dtitov opened this Issue Dec 29, 2012 · 14 comments

Comments

Projects
None yet
4 participants

dtitov commented Dec 29, 2012

Is it possible to configure scribe like Twitter4J? I mean something like that:

oauth.consumerKey=*********************
oauth.consumerSecret=******************************************
oauth.accessToken=**************************************************
oauth.accessTokenSecret=******************************************

I can't find where to put accessToken and accessTokenSecret values generated for my application on dev.twitter.com website...

Collaborator

fernandezpablo85 commented Jan 3, 2013

Check the TwitterExample

dtitov commented Jan 3, 2013

I did. In Twitter example you generate accessToken using service.getRequestToken();

But I generated accessToken (and accessTokenSecret) on https://dev.twitter.com

In other words, in Twitter4J I operate with four hashes: consumerKey, consumerSecret, accessToken, accessTokenSecret. I can get them in Dev Center for particular app. But in scribe Twitter example there're only two hashes: apiKey and apiSecret.

Collaborator

fernandezpablo85 commented Jan 3, 2013

You cannot get access token and access token secret in any dev center. You may be able to revoke a token or something, but the access token and secret are particular to the application and need to be obtained.

dtitov commented Jan 3, 2013

Orly?

twitter

Collaborator

fernandezpablo85 commented Jan 3, 2013

If you already have the access token and secret, you can create a Token object like this:

Token token = new Token("access_token", "access_token_secret");

And then do:

oauthService.sign(request, token);

I believe that's what you want. I would strongly advise against doing that but since you seem so determined in hardcoding your token and secret in your app, be my guest.

dtitov commented Jan 3, 2013

Thank you, that's exactly what I was talking about.

What exactly is the "access_token_secret" here? Is the app secret or any other code?

Collaborator

fernandezpablo85 commented Aug 26, 2013

It's in the screenshot above.

ok Got it thanks..
One more thing, Is batch requests of facebook possible with scribe?

Collaborator

fernandezpablo85 commented Aug 26, 2013

I don't know what that means, if it's a different call of the API but it includes a OAuth signature then yes.

just FYI, https://developers.facebook.com/docs/reference/api/batch/
Its combines a number of OAuth calls into one request, It seems impossible to build such a Batch request with OAuthRequest class.. just curious..

Collaborator

fernandezpablo85 commented Aug 26, 2013

That's just a request with a custom HTTP header

i got access token from twitter and i want to use it for getting my timeline or others by authenticating them how to use that access token for all the request......(that means i don't want to create/get access token each time)
Hey plz help its argent.....
plz help me...

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