Despite the error message from the first line of OauthUser.identify_or_create_from_access_token (oauth_user.rb line 14) said "Must authenticate with an OAuth::AccessToken or the string access token and secret." - it actually won't work for Strings. The next line will cause a NoMethodError / String#get.
My use case for using string tokens and secrets:
My app has an "app user" and I need to parse the timeline of this app user. I saved the app user's token and secret in twitter_auth.yml and I need to be able to create an OauthUser based on these credentials.
Despite the error message from the first line of
OauthUser.identify_or_create_from_access_token
(oauth_user.rb
line 14) said "Must authenticate with an OAuth::AccessToken or the string access token and secret." - it actually won't work for Strings. The next line will cause aNoMethodError / String#get
.My use case for using string tokens and secrets: My app has an "app user" and I need to parse the timeline of this app user. I saved the app user's token and secret in twitter_auth.yml and I need to be able to create an OauthUser based on these credentials.