after i searched, i got so many links related with the twitter integration ,
Then i do that with one following link

http://cbpowell.wordpress.com/2011/03/17/twitter-oauth-and-ruby-on-rails-integrated-cookbook-style-in-the-console-updated-for-twitter-1-0/

after some steps with the rails console, *Then i got some errors after i
gave the steps to send the tweet from the application *

* client = Twitter::Client.new*,

=> #<Twitter::Client:0x971204c @adapter=:net_http, @consumer_key=nil,
@consumer_secret=nil, @endpoint="https://api.twitter.com/", @format=:json,
@gateway=nil, @oauth_token=nil, @oauth_token_secret=nil, @proxy=nil,
@search_endpoint="https://search.twitter.com/", @user_agent="Twitter Ruby
Gem 1.7.2", @media_endpoint="https://upload.twitter.com/",
@faraday_options={}>

* client.update('Test post from the console')*

Twitter::Unauthorized: POST https://api.twitter.com/1/statuses/update.json:
401: Could not authenticate you.
from
/home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/twitter-1.7.2/lib/faraday/response/raise_http_4xx.rb:12:in
`on_complete'
from
/home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/faraday-0.7.5/lib/faraday/response.rb:9:in
`block in call'
from
/home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/faraday-0.7.5/lib/faraday/response.rb:62:in
`on_complete'
from
/home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/faraday-0.7.5/lib/faraday/response.rb:8:in
`call'
from
/home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/faraday-0.7.5/lib/faraday/request/url_encoded.rb:14:in
`call'
from
/home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/faraday-0.7.5/lib/faraday/request/multipart.rb:13:in
`call'
from
/home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/twitter-1.7.2/lib/faraday/request/multipart_with_file.rb:18:in
`call'
from
/home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/faraday-0.7.5/lib/faraday/connection.rb:207:in
`run_request'
from
/home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/faraday-0.7.5/lib/faraday/connection.rb:94:in
`post'
from
/home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/twitter-1.7.2/lib/twitter/request.rb:27:in
`request'
from
/home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/twitter-1.7.2/lib/twitter/request.rb:10:in
`post'
from
/home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/twitter-1.7.2/lib/twitter/client/tweets.rb:45:in
`update'
from (irb):23
from
/home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands/console.rb:45:in
`start'
from
/home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands/console.rb:8:in
`start'
from
/home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:40:in
`<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

plz send some links to start the integration with twitter....



Thank u
Vishnu

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/C8_0CSYOtxUJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

  • Hesham at Oct 16, 2011 at 3:39 pm
    You need to enter your app keys, have you registered your app with
    twitter?

    On Oct 16, 7:01 pm, amvis wrote:
    after i searched, i got so many links related with the twitter integration ,
    Then  i do that with one following link

    http://cbpowell.wordpress.com/2011/03/17/twitter-oauth-and-ruby-on-ra...

    after some steps with the rails console, *Then i got some errors after i
    gave the steps to send the tweet from the application *

    * client = Twitter::Client.new*,

    => #<Twitter::Client:0x971204c @adapter=:net_http, @consumer_key=nil,
    @consumer_secret=nil, @endpoint="https://api.twitter.com/", @format=:json,
    @gateway=nil, @oauth_token=nil, @oauth_token_secret=nil, @proxy=nil,
    @search_endpoint="https://search.twitter.com/", @user_agent="Twitter Ruby
    Gem 1.7.2", @media_endpoint="https://upload.twitter.com/",
    @faraday_options={}>

    * client.update('Test post from the console')*

    Twitter::Unauthorized: POSThttps://api.twitter.com/1/statuses/update.json:
    401: Could not authenticate you.
    from
    /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/twitter-1.7.2/lib/faraday/res ponse/raise_http_4xx.rb:12:in
    `on_complete'
    from
    /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/faraday-0.7.5/lib/faraday/res ponse.rb:9:in
    `block in call'
    from
    /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/faraday-0.7.5/lib/faraday/res ponse.rb:62:in
    `on_complete'
    from
    /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/faraday-0.7.5/lib/faraday/res ponse.rb:8:in
    `call'
    from
    /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/faraday-0.7.5/lib/faraday/req uest/url_encoded.rb:14:in
    `call'
    from
    /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/faraday-0.7.5/lib/faraday/req uest/multipart.rb:13:in
    `call'
    from
    /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/twitter-1.7.2/lib/faraday/req uest/multipart_with_file.rb:18:in
    `call'
    from
    /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/faraday-0.7.5/lib/faraday/con nection.rb:207:in
    `run_request'
    from
    /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/faraday-0.7.5/lib/faraday/con nection.rb:94:in
    `post'
    from
    /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/twitter-1.7.2/lib/twitter/req uest.rb:27:in
    `request'
    from
    /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/twitter-1.7.2/lib/twitter/req uest.rb:10:in
    `post'
    from
    /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/twitter-1.7.2/lib/twitter/cli ent/tweets.rb:45:in
    `update'
    from (irb):23
    from
    /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/comm ands/console.rb:45:in
    `start'
    from
    /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/comm ands/console.rb:8:in
    `start'
    from
    /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/comm ands.rb:40:in
    `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

    plz send some links to start the integration with twitter....

    Thank u
    Vishnu
    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Amvis at Oct 16, 2011 at 4:24 pm
    yes, i have registered. Have any other stuffs to follow this?

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/Z8_L7AupwosJ.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Amvis at Oct 20, 2011 at 4:31 am
    Can i use this link??
    http://functino.com/2010/02/twitter-api-with-rails/

    but, when i give th*is Twitter.post(:update, :status => "Via ROR")*, got the
    error

    ActiveResource::UnauthorizedAccess: Failed. Response code = 401. Response
    message = Unauthorized.
    from
    /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/activeresource-3.1.1/lib/active_resource/connection.rb:132:in
    `handle_response'
    from
    /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/activeresource-3.1.1/lib/active_resource/connection.rb:115:in
    `request'
    from
    /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/activeresource-3.1.1/lib/active_resource/connection.rb:98:in
    `block in post'
    from
    /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/activeresource-3.1.1/lib/active_resource/connection.rb:218:in
    `with_auth'
    from
    /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/activeresource-3.1.1/lib/active_resource/connection.rb:98:in
    `post'
    from
    /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/activeresource-3.1.1/lib/active_resource/custom_methods.rb:63:in
    `post'
    from (irb):2
    from
    /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands/console.rb:45:in
    `start'
    from
    /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands/console.rb:8:in
    `start'
    from
    /home/cyberpro/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:40:in
    `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/nl0cFNKhuOMJ.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Max Reznichenko at Oct 23, 2011 at 1:11 pm
    Hi, amvis,

    Isn't it an error of just wrong username/password?

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedOct 16, '11 at 3:01p
activeOct 23, '11 at 1:11p
posts5
users3
websiterubyonrails.org
irc#RubyOnRails

3 users in discussion

Amvis: 3 posts Max Reznichenko: 1 post Hesham: 1 post

People

Translate

site design / logo © 2021 Grokbase