You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.
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
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
The text was updated successfully, but these errors were encountered: