Slotify

List Events

 This endpoint allows you to retrieve information about all events created within Slotify.

Authentication

This endpoint needs app token for authentication.

MethodGET
Endpointv1/events
HeadersAccept: application/json 
Authorization: Bearer <base64_encoded_token> 
Token TypeApp

Query Parameters

This endpoint supports query parameters:

FieldValueDescription
includemeta,app,rules,calendarshow user meta, constraints, calendar, app
searchname, emailname or email of the resource

Example Request:

Following code shows how to send request to retrieve events in Slotify api.

  • PHP
  • BASH
$endpoint = 'https://api.slotify.ca/v1/resources';
$owner_token = base64_encode('app_token'); 

$curl = curl_init();

curl_setopt_array($curl, array(
    CURLOPT_URL => $endpoint,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => '',
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 0,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_HTTPHEADER => array(
        'Authorization: Bearer ' . $owner_token,
        'Accept: application/json',
        'Content-Type: application/json'
    ),
));

$response = curl_exec($curl);

if(curl_errno($curl)) {
    echo 'Error: ' . curl_error($curl);
} else {
    echo $response;
}

curl_close($curl);
curl -X GET \
  https://api.slotify.ca/v1/resources \
  -H 'Authorization: Bearer ' \
  -H 'Accept: application/json'

Example Response:

Following response will be provided by Slotify server when this endpoint is called:

  • 200 Ok
{
    "data": [
        {
            "uuid": "cdd5c031-6203-407a-9977-34288370a398",
            "what": "Appointment with Dr. John Doe",
            "color": '#dddfff',
            "end_at": "2024-09-20T17:00:00+00:00",
            "location": {
                "type": "address",
                "value": "123 ABC Road"
            },
            "start_at": "2024-09-20T17:00:00+00:00",
            "created_at": "2024-09-03T15:39:33+00:00",
            "updated_at": "2024-09-03T15:39:33+00:00",
            "description": "Appointment with Dr. John Doe"
        }
    ],
    "perPage": 25,
    "currentPage": 1,
    "total": 1,
    "totalPages": 1
}