{"action":"created","issue":{"url":"https://api.github.com/repos/ruckus/quickbooks-ruby/issues/448","repository_url":"https://api.github.com/repos/ruckus/quickbooks-ruby","labels_url":"https://api.github.com/repos/ruckus/quickbooks-ruby/issues/448/labels{/name}","comments_url":"https://api.github.com/repos/ruckus/quickbooks-ruby/issues/448/comments","events_url":"https://api.github.com/repos/ruckus/quickbooks-ruby/issues/448/events","html_url":"https://github.com/ruckus/quickbooks-ruby/issues/448","id":393470609,"node_id":"MDU6SXNzdWUzOTM0NzA2MDk=","number":448,"title":"undefined method `code' for #<OAuth2::Response:0x007f8df0af2690>","user":{"login":"ponnuchamy51","id":16957778,"node_id":"MDQ6VXNlcjE2OTU3Nzc4","avatar_url":"https://avatars3.githubusercontent.com/u/16957778?v=4","gravatar_id":"","url":"https://api.github.com/users/ponnuchamy51","html_url":"https://github.com/ponnuchamy51","followers_url":"https://api.github.com/users/ponnuchamy51/followers","following_url":"https://api.github.com/users/ponnuchamy51/following{/other_user}","gists_url":"https://api.github.com/users/ponnuchamy51/gists{/gist_id}","starred_url":"https://api.github.com/users/ponnuchamy51/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ponnuchamy51/subscriptions","organizations_url":"https://api.github.com/users/ponnuchamy51/orgs","repos_url":"https://api.github.com/users/ponnuchamy51/repos","events_url":"https://api.github.com/users/ponnuchamy51/events{/privacy}","received_events_url":"https://api.github.com/users/ponnuchamy51/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-21T14:07:03Z","updated_at":"2018-12-26T07:19:12Z","closed_at":null,"author_association":"NONE","body":"This is my method. i got error while trigger it..Please help to solve this issue..\r\n**Thanks in advance**\r\n\r\n  def test\r\n    oauth_params = {:site => \"https://appcenter.intuit.com/connect/oauth2\", :authorize_url => \"https://appcenter.intuit.com/connect/oauth2\", :token_url => \"https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer\",\r\n    }\r\n\r\n    oauth_client = OAuth2::Client.new(\"Q0qDr6UOc*********************\", \"1Tfyei1i*********************\", oauth_params)\r\n\r\n    resp = oauth_client.auth_code.get_token(params[:code], :redirect_uri => \"http://localhost:3000/oauth/token\")\r\n\r\n    @data = {}\r\n    @data[:token] = resp.token\r\n    @data[:refresh_token] = resp.refresh_token\r\n    @data[:realmId] = 193514814621559\r\n    Quickbooks.sandbox_mode = true\r\n    Quickbooks.log = true\r\n\r\n     at = OAuth2::AccessToken.new(oauth_client, resp.token, refresh_token: resp.refresh_token)\r\n    service = Quickbooks::Service::Customer.new\r\n    service.company_id = 193514814621559\r\n    service.access_token = at\r\n    @a =  service.query()\r\n\r\n  end\r\n![quickbookissue](https://user-images.githubusercontent.com/16957778/50346224-b5afc600-0557-11e9-8acb-52c4efb88e57.png)\r\n"},"comment":{"url":"https://api.github.com/repos/ruckus/quickbooks-ruby/issues/comments/449919270","html_url":"https://github.com/ruckus/quickbooks-ruby/issues/448#issuecomment-449919270","issue_url":"https://api.github.com/repos/ruckus/quickbooks-ruby/issues/448","id":449919270,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTkxOTI3MA==","user":{"login":"ponnuchamy51","id":16957778,"node_id":"MDQ6VXNlcjE2OTU3Nzc4","avatar_url":"https://avatars3.githubusercontent.com/u/16957778?v=4","gravatar_id":"","url":"https://api.github.com/users/ponnuchamy51","html_url":"https://github.com/ponnuchamy51","followers_url":"https://api.github.com/users/ponnuchamy51/followers","following_url":"https://api.github.com/users/ponnuchamy51/following{/other_user}","gists_url":"https://api.github.com/users/ponnuchamy51/gists{/gist_id}","starred_url":"https://api.github.com/users/ponnuchamy51/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ponnuchamy51/subscriptions","organizations_url":"https://api.github.com/users/ponnuchamy51/orgs","repos_url":"https://api.github.com/users/ponnuchamy51/repos","events_url":"https://api.github.com/users/ponnuchamy51/events{/privacy}","received_events_url":"https://api.github.com/users/ponnuchamy51/received_events","type":"User","site_admin":false},"created_at":"2018-12-26T07:19:12Z","updated_at":"2018-12-26T07:19:12Z","author_association":"NONE","body":"@ruckus \r\nThank you so much that branch code work perfectly. Thanks for your valuable response."}}
{"actor":{"display_login":"ponnuchamy51"}}