04/11
2014
dev-master
9999999-devThe official PHP API wrapper for the Simply Satisfied API
MIT
The Requires
by Dan Matthews
Wallogit.com
2017 © Pedro Peláez
The official PHP API wrapper for the Simply Satisfied API
This library is a work in progress, pull requests are accepted with thanks., (*1)
Install with Composer., (*2)
{
"require": {
"simplysatisfied/simply-php":"dev-master"
}
}
Note: Tagged releases will be coming soon!, (*3)
<?php
// Initialise with your API key.
$api = new Simply\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" => "frank@wolfcola.com",
"send_email" => TRUE
]);
// Get all users
$allUsers = $api->users->makeRequest();
// Get a single user.
$me = $api->users->find(25518)->makeRequest();
The official PHP API wrapper for the Simply Satisfied API
MIT