View Timezone
View Timezone
GET
https://api.ocamba.com/v2/ocamba/timezones/{id}
Retrieves the details of a Timezone if a valid identifier was provided
Tip
If you don’t know the timezone id, list the timezones to find it.
Path parameters
parametersQuery parameters
parametersResponse schemas
›
200
application/json
curl -X GET \
"https://api.ocamba.com/v2/ocamba/timezones/{id}" \
-H "Authorization: Bearer {TOKEN}"const url = 'https://api.ocamba.com/v2/ocamba/timezones/{id}';
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/{id}");
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": 1,
"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"
}
]
}
Responses