{"action":"created","issue":{"url":"https://api.github.com/repos/buntine/discogs/issues/42","labels_url":"https://api.github.com/repos/buntine/discogs/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/buntine/discogs/issues/42/comments","events_url":"https://api.github.com/repos/buntine/discogs/issues/42/events","html_url":"https://github.com/buntine/discogs/issues/42","id":98975555,"number":42,"title":"'raise_unknown_resource exception' if try to get user folders being authentificated as the user","user":{"login":"v-vylinsky","id":398807,"avatar_url":"https://avatars.githubusercontent.com/u/398807?v=3","gravatar_id":"","url":"https://api.github.com/users/v-vylinsky","html_url":"https://github.com/v-vylinsky","followers_url":"https://api.github.com/users/v-vylinsky/followers","following_url":"https://api.github.com/users/v-vylinsky/following{/other_user}","gists_url":"https://api.github.com/users/v-vylinsky/gists{/gist_id}","starred_url":"https://api.github.com/users/v-vylinsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v-vylinsky/subscriptions","organizations_url":"https://api.github.com/users/v-vylinsky/orgs","repos_url":"https://api.github.com/users/v-vylinsky/repos","events_url":"https://api.github.com/users/v-vylinsky/events{/privacy}","received_events_url":"https://api.github.com/users/v-vylinsky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-04T13:52:49Z","updated_at":"2015-08-06T04:20:13Z","closed_at":null,"body":"If run the code pulling my collection folders,(my_app_key, my_secret_key are keys for my registered app):\r\n```\r\nrequire 'discogs-wrapper'\r\nrequire 'hashie'\r\nwrapper = Discogs::Wrapper.new(App_name, app_key: my_app_key, app_secret: my_secret_key)\r\n\r\nputs wrapper.get_user_folders(my_username)\r\n```\r\n\r\nit ends up with error like this, looks like 404 response returned:\r\n\r\n```\r\nC:/Ruby22/lib/ruby/gems/2.2.0/gems/discogs-wrapper-2.1.1/lib/wrapper/wrapper.rb:802:in 'raise_unknown_resource': Unknown Discogs resource: users/xadnight/collection/folders (Discogs::UnknownResource)\r\n\tfrom C:/Ruby22/lib/ruby/gems/2.2.0/gems/discogs-wrapper-2.1.1/lib/wrapper/wrapper.rb:733:in 'query_api'\r\n\tfrom C:/Ruby22/lib/ruby/gems/2.2.0/gems/discogs-wrapper-2.1.1/lib/wrapper/wrapper.rb:723:in 'query_and_build'\r\n\tfrom C:/Ruby22/lib/ruby/gems/2.2.0/gems/discogs-wrapper-2.1.1/lib/wrapper/wrapper.rb:376:in 'get_user_folders'\r\n\tfrom C:/Users/Uladzimir/RubymineProjects/untitled/discogs_client.rb:20:in '<class:DiscogsClient>'\r\n\tfrom C:/Users/Uladzimir/RubymineProjects/untitled/discogs_client.rb:5:in '<top (required)>'\r\n```\r\nhowever if remove the authentication params when initiate wrapper with no keys, like this:\r\n`wrapper = Discogs::Wrapper.new(App_name)`\r\n\r\nthe same code returns the public 'All' folder:\r\n```\r\n#<Hashie::Mash folders=[#<Hashie::Mash count=316 id=0 name=\"All\" resource_url=\"http://api.discogs.com/users/xadnight/collection/folders/0\">]>\r\n```\r\n\r\nI expected to get the list of all my folder, including private ones since I had send requests being authenticated.\r\n\r\nps. I'm new to Ruby, so please don't blame me so much. Thanks!"},"comment":{"url":"https://api.github.com/repos/buntine/discogs/issues/comments/128231547","html_url":"https://github.com/buntine/discogs/issues/42#issuecomment-128231547","issue_url":"https://api.github.com/repos/buntine/discogs/issues/42","id":128231547,"user":{"login":"buntine","id":14033,"avatar_url":"https://avatars.githubusercontent.com/u/14033?v=3","gravatar_id":"","url":"https://api.github.com/users/buntine","html_url":"https://github.com/buntine","followers_url":"https://api.github.com/users/buntine/followers","following_url":"https://api.github.com/users/buntine/following{/other_user}","gists_url":"https://api.github.com/users/buntine/gists{/gist_id}","starred_url":"https://api.github.com/users/buntine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buntine/subscriptions","organizations_url":"https://api.github.com/users/buntine/orgs","repos_url":"https://api.github.com/users/buntine/repos","events_url":"https://api.github.com/users/buntine/events{/privacy}","received_events_url":"https://api.github.com/users/buntine/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T04:20:13Z","updated_at":"2015-08-06T04:20:13Z","body":"Ok, I've just pushed a new version of the Gem and updated the README. \r\n\r\nUpdate to version 2.1.3 (bundle update or gem install) and change your code to suit the new example. Let me know how you go!"}}