PHP code example of feedbackbox / feedbackbox-php
1. Go to this page and download the library: Download feedbackbox/feedbackbox-php 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/ */
feedbackbox / feedbackbox-php example snippets
// Initialise with your API key.
$api = new FeedbackBox\Api('api-key-here');
// Get all invites
$invites = $api->invites->makeRequest();
// Set the page you're requesting.
$invites = $api->invites->setPage(3)->makeRequest();
// Get a single invite object.
$singleInvite = $api->invites->find(25442)->makeRequest();
// Create an invite
$api->invites->create([
"name" => "Frank Reynolds",
"email" => "[email protected]",
"send_email" => TRUE
]);
// Get all users
$allUsers = $api->users->makeRequest();
// Get a single user.
$me = $api->users->find(25518)->makeRequest();
json
{
"backbox/feedbackbox-php":"dev-master"
}
}