| Members: 30 |
| Language: English |
|
Group categories:
|
| More group info » |
|
| Nov 20 |
|
| Nov 16 |
|
| Jun 15 |
|
| May 14 |
|
| May 12 |
|
| May 7 |
|
| May 5 |
|
| May 13 |
|
| Mar 13 |
|
| Feb 28 |
OverviewThe Zannel Open API is a REST based webservices API, allowing programmatic access to Zannel's platform. Developers can build applications, widgets, web and mobile apps that act on behalf of the user or interact with the Zannel platform in new and interesting ways. Accessing the APIThe Zannel Open API is built on REST based principles, and strives to make interaction with the Zannel platform simple and consistent. Calls use the native HTTP methods for access and modifications, wherever possible. Some methods are publicly available, while some require authentication. Each service is clearly marked with authentication and authorization requirements. Any client that can perform basic HTTP commands can access the api. For example, you can use cURL or a web browser to browse new users or updates.
Retrieve updates via cURL:
curl http://app.zannel.com/api/browse/update.xml
Retrieve updates, via web browser visit:
Response CodesThe Zannel Open API uses HTTP status codes to signal success or failure. Below is a list of the HTTP status codes returned by the API:
FormatsEach webservice in the Zannel Open API can return results in one of multiple formats. Currently, all services support output in XML and JSON formats. Additional formats will be forthcoming. Example webservice outputs can be seen [here]. To specify the format of results, simply set the extension of the call to the appropriate format. For example: Retrieve users in XML format: Retrieve users in JSON format: AuthenticationMost webservices in the Zannel Open API require authentication. Each service states whether it requires authentication. Zannel does not have separate developer keys for accessing API methods that require authentication. Instead, the API is accessed using the same credentials used to access the Zannel web or wap site (username and password). The API supports 3 methods of authentication:
Successful authentication via Basic Auth or Parameters will also return a HTTP cookie that can be used with "Cookie based" authentication, as described above. MeteringCalls to any webservice that requires authentication are metered. A particular set of credentials cannot make more than 100 calls per hour to a metered service. Calls that exceed the metering cap will receive a HTTP 400 error. CachingZannel caches the responses to some webservices in the Zannel Open API to improve performance. Any webservice that does not require authentication may be cached. Currently, any webservice that requires authentication is not cached. MediaThe Zannel Open API has urls to videos and images on User and Update results. Each video or image has preview pics in 3 sizes. The sizes were chosen to be useful for both web based and mobile based applications. In addition, User and Update results always have a zannelurl attribute. This url detects the user agent of the caller and sends them, via an HTTP 302 redirect, to the Zannel web or wap page to view the entity on Zannel's site. Image and zannelurl access are not metered. For example: The zannelurl of the Zannel user, from the api: If the caller is a web browser, a redirect is sent to: If the caller is a wap browser, a redirect is sent to: These urls may also take a "short" form. For example the zannelurl of an update, from the api: The appropriate redirect will take place as above. HelpQuestions or bug reports can be posted in the "Discussions" section of this group. In addition, Zannel developers can often be found in the #zannel IRC channel on irc.freenode.net ServicesHere is a complete list of the services the Zannel API currently offers: Browse WebservicesStore ServicesUser Services
Update ServicesInfo ServicesAll Info webservices return in a standard format. The "key" attribute should be used as the parameter value when submitting to Zannel. The "description" attribute or tag text is non authoritative, but can be used for displaying options to the user. The one exception to this is the Zannel Url webservice, which uses the same format, but simply returns a set of urls for getting to places on the Zannel web and wap sites. Webservice Access LevelOur webservices have a certain access level, based on the operation that you may be calling them. Here is a list of our current access levels.
Paged WebservicesMany of the webservices can return long list of results. All services where this is a case take a common set of parameters to facilitate paging:
Bindings and Example ApplicationsSee here for apps others have built and for language bindings (client side libraries others have built to make using the Zannel Open API even easier).
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy |
| ©2009 Google |