PHP code example of funmula / biggo-api-php-pms-client

1. Go to this page and download the library: Download funmula/biggo-api-php-pms-client 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/ */

    

funmula / biggo-api-php-pms-client example snippets


use Funmula\BiggoApiPhpPmsClient\BiggoPMSAPI;

$api = new BiggoPMSAPI(
  '<Your client ID>',
  '<Your client secret>'
);

// 🏬 取得使用者可存取的平台列表
$platformList = $api->getPlatformList();

// 👥 取得平台內的群組列表
$groupList = $api->getGroupList('<Platform ID>');

// 📊 取得平台內的歷史報表列表
$reportList = $api->getReportList('<Platform ID>');

// 📥 取得報表內容,或直接存成檔案
$reportJson = $api->getReport('<Platform ID>', '<Report ID>', 'json');