CertCenter API PHP Implementation
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
CertCenter.inc.php
LICENSE
README.md

README.md

Usage

Copy CertCenter.inc.php to your favorite library folder. Here's how you can make a simple function call to the CertCenter REST API.

require_once '../my-lib-folder/CertCenter.inc.php';
use CertCenter\RESTful as ccAPI;

$api = new ccAPI();
$api->setAuthorization('#your-token#');

$limits = $api->Limit();
print_r($limits);

Credentials

Before you're able to make function calls against the REST api you need to set your credentials. This can either be done by using the constructor:

$api = new ccAPI($AuthorizationToken="#your-token#");

or by calling the public class method:

$api->setAuthorization('#your-token#');

Where can I get my OAuth2 bearer token?

It's quite easy and a howto is already available:

Documentation

An extensive API and module documentation is available at https://api.certcenter.help