Skip to content
This repository was archived by the owner on Nov 4, 2022. It is now read-only.
This repository was archived by the owner on Nov 4, 2022. It is now read-only.

authorize_token! method #2

Description

returns always RubyPicasa::PicasaTokenError, 'The request to upgrade to a session token failed.'
I think you should replace /accounts/accounts/ by /accounts/ in http request. It's works for me

def authorize_token!
http = Net::HTTP.new("www.google.com", 443)
http.use_ssl = true
response = http.get('/accounts/accounts/AuthSubSessionToken', auth_header)
token = response.body.scan(/Token=(.*)/).flatten.compact.first
if token
@token = token
else
raise RubyPicasa::PicasaTokenError, 'The request to upgrade to a session token failed.'
end
@token
end

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions