ForumsDevelopersDevelopment for Windows 8 Store App
Development for Windows 8 Store App
Author | Message |
---|---|
c.chiarella7 |
I am currently developing a windows 8 store app that will include access to toodledo. My issue is that in order to request the access token the URI format is https://myClientId:[email protected]/3/account/token.php which isn't a valid syntax for the windows store app http protocol. Is there another way to send the client id and secret to get the token without having to use this type of URI? Or if you know something about windows 8 store app development, is there an option I'm missing? Thanks!
|
Jake Toodledo Founder |
This is a standard Oauth pattern. My advice is to look for an OAuth library for Windows 8 that you can use and it should take care off all of the URL stuff for you. If you can't find one, then I would take a look at the sample code that we provided for other languages and see if you can translate it to your language.
Hope that helps |
ykphuah |
Actually, the URI format on the api page is slightly misleading. You don't actually need to include the client_id and the secret inside the URI itself.
If you look at the RFC at http://tools.ietf.org/html/rfc6749#section-4.1.3, here's what the token request looks like: POST /token HTTP/1.1 Host: server.example.com Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW Content-Type: application/x-www-form-urlencoded grant_type=authorization_code&code=SplxlOBeZQQYbYS6WxSbIA &redirect_uri=https%3A%2F%2Fclient%2Eexample%2Ecom%2Fcb You can just use the url https://api.toodledo.com/3/account/token.php and then have a BASIC AUTHENTICATION to send in your client_id as username and secret as password. |
c.chiarella7 |
Thank you Jake and ykphuah for the quick responses, I will look into both your suggestions and update you if either of provide the solution I need once I get the opportunity to try them. Thanks!
|
Jake Toodledo Founder |
I will try to update the documentation to be more clear on this point. Thanks ykphuah!
|
You cannot reply yet
U Back to topic home
R Post a reply
To participate in these forums, you must be signed in.