nfm/gplus — Issue #1: api requests are not working, bad request
Author: tompata
Created: 2011-12-28 14:31:13+00:00
State: open

We're try to use gplus, but after a successfull oauth process, the normal api requests are not working:

Gplus Client: #:post, :connection_opts=>{}, :connection_build=>nil, :max_redirects=>5, :raise_errors=>true, :authorize_url=>"https://accounts.google.com/o/oauth2/auth", :token_url=>"https://accounts.google.com/o/oauth2/token"}>, @token_expires_at=1325083620, @token="XXX, @redirect_uri="XXX", @refresh_token="XXX", @client_secret="XXX", @client_id="XXX", @api_version="v1", @endpoint="https://www.googleapis.com/plus", @api_key=nil>

Gplus access token: MISSING!

Oauth error: #

Oauth response: #, @parsed={"error"=>{"code"=>400, "errors"=>[{"domain"=>"global", "reason"=>"badRequest", "message"=>"Bad Request"}], "message"=>"Bad Request"}}, @response=##, :response_headers=>{"x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "expires"=>"Wed, 28 Dec 2011 14:09:57 GMT", "content-type"=>"application/json; charset=UTF-8", "connection"=>"close", "date"=>"Wed, 28 Dec 2011 14:09:57 GMT", "x-xss-protection"=>"1; mode=block", "server"=>"GSE", "cache-control"=>"private, max-age=0"}, :request_headers=>{}, :status=>400, :request=>{:proxy=>nil}, :method=>:get, :parallel_manager=>nil, :url=>#, :ssl=>{}, :body=>"{\n \"error\": {\n \"errors\": [\n {\n \"domain\": \"global\",\n \"reason\": \"badRequest\",\n \"message\": \"Bad Request\"\n }\n ],\n \"code\": 400,\n \"message\": \"Bad Request\"\n }\n}\n"}, @on_complete_callbacks=[]>, @options={:parse=>nil}>

May be the API has changed?

Thanks,
Tamas