2017 © Pedro Peláez
 

library simply-php

The official PHP API wrapper for the Simply Satisfied API

image

simplysatisfied/simply-php

The official PHP API wrapper for the Simply Satisfied API

  • Tuesday, November 4, 2014
  • by danmatthews
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Simply Satisfied PHP API Wrapper

This library is a work in progress, pull requests are accepted with thanks., (*1)

Install

Install with Composer., (*2)

{
    "require": {
        "simplysatisfied/simply-php":"dev-master"
    }
}

Note: Tagged releases will be coming soon!, (*3)

Resources

  • Invites (list all, view one, create)
  • Users (list all, view one, update)
  • Company (list all, view one)
  • Responses (list all, view one, create)

Usage

<?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 Versions

04/11 2014

dev-master

9999999-dev

The official PHP API wrapper for the Simply Satisfied API

  Sources   Download

MIT

The Requires