Overview

All API calls are wrapped into an object model.

If you still want to make HTTP calls to check the API responses, this is possible thanks to the low-level calls.

It provides an API wrapper (Yousign\YousignApi) and some shortcut methods for basic and advanced modes.

Requirements

  • PHP 7.1+
  • Before using this library, you have to create your account on Yousign platform to get an API token before using this library.

Install

composer require landrok/yousign-api

Production & staging environments

YousignApi accepts 2 parameters:

Staging environment

use Yousign\YousignApi;

/*
 * token
 */
$token = '123456789';

/*
 * production flag
 */
$production = false;

$yousign = new YousignApi($token, $production);

Production environment

use Yousign\YousignApi;

/*
 * token
 */
$token = '123456789';

/*
 * production flag
 */
$production = true;

$yousign = new YousignApi($token, $production);

Contributing

All subsequent types (Member, Procedure, File, FileObject, etc…) are implemented too.

Yousign API manual

Official Yousign API manual