API Concepts

The base URL of the Seasons API

http://api.seasonsapp.com

Representation Formats


The API supports two representation formats, JSON and XML. To specify either format use the format parameter in the URL.

http://api.seasonsapp.com/example/?format=xml
http://api.seasonsapp.com/example/?format=json

HTTP Status Codes


The API uses different HTTP status codes to give further information about response.

200 OK
400 Bad request
404 Not found


In case of a 400 the response body will provide detailed information about why the request could not be processed. This response body looks like:


XML


<error>
  <code >400</code >
  <message>Language code invalid</message>
</error>


JSON


{
	"error":{
		"code":"400",
		"message":"Language code invalid"
	}
}

Common Tasks

documentation/concepts.txt · Last modified: 2010/10/28 01:28 (external edit)
Trace: concepts