Twongo API V1 - Status

 

Status

List the status of Twongo’s API and all currently available versions of the API.

GET /status

Returns the available API versions and general status message regarding the API

URL

http://api.twongo.com/status{.xml,.json}

Formats

XML (default)
JSON

Response Elements

message (string) A general message to display to the end user
versions (array) Complete set of available API versions
version (number) API version number
preferred (string) An indicator for the preferred version of the API
base url (string) The base URL for this version of the API. Relative resource paths may be directly appended to this URL.

Sample XML Request

GET /status.xml HTTP/1.1

Sample XML Response

<?xml version="1.0" encoding="UTF-8"?>
<status>
  <message></message>
  <versions>
    <version preferred="preferred" version="1">
      <base-url>https://api.twongo.com/v1</base-url>
    </version>
  </versions>
</status>

Sample JSON Request

GET /status.json HTTP/1.1

Sample JSON Response

{"message":null,"versions":[{"baseUrl":"https://api.twongo.com/v1","version":1,preferred:true}]}