1. Go to this page and download the library: Download jambtc/keydom-php-sdk library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jambtc / keydom-php-sdk example snippets
// Initialize AuthService
$authService = new \Keydom\AuthService('https://keydom.example.com');
// Authenticate Channel In access
$authService->authenticate('username', 'password');
// Insert new user
$usersController = new \Keydom\Controllers\UsersController($authService);
$jsonBody = [
"lastName" => "Doe",
"firstName" => "Jhon",
"registrationNumber" => "123",
"address" => "95 Whitemarsh Street, Santa Clara, CA 95050",
"phone" => "2025550196",
"mobile" => "202-555-0196",
"email" => "[email protected]",
"documentNumber" => "AG66677CJ"
];
$user = $usersController->create($jsonBody);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.