{"action":"created","issue":{"url":"https://api.github.com/repos/GeorgiCodes/etsy-js/issues/8","labels_url":"https://api.github.com/repos/GeorgiCodes/etsy-js/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/GeorgiCodes/etsy-js/issues/8/comments","events_url":"https://api.github.com/repos/GeorgiCodes/etsy-js/issues/8/events","html_url":"https://github.com/GeorgiCodes/etsy-js/issues/8","id":119314015,"number":8,"title":"Problem with OAuth consumer_key_unknown","user":{"login":"mandeepm91","id":6578361,"avatar_url":"https://avatars.githubusercontent.com/u/6578361?v=3","gravatar_id":"","url":"https://api.github.com/users/mandeepm91","html_url":"https://github.com/mandeepm91","followers_url":"https://api.github.com/users/mandeepm91/followers","following_url":"https://api.github.com/users/mandeepm91/following{/other_user}","gists_url":"https://api.github.com/users/mandeepm91/gists{/gist_id}","starred_url":"https://api.github.com/users/mandeepm91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mandeepm91/subscriptions","organizations_url":"https://api.github.com/users/mandeepm91/orgs","repos_url":"https://api.github.com/users/mandeepm91/repos","events_url":"https://api.github.com/users/mandeepm91/events{/privacy}","received_events_url":"https://api.github.com/users/mandeepm91/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-28T19:26:14Z","updated_at":"2015-11-28T19:31:34Z","closed_at":null,"body":"I am trying out the example provided in the documentation but getting the following error:\r\n\r\n```\r\n{ statusCode: 401, data: 'oauth_problem=consumer_key_unknown' }\r\n```\r\n\r\nAny idea what's wrong ?"},"comment":{"url":"https://api.github.com/repos/GeorgiCodes/etsy-js/issues/comments/160330854","html_url":"https://github.com/GeorgiCodes/etsy-js/issues/8#issuecomment-160330854","issue_url":"https://api.github.com/repos/GeorgiCodes/etsy-js/issues/8","id":160330854,"user":{"login":"mandeepm91","id":6578361,"avatar_url":"https://avatars.githubusercontent.com/u/6578361?v=3","gravatar_id":"","url":"https://api.github.com/users/mandeepm91","html_url":"https://github.com/mandeepm91","followers_url":"https://api.github.com/users/mandeepm91/followers","following_url":"https://api.github.com/users/mandeepm91/following{/other_user}","gists_url":"https://api.github.com/users/mandeepm91/gists{/gist_id}","starred_url":"https://api.github.com/users/mandeepm91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mandeepm91/subscriptions","organizations_url":"https://api.github.com/users/mandeepm91/orgs","repos_url":"https://api.github.com/users/mandeepm91/repos","events_url":"https://api.github.com/users/mandeepm91/events{/privacy}","received_events_url":"https://api.github.com/users/mandeepm91/received_events","type":"User","site_admin":false},"created_at":"2015-11-28T19:31:34Z","updated_at":"2015-11-28T19:31:34Z","body":"Any example provided in the documentation did not work for me.\r\n\r\nI had to add the following code to make all work:\r\n\r\n```\r\nvar etsyjs = require('etsy-js');\r\nvar client = etsyjs.client('my api key');\r\nclient.apiKey = 'my api key';\r\nclient.apiSecret = 'my secret';\r\nclient.callbackURL = 'http://localhost:1337/authorise'\r\nclient.etsyOAuth._consumerKey = client.apiKey;\r\nclient.etsyOAuth._consumerSecret = client.apiSecret;\r\n```"}}