-
Notifications
You must be signed in to change notification settings - Fork 838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
api_call method returning string, not dict #47
Comments
Sorry about that! It appears I always return a string, and was incorrect in the docs. I'll update the docs. |
I've provided PRs #70 and #71 to fix this issue. #70 fixes the api_call func to do a json.loads() before returning- I prefer this solution to #71's since it's more consistent with rtm_read()'s returning of dicts. #71 only fixes the docs to show api calls being passed through json.loads(). Take your pick which you merge. |
The examples in the docstring for api_call still say that it returns a string rather than a dict. Minor thing, but thought I'd say in case someone else stumbles on this ahaha |
I was testing the api_call method and couldn't parse - when testing response, I was getting a response as a string, not a dictionary, as the documentation notes.
response from running this script:
The text was updated successfully, but these errors were encountered: