{"action":"created","issue":{"url":"https://api.github.com/repos/coinbase/coinbase-node/issues/7","labels_url":"https://api.github.com/repos/coinbase/coinbase-node/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/coinbase/coinbase-node/issues/7/comments","events_url":"https://api.github.com/repos/coinbase/coinbase-node/issues/7/events","html_url":"https://github.com/coinbase/coinbase-node/issues/7","id":65063528,"number":7,"title":"Do not require apikey and apisecret when using oauth in Client constructor","user":{"login":"Levino","id":1150767,"avatar_url":"https://avatars.githubusercontent.com/u/1150767?v=3","gravatar_id":"","url":"https://api.github.com/users/Levino","html_url":"https://github.com/Levino","followers_url":"https://api.github.com/users/Levino/followers","following_url":"https://api.github.com/users/Levino/following{/other_user}","gists_url":"https://api.github.com/users/Levino/gists{/gist_id}","starred_url":"https://api.github.com/users/Levino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Levino/subscriptions","organizations_url":"https://api.github.com/users/Levino/orgs","repos_url":"https://api.github.com/users/Levino/repos","events_url":"https://api.github.com/users/Levino/events{/privacy}","received_events_url":"https://api.github.com/users/Levino/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-29T13:53:19Z","updated_at":"2015-07-19T12:29:24Z","closed_at":null,"body":"I use oauth for requests to the API via the Client object.\r\n\r\nIf i create a Client object like: \r\n\r\n```\r\nvar Client = require('coinbase').Client;\r\nvar client = new Client({\r\n                          'apiKey'       : \" \",\r\n                          'apiSecret'    : \" \",\r\n                          'accessToken'  : accessToken,\r\n                          'refreshToken' : refreshToken\r\n                        });\r\n```\r\n\r\nAll calls work fine, meaning that the apiKey and apiSecret is ignored.\r\n\r\nWhen I do:\r\n\r\n```\r\nvar Client = require('coinbase').Client;\r\nvar client = new Client({\r\n                          'accessToken'  : accessToken,\r\n                          'refreshToken' : refreshToken\r\n                        });\r\n```\r\n\r\nThe \"no apiKey\" Error is thrown. To be honest the Error is not very helpful. I would appreciate a \"CoinbaseError\" Object to be thrown here. But anyhow. If an accessToken is set, why bother requiring a key 'apiKey' to be set? That does not really make sense to me."},"comment":{"url":"https://api.github.com/repos/coinbase/coinbase-node/issues/comments/122658104","html_url":"https://github.com/coinbase/coinbase-node/issues/7#issuecomment-122658104","issue_url":"https://api.github.com/repos/coinbase/coinbase-node/issues/7","id":122658104,"user":{"login":"SyRenity","id":203866,"avatar_url":"https://avatars.githubusercontent.com/u/203866?v=3","gravatar_id":"","url":"https://api.github.com/users/SyRenity","html_url":"https://github.com/SyRenity","followers_url":"https://api.github.com/users/SyRenity/followers","following_url":"https://api.github.com/users/SyRenity/following{/other_user}","gists_url":"https://api.github.com/users/SyRenity/gists{/gist_id}","starred_url":"https://api.github.com/users/SyRenity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SyRenity/subscriptions","organizations_url":"https://api.github.com/users/SyRenity/orgs","repos_url":"https://api.github.com/users/SyRenity/repos","events_url":"https://api.github.com/users/SyRenity/events{/privacy}","received_events_url":"https://api.github.com/users/SyRenity/received_events","type":"User","site_admin":false},"created_at":"2015-07-19T12:29:24Z","updated_at":"2015-07-19T12:29:24Z","body":"@Levino Good catch about empty apiKey and apiSecret!\r\nTook me quite a while to figure them out as cause to the issues we had."}}