Assembled API – Assembled
Retrieving Scheduled Hours Using the Assembled API
Assembled API enables users to access essential data regarding the scheduling of hours. Below is a guide on how to retrieve scheduled hours effectively.
Steps to Retrieve Scheduled Hours
- Authentication: Ensure you have the proper authentication tokens to access the API.
- API Endpoint: Use the endpoint
GET /scheduled_hoursfor fetching the data. - Parameters: You may include parameters such as
dateto filter the results according to your needs. - Response Structure: Expect a JSON response containing details about scheduled hours including user and time information.
Example Request
curl -X GET 'https://api.assembled.com/v1/scheduled_hours' \
-H 'Authorization: Bearer YOUR_API_TOKEN'
Example Response
{
"data": [
{
"user": "John Doe",
"scheduled_hours": "40",
"date": "2023-10-01"
},
{
"user": "Jane Smith",
"scheduled_hours": "36",
"date": "2023-10-01"
}
]
}
This process allows developers to integrate scheduled hours into their applications, enhancing functionality and user experience.