-
Notifications
You must be signed in to change notification settings - Fork 53
DeskSMS API
koush edited this page Jul 23, 2011
·
30 revisions
##Authorization
To use the API, all your requests must be come with a form of authorization for your Google Account.
There are two ways you can authorize: ClientLogin/Cookies or OAuth.
OAuth is the preferred method of authorization, as it does not require that the user enter their username and password in your application of website.
#OAuth
Here is a https://github.com/ClockworkMod/desksms/blob/gh-pages/oauth/example.py that will retrieve the user's inbox using OAuth as an authorization mechanism.
Note that the http://oauth.net/core/1.0/#auth_header must be used. OAuth in the query string or post parameters is not supported.
#ClientLogin/Cookies