caplinked-api-php
Overview
PHP SDK for the Caplinked API., (*1)
Core information security endpoints for managing your virtual data room capabilities around files/folders, users/groups and permissions, uploads/downloads, dynamic watermarking, DRM (digital rights management) and more., (*2)
Vist Caplinked for more information., (*3)
Requirements
PHP 5.4.0 and later, (*4)
Installation & Usage
Composer
To install the bindings via Composer, add the following to composer.json:, (*5)
{
"repositories": [
{
"type": "git",
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
}
],
"require": {
"GIT_USER_ID/GIT_REPO_ID": "*@dev"
}
}
Then run composer install, (*6)
Manual Installation
Download the files and include autoload.php:, (*7)
require_once('/path/to/caplinked-api-php/autoload.php');
Tests
To run the unit tests:, (*8)
composer install
./vendor/bin/phpunit
Getting Started
Please follow the installation procedure and then run the following:, (*9)
setApiKey('cl-api-key', $key);
$config->setApiKey('cl-api-secret-key', $secret_key);
$config->setApiKey('cl-api-user-token', $user_resource_key);
//$config->setDebug(true);
$api_client = new Caplinked\ApiClient($config);
$api_instance = new Caplinked\Api\UsersApi($api_client);
try {
$result = $api_instance->getUsersMe();
var_dump($result['first_name']); // string(23) "Arons"
} catch (Exception $e) {
echo 'Exception when calling UsersApi->getUsersMe: ', $e->getMessage(), PHP_EOL;
}
?>
Documentation for API Endpoints
All URIs are relative to https://sandbox.caplinked.com/api/v1, (*10)
Documentation For Models
Documentation For Authorization
See example on Getting Started, (*11)