-
Notifications
You must be signed in to change notification settings - Fork 27
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
KeyError: 'oauth_token' #2
Comments
I'll try to look into this. It could be that one of the libraries used has changed it's api. Or could be something else. What kind of app are you trying to use this in? Desktop? Web? |
Well I was trying to use it in a web app for pulling basic sports data through the Yahoo API. Am I using it correctly? Do I have to call any of the other functions before calling object.call_api('URI'). What is the difference between call_api and api_req. Which one should I use? From the looks of it call_api just turns in the query string into a full URI? |
It's not set up out of the box for webapps. It's set up for a command line
|
Now it appears to be a different issue when I try using it with api_req and a query string: |
Well I mean I'm planning on using it in a web app but I'm currently messing around with it in a desktop program. |
Ok. I'll take a look when I can then. Unfortunately with my job, that
|
Am I using it correctly though from what you see? |
Assuming you correctly set up the author.csv , that looks right.
|
I just started using this for the same sort of thing as Hinds and also get the error regarding 'pre-request' |
Looks like it's a problem with requests-oauth and the version of requests: maraujop/requests-oauth#42 I haven't tried, but there is a workaround listed that I will have a go at later |
A work-around is to use older version of Request. version 0.14.0 works for me. |
When I try to use your library I get that error. I may be using it incorrectly but I followed your instructions.
I imported YHandler.py
I created a YHandler object
I called object.call_api(URI)
I get that key error
The text was updated successfully, but these errors were encountered: