Fetch and display the full list of timezones available in your SenderWiz installation via Admin API.
GET ADMIN-API-URL/timezones
X-ADMIN-KEY: your-admin-api-key-here
// GET ALL TIMEZONES
$response = $adminEndpoint->getTimezones($pageNumber = 1, $perPage = 10);
// DISPLAY RESPONSE
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';
{
"status": "success",
"data": {
"count": "10",
"total_pages": 1,
"current_page": 1,
"next_page": null,
"prev_page": null,
"records": [
{
"timezone_id": "1",
"name": "(GMT-11:00) Pacific/Midway"
},
{
"timezone_id": "2",
"name": "(GMT-11:00) Pacific/Niue"
},
{
"timezone_id": "3",
"name": "(GMT-11:00) Pacific/Pago_Pago"
},
{
"timezone_id": "4",
"name": "(GMT-10:00) Pacific/Honolulu"
},
{
"timezone_id": "5",
"name": "(GMT-10:00) Pacific/Rarotonga"
},
{
"timezone_id": "6",
"name": "(GMT-10:00) Pacific/Tahiti"
},
{
"timezone_id": "7",
"name": "(GMT-09:30) Pacific/Marquesas"
},
{
"timezone_id": "8",
"name": "(GMT-09:00) America/Adak"
},
{
"timezone_id": "9",
"name": "(GMT-09:00) Pacific/Gambier"
},
{
"timezone_id": "10",
"name": "(GMT-08:00) America/Anchorage"
}
]
}
}