Client APIs
At its core, SyncTV is an API driven service. The APIs themselves are easy enough for developers to understand, but understanding the ecosystem is a little trickier. We've created the following tutorials to help you get your head around it.

Topics:

  • Account types

This document describes the API for account_types.

Note:
Each call to the SyncTV V2 API described in this section requires an MD5 hash signature.
See the Authorization (User) API for details on generating the MD5 hash signature.
Actions

Url:

  • [GET] /api/v2/account_types.[xml|json]

Returns a list of all Account types.

Required Arguments:
  • (Integer) access_id
    Access id returned from Authorization (User) client_authorize.
  • (String) signature
    MD5 hash encoded string of query parameters.
Example Request

The following URL returns a listing of all Account types.
[GET] https://service_name.synctv.com/api/v2/account_types.xml?access_id=1234&signature=674aaff974348eb1a1bdd72dce75053d
Request Field:
  • (Integer) offset — Used for pagination of response data (default: 25 items per response). Specifies the offset of the next block of data to receive.
  • (String) named_like — Filters response to include items that contain the specified value in the name field (e.g. named_like=standard).
Example Response
XML JSON

<response>
  <account_types>
    <account_type>
      <id>1</id>
      <name>AccountType-1</name>
    </account_type>
    <account_type>
      <id>2</id>
      <name>AccountType-2</name>
    </account_type>
  </account_types>
</response>
Response Fields:
  • (Integer) account_type[id]
    The unique identifier of the Account type.
  • (String) account_type[name]
    The name of the Account type.

Url:

  • [GET] /api/v2/account_types/:id.[xml|json]

Returns information for the specified account_type.

Required Arguments:
  • (Integer) access_id
    Access id returned from Authorization (User) client_authorize.
  • (String) signature
    MD5 hash encoded string of query parameters.
Example Request

The following URL returns the Account type information for account_type 100. 
[GET] https://service_name.synctv.com/api/v2/account_types/100.xml?access_id=1234&signature=674aaff974348eb1a1bdd72dce75053d
Example Response
XML JSON

<response>
  <account_types>
    <id>100</id>
    <name>AccountType-3</name>
  </account_types>
</response>
Response Fields:
  • (Integer) account_type[id]
    The unique identifier of the Account type.
  • (String) account_type[name]
    The name of the Account type.