PHP code example of cjrasmussen / invision-power-api
1. Go to this page and download the library: Download cjrasmussen/invision-power-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/ */
cjrasmussen / invision-power-api example snippets
use cjrasmussen\InvisionPowerApi\InvisionPowerApi;
$ipb = new InvisionPowerApi($token, $url);
// GET THE MEMBER DATA FOR A SPECIFIED MEMBER
$data = $ipb->request('GET', "/core/members/{$member_id}");
// RENAME A SPECIFIED FORUM
$ipb->request('PUT', "/forums/forums/{$forum_id}", ['title' => 'New Forum Title']);