Closed evz closed 12 years ago
Hey, thanks for the feedback and the very detailed study of your problem. Unfortunately, I'm not really maintaining this module anymore (lack of usefulness...). I've just pulled a merge from someone linking to your ticket with a patch dealing with the callback during the oauth process. Maybe this patch will also fix your problem ?
It looks like that addresses the issue I was having. I went ahead and forked this repo and will go ahead and submit a pull request the next time I run into an issue.
So, I don't know if this is something new, because I'm just now dusting off some code that I haven't touched since last fall, but I've been running into issues using this API wrapper today and wondered if there was something missing here.
First a bit of context. I'm using this inside a Django application to create a decorator for views that need to access the Vimeo API. The code I was using looks a bit like this:
It's basically lifted directly from the excellent python flickrapi docs and worked fine until I started poking around in there this morning. Whenever I call the
get_request_token
method, Vimeo is giving me a 400 error back. I did a bit of digging and it seems that the reason it's a 400 and not something like a 401, is because the Vimeo OAuth process now requires that you send the callback url as part of the body of the request as well as in the authorization header. In fact, the specific error message that I was getting said as much.However, it seems that there may be something larger going on here because whenever I try the authentication process using the oauth2 module, I'm unable to put the signature for the request together in a way that Vimeo likes. It returns a 401 saying that the signature is bad.
Using the python-requests module, I was able to get an
oath_token
and secret back from Vimeo, but it only worked once and I haven't tracked down what it was that I changed. Here's how that worked:It's a bit weird but it worked. Anyways, I'm starting to think Vimeo may be having issues but before I start bombing them, I'd like to get some kind of verification one way or the other.
Thanks!