Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to update status from app #10

Open
krzkrzkrz opened this issue Sep 29, 2010 · 7 comments
Open

How to update status from app #10

krzkrzkrz opened this issue Sep 29, 2010 · 7 comments
Labels

Comments

@krzkrzkrz
Copy link

Is there a way to connect to twitter's api to upate a users status using this gem? Or should another approach be used for this?

In theory the app should communicate with http://dev.twitter.com/doc/post/statuses/update to update a users status. Is this already supported or still has to be implemented?

@MSch
Copy link
Owner

MSch commented Sep 29, 2010

Currently the best approach IMO would be to use the twitter gem: http://twitter.rubyforge.org/

You have access to all necessary tokens through the user model.

I might add a nicer interface for it.

@krzkrzkrz
Copy link
Author

So just to be clear. Devise-twitter for twitter authentication and the twitter gem for twitter interaction right?

@MSch
Copy link
Owner

MSch commented Sep 29, 2010

Yes.

I just looked at the documentation for the twitter gem

oauth = Twitter::OAuth.new(Devise::Twitter.consumer_key, Devise::Twitter.consumer_secret)
oauth.authorize_from_access(current_user.twitter_oauth_token, current_user.twitter_oauth_secret)
client = Twitter::Base.new(oauth)

should work.

@krzkrzkrz
Copy link
Author

Lovely, thanks for the prompt reply :-)

@krzkrzkrz
Copy link
Author

Additionally, will devise-twitter support communicating with the twitter api (i.e. updating twitter status, etc) or is this beyond the scope of this gem, since it is only meant for devise and twitter authentication?

@MSch
Copy link
Owner

MSch commented Sep 29, 2010

I'll support integration with the twitter gem but no more, since that clearly falls in the domain of the twitter gem.

@krzkrzkrz
Copy link
Author

tried installing the twitter gem with rails 3 and get an error on startup (issue: http://github.com/jnunemaker/twitter/issues#issue/67).

Instead, I am now using: twitter_oauth (http://github.com/moomerman/twitter_oauth) which works without any problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants