Slotify

Fetch Slotify Apps

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

Authentication

Use owner token for this endpoint.

MethodGET
Endpointv1/apps
HeadersAccept: application/json 
Authorization: Bearer <base64_encoded_token> 
Token TypeOwner

Query Parameters

This endpoint supports query parameters:

FieldValueDescription
includemetaFetches metadata for this app
searchname, slugname and slug can be used as search parameter to filter app results.

Example Request:

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

  • PHP
  • CURL
$endpoint = 'https://api.slotify.ca/v1/apps';
$owner_token = base64_encode('email: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/apps \
  -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": [
        {
            "slug": "my-app",
            "name": "My Scheduling App",
            "uuid": "bc7b15f9-2573-4aaa-be09-44d6c6f9c62c",
            "token": "cecd3370-15f9-44b4-88e7-fc772eab3be6",
            "created_at": "2024-04-29T18:52:52+00:00",
            "updated_at": "2024-04-29T18:52:52+00:00",
            "description": "My awesome booking app"
        }
    ],
    "perPage": 25,
    "currentPage": 1,
    "total": 1,
    "totalPages": 1
}