Error in Faraday and RubyGems API -
i want obtain list of gems of owner. http client faraday, i'm doing this:
connection = faraday.new "https://rubygems.org/api/v1/gems.json" connection.token_auth(token) response = connection.get
but have error
"@body="access denied. please sign account @ http://rubygems.org""
i don't know if authenticating in wrong way or method. appreciate help. thanks.
just fyi solved header
connection = faraday.new response = connection.get 'https://rubygems.org/api/v1/gems.json', {},{'authorization' => token}
Comments
Post a Comment