{"action":"created","issue":{"url":"https://api.github.com/repos/twilio/twilio-python/issues/259","repository_url":"https://api.github.com/repos/twilio/twilio-python","labels_url":"https://api.github.com/repos/twilio/twilio-python/issues/259/labels{/name}","comments_url":"https://api.github.com/repos/twilio/twilio-python/issues/259/comments","events_url":"https://api.github.com/repos/twilio/twilio-python/issues/259/events","html_url":"https://github.com/twilio/twilio-python/issues/259","id":137398397,"number":259,"title":"API Keys not working as expected","user":{"login":"imthepitts","id":5095752,"avatar_url":"https://avatars.githubusercontent.com/u/5095752?v=3","gravatar_id":"","url":"https://api.github.com/users/imthepitts","html_url":"https://github.com/imthepitts","followers_url":"https://api.github.com/users/imthepitts/followers","following_url":"https://api.github.com/users/imthepitts/following{/other_user}","gists_url":"https://api.github.com/users/imthepitts/gists{/gist_id}","starred_url":"https://api.github.com/users/imthepitts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imthepitts/subscriptions","organizations_url":"https://api.github.com/users/imthepitts/orgs","repos_url":"https://api.github.com/users/imthepitts/repos","events_url":"https://api.github.com/users/imthepitts/events{/privacy}","received_events_url":"https://api.github.com/users/imthepitts/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-29T22:26:51Z","updated_at":"2016-02-29T23:30:26Z","closed_at":"2016-02-29T22:30:12Z","body":"**Version: 5.3.0**\r\n**API Subdomain (api/taskrouter/ip_messaging): api**\r\n\r\n### Code Snippet\r\n```python\r\nkey_sid = 'SKxxxxxxxxxxxxxxx'\r\nkey_secret = 'secret stuff'\r\ntry:\r\nclient = twilio.rest.TwilioRestClient(key_sid, key_secret)\r\nclient = client.accounts.get(account_sid)\r\nreturn client\r\n\r\nexcept twilio.TwilioRestException as e:\r\nreturn e\r\n```\r\n\r\n### Exception / Log\r\n```\r\n�[31m�[49mHTTP Error�[0m �[37m�[49mYour request was:�[0m\r\n�[36m�[49mGET\r\nhttps://api.twilio.com/2010-04-01/Accounts/ACxxxxxxxxxxxxxxx.json�[0m\r\n�[37m�[49mTwilio returned the following information:�[0m\r\n�[34m�[49mAuthenticate�[0m\r\n�[37m�[49mMore information may be available here:�[0m\r\n�[34m�[49mhttps://www.twilio.com/docs/errors/20003�[0m\r\n```\r\n\r\n### Steps to Reproduce\r\n1. Create an API Key in Account Portal\r\n2. Use the key and secret to instantiate `TwilioRestClient`\r\n3. Attempt to get the account\r\n4. Receive 20003 error\r\n"},"comment":{"url":"https://api.github.com/repos/twilio/twilio-python/issues/comments/190449159","html_url":"https://github.com/twilio/twilio-python/issues/259#issuecomment-190449159","issue_url":"https://api.github.com/repos/twilio/twilio-python/issues/259","id":190449159,"user":{"login":"carlosdp","id":198739,"avatar_url":"https://avatars.githubusercontent.com/u/198739?v=3","gravatar_id":"","url":"https://api.github.com/users/carlosdp","html_url":"https://github.com/carlosdp","followers_url":"https://api.github.com/users/carlosdp/followers","following_url":"https://api.github.com/users/carlosdp/following{/other_user}","gists_url":"https://api.github.com/users/carlosdp/gists{/gist_id}","starred_url":"https://api.github.com/users/carlosdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlosdp/subscriptions","organizations_url":"https://api.github.com/users/carlosdp/orgs","repos_url":"https://api.github.com/users/carlosdp/repos","events_url":"https://api.github.com/users/carlosdp/events{/privacy}","received_events_url":"https://api.github.com/users/carlosdp/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T23:30:26Z","updated_at":"2016-02-29T23:30:26Z","body":"@bhyman well there's no way to get an Account via key secrets period, it's simply not allowed by the API. As for other resources, we're adding that to Python in the next minor release."}}