PHP code example of orgmanager / orgmanager-api

1. Go to this page and download the library: Download orgmanager/orgmanager-api 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/ */

    

orgmanager / orgmanager-api example snippets

 php
$orgmanager = new \OrgManager\ApiClient\OrgManager('YOUR_ORGMANAGER_API_TOKEN');
 php
$orgmanager = new \OrgManager\ApiClient\OrgManager();

$orgmanager->connect('YOUR_ORGMANAGER_API_TOKEN');
 php
$orgmanager->getUser();
 php
$orgmanager->getOrgs();
 php
$orgmanager->getOrg('ORG_ID');
 php
$orgmanager->changeOrgPassword('ORG_ID', 'NEW_PASSWORD');
 php
$orgmanager->updateOrg('ORG_ID');
 php
$orgmanager->deleteOrg('ORG_ID');
 php
$orgmanager->getStats();
 php
$orgmanager->regenerateToken($set);
 php
$orgmanager->getClient();
 php
$client = new \GuzzleHttp\Client(); // Example Guzzle client
$orgmanager->setClient($client);