1. Go to this page and download the library: Download priorist/edm-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/ */
priorist / edm-sdk example snippets
use Priorist\EDM\Client\Client;
$client = new Client('https://edm.example.com', 'CLIENT_ID', 'CLIENT_SECRET');
// $client now works with global permission, e.g. to read events.
$events = $client->event->findUpcoming();
// To switch to permissions of a given user, e.g. to read participant data, call logIn
// with the user’s login name and password:
$accessToken = $client->logIn('USER_NAME', 'PASSWORD');
$client->event->findParticipating();
// You may store $accessToken in your session to re-use it later:
$client->setAccessToken($accessToken);