Slotify

Retrieve Specific Event

This endpoint will be used to retrieve specific event for given app;

Authentication

This endpoint needs app token for authentication.

MethodGET
Endpointv1/events/:uuid
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 specific event in Slotify api.

  • PHP
  • BASH
$endpoint = 'https://api.slotify.ca/v1/events/uuid?include=meta,app,calendar';
$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/bc7b15f9-2573-4aaa-be09-44d6c6f9c62c?include=meta,calendar \
  -H 'Authorization: Bearer ' \
  -H 'Accept: application/json'

Example Response:

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

  • 200 Ok
{
    "success": true,
    "data": {
        "uuid": "609db778-6888-4d63-a57c-688ad7e4008e",
        "role": "member",
        "name": "Franco Hansen",
        "email": "[email protected]",
        "avatar": null,
        "timezone": "America/Toronto",
        "created_at": "2024-04-30T20:24:43+00:00",
        "updated_at": "2024-04-30T20:24:43+00:00",
        "meta": {},
        "rules": [],
        "calendar": {
            "uuid": "25e5fc29-d882-4217-aa3f-3fbc23ccbe34",
            "name": "native",
            "summary": "native calender account",
            "timezone": "America/Toronto",
            "is_primary": 1
        }
    }
}