RESTful API

From Wiki.zanox.com

Jump to: navigation, search

Contents

[edit] RESTful API

The REST API design is based onto the RESTful paradigm. The RESTful paradigm consists of resources that include several actions that can be performed on them.

[edit] API Location

Two different RESTful interfaces are available: XML and JSON. Both are available via http or https. The API can be used without a version parameter in the URL. If used without the version parameter the latest API version is always taken. In order to stick to a certain version the release date of the API has to be provided as a parameter.

API without version support (always latest)

http://api.zanox.com/json || https://api.zanox.com/json
http://api.zanox.com/xml || https://api.zanox.com/xml


API with version support

http://api.zanox.com/json/2008-05-21 || https://api.zanox.com/json/2008-05-21
http://api.zanox.com/xml/2008-05-21 || https://api.zanox.com/xml/2008-05-21


To differentiate the versions, please check the REST Webservices Change Logs

[edit] API Authentication

Two different types of authentication are necessary to use the RESTful API. The implementation details can be found in the
RESTful API authentication process section.

[edit] API RESTful Resources

The RESTful API contains RESOURCES that can be accessed for various actions. Actions refers to the HTTP commands GET/POST/PUT and DELETE. The GET command means retrieving a resource, POST means creating a resource, PUT means updating a resouce and DELETE means removing a resource.

Resources are advertising spaces, product offerings, advertising media, advertiser programs, transaction reports and user profiles. Be aware that not all of these resources can be modified.

Adspaces Resource

Operations on advertising spaces:


Products Resource

Retrieval of product offerings


Admedia Resource

Retrieval of advertising media


Programs Resource

Operations on advertiser program applications


Reports Resource

Operations on reports


Payments Resource

Operations on payments


Profiles Resource

Operations on profiles

Personal tools