lib/chatterbot/client.rb in chatterbot-0.6.5 vs lib/chatterbot/client.rb in chatterbot-0.6.6
- old
+ new
@@ -133,10 +133,10 @@
# query twitter for the bots screen name. we do this during the bot registration process
#
def get_screen_name(t = @access_token)
return unless @screen_name.nil?
- oauth_response = t.get('/1/account/verify_credentials.json')
+ oauth_response = t.get('/1.1/account/verify_credentials.json')
@screen_name = JSON.parse(oauth_response.body)["screen_name"]
end
#
# handle oauth for this request. if the client isn't authorized, print