docs
  1. SCAYLE Resource Center
  2. Admin API
  3. Getting Started
  4. SDK set up

SDK set up

SCAYLE's Admin API SDKs simplify use of the Admin REST APIs by reducing the amount of boilerplate code. Below are installation instructions for the SDK libraries in a variety of popular server-side programming languages.

Installation

To install, run the following command:

# Install the PHP library with Composer
composer require scayle/admin-api

Manual installation

Alternatively, you can grab the latest stable release from the GitHub page and copy it into your project's folder, so you can share it with your team without a private registry.

Usage

To use the SCAYLE Admin SDK, import the SDK and initialize the client:

$config = [
    'apiUrl' => 'https://{{tenant-space}}.admin.api.scayle.cloud/api/admin/v1',
    'accessToken' => '{{Access-Token}}'
];

$adminApi = new AdminAPI($config);