The GET /api/users/timeZones endpoint allows you to retrieve a list of all time zones registered in the system. This functionality is useful for populating dropdown lists or forms where a time zone selection is required, ensuring that the data remains consistent and up-to-date.
This endpoint is especially beneficial for applications that require time zone information, such as user profile creation, account settings, or any other functionality needing a list of time zones.
Request Details
HTTP Method: GET
URL: /api/users/timeZones
Authentication Required
Example Request
GET /api/users/timeZones HTTP/1.1
Host: api.plaspy.com
Authorization: Bearer {your_auth_token}
Response Parameters
The response from this endpoint contains a structure that includes the status of the request and a list of time zones. The following table describes the fields in the response:
Field | Type | Required | Description |
---|---|---|---|
success | boolean | No | Indicates whether the request was successful. |
error | string | No | Contains the error message if success is false . |
apiUsage | integer | No | Current API usage by the user. |
apiDailyUsage | integer | No | Daily API usage by the user. |
timeZones | object | No | An object with time zones and their descriptions. |
Example Successful Response
{
"success": true,
"apiUsage": 100,
"apiDailyUsage": 10,
"timeZones": {
"America/New_York": "Eastern Standard Time",
"America/Los_Angeles": "Pacific Standard Time",
"Europe/London": "Greenwich Mean Time",
"Asia/Tokyo": "Japan Standard Time",
"Australia/Sydney": "Australian Eastern Standard Time"
}
}
Example Error Response
{
"success": false,
"error": "Authentication failed. Invalid token.",
"apiUsage": 100,
"apiDailyUsage": 10
}
Index
- Welcome to Net Domain Technologies help
- Map
- Viewing a Device's Route History
- Device Control Panel
- Detailed Device Information
- Buttons on the Map
- Details
- Trip Statistics
- Device Menu
- GeoFences
- Bulk Alert Editing
- Enable map notifications
- Mileage Calculation
- Atributes
- Devices
- Marker Icon
- Information
- Sensors
- Reassign Digital Sensors
- Commands
- Alerts
- Types
- Configuration
- Reminders
- Limits
- History
- Setting Up a New Tracker
- Solution for Identifier Already in Use by Another Account
- Device Issues
- Email alerts sending limits
- Reports
- New Report
- My Account
- Password Change
- Email Notifications
- Telegram Accounts
- Update Mobile Phone Number
- Primary Email
- Alternative Email
- Activate Two-Factor Authentication (2FA)
- Access Log
- Password Recovery
- Recover Username
- Delete Your Account
- Statistics
- Activity Summary
- Groups
- Users
- Share Access
- Developers
- Enable the API
- Rest API
- Authentication
- Devices API
- GET /api/devices
- GET /api/devices/{deviceId}
- GET /api/devices/{deviceId}/lastLocation
- POST /api/devices/{deviceId}/locations
- POST /api/devices/{deviceId}/alerts
- Groups API
- GET /api/groups
- POST /api/groups
- GET /api/groups/{groupId}
- PUT /api/groups/{groupId}
- PATCH /api/groups/{groupId}
- DELETE /api/groups/{groupId}
- Users API
- GET /api/users
- POST /api/users
- GET /api/users/countries
- GET /api/users/timeZones
- GET /api/users/{userId}
- PUT /api/users/{userId}
- PATCH /api/users/{userId}
- DELETE /api/users/{userId}
Last modification: 2024-06-06 17:58:31