ForumsSearch



Search results for "Posted by User"
Author Message
User

Posted Jan 26, 2015 in: Using API v3.0 with Python
Score: 0
  • User
  • Posted: Jan 26, 2015
  • Score: 0
I'm sorry. I wasn't clear in my request. I am trying to use the OAuth flow in the Toodledo documentation.

The documentation says,
"GETTING AN ACCESS TOKEN:
Once you have an authorization code, you can exchange it for an access token. To do this you would POST an SSL encrypted request to /3/account/token.php using basic authentication with your Client ID and secret and passing the authorization code. The response will contain an access token and refresh token."

The SSL POST where I'm using basic authentication as instructed returns the 400 error code.
User

Posted Jan 24, 2015 in: Using API v3.0 with Python
Score: 0
  • User
  • Posted: Jan 24, 2015
  • Score: 0
I'm having a problem with getting an access token using Basic Authentication in the v3.0 API. I consistently get Error code: 400 "The server couldn't fulfill the request". I've tested the code with basic authentication test sites and it seems to work there, but not with Toodledo. I'm using code based on the urllib2 documentation (see https://docs.python.org/2/howto/urllib2.html#id6) in Python 2.6.6. Is there some trick I'm missing?

Code can be found at http://xmail7.net/test.py.txt

Thank you for any help you can provide.