List Timezones

List Timezones

GET https://api.ocamba.com/v2/ocamba/timezones
Returns a list of Timezones

Query parameters

parameters

Response schemas

curl -X GET \
 "https://api.ocamba.com/v2/ocamba/timezones" \
  -H "Authorization: Bearer {TOKEN}"
const url = 'https://api.ocamba.com/v2/ocamba/timezones';
const options = {
  method: 'GET',
  headers: {
    Authorization: `Bearer {TOKEN}`
  }
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
$ch = curl_init("https://api.ocamba.com/v2/ocamba/timezones");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  "Authorization: Bearer {TOKEN}"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

Responses

200 OK

{
  "total": 28,
  "items": [
    {
      "id": "NST",
      "code": "NST",
      "name": "New Zealand Standard Time",
      "short_offset": 12,
      "offset": "GMT+12:00",
      "create_time": "2021-01-22 10:00:28",
      "update_time": "2021-01-22 12:45:02"
    },
    {
      "id": "SST",
      "code": "SST",
      "name": "Solomon Standard Time",
      "short_offset": 11,
      "offset": "GMT+11:00",
      "create_time": "2021-01-22 10:00:28",
      "update_time": "2021-01-22 10:00:28"
    },
    {
      "id": "AET",
      "code": "AET",
      "name": "Australia Eastern Time",
      "short_offset": 10,
      "offset": "GMT+10:00",
      "create_time": "2021-01-22 10:00:28",
      "update_time": "2021-01-22 12:45:02"
    }
  ]
}
Responses
Tip

Searchable field is name. Sortable fields are: id, code, name, short_offset, offset, create_time and update_time.

Filterable fields are: id, code, name, create_time and update_time.