Skip to content

danmatthews/feedbackbox-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FeedbackBox PHP API Wrapper

This library is a work in progress, pull requests are accepted with thanks.

To run tests:

Create a file called key.txt in the tests directory. This will be used to inject your API key, but should not be committed to the library.

Install

Install with Composer.

{
	"require": {
		"feedbackbox/feedbackbox-php":"dev-master"
	}
}

Note: Tagged releases will be coming soon!

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 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"      => "frank@wolfcola.com",
	"send_email" => TRUE
]);

// Get all users
$allUsers = $api->users->makeRequest();

// Get a single user.
$me = $api->users->find(25518)->makeRequest();

About

The official PHP client for the FeedbackBox API

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%