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:mySecret@api.toodledo.com/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!
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.
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
Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW