2017 © Pedro Peláez
 

library php-sdk

Photo Booth Options SDK for PHP

image

pbousa/php-sdk

Photo Booth Options SDK for PHP

  • Thursday, January 28, 2016
  • by bretmette
  • Repository
  • 1 Watchers
  • 0 Stars
  • 46 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

PHP-SDK

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

The Photo Booth Options PHP SDK helps developers leverage the Photo Booth Options API to build applications using PHP scripting language., (*2)

Quickstart

Get all users for a given machine

<?php
// Following line not needed if using composer autoloader
require('/path/to/pbousa/php-sdk/src/PboApi/PboApi.php');

$token = 'AABBA';

$client = new \PboApi\Common\Client($token);

$users = $client->machines->get(array('machine_uuid' => 'uuid_of_machine'));

print_r($users);

Getting and setting meta data

// Get some meta data
$serialNumber = $machine->getMeta('serial_number');

// Get a meta data group
$cameraData = $machine->getMetas('hardware.camera');


// Update a single meta data entry
$machine->setMeta('my.meta.key', 'this is some revealing information');

// Update multiple meta data entries
$metas = array();

$meta = new stdClass();
$meta->key = 'my.meta.key';
$meta->value = 'this is some revealing information';
$metas[] = $meta;

$meta = new stdClass();
$meta->key = 'other.meta.key';
$meta->value = 'I need this for later';
$metas[] = $meta;

$machine->setMetas($metas);

// You can also chain them like so...
$machine->setMeta('my.meta.key', 'this is some revealing information')
->setMeta('other.meta.key', 'I need this for later')
->setMeta('very.important.data', 'eat breakfast every day');

// Or combine both
$machine->setMeta('my.meta.key', 'this is some revealing information')
->setMetas($metas);

Resources

The Versions

28/01 2016

2.1.x-dev

2.1.9999999.9999999-dev

Photo Booth Options SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

api sdk pbo pbousa photoboothoptions

23/12 2014

2.x-dev

2.9999999.9999999.9999999-dev

Photo Booth Options SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

api sdk pbo pbousa photoboothoptions

23/12 2014

dev-master

9999999-dev

Photo Booth Options SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

api sdk pbo pbousa photoboothoptions

23/12 2014

2.0.0.x-dev

2.0.0.9999999-dev

Photo Booth Options SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

api sdk pbo pbousa photoboothoptions

23/12 2014

2.0.x-dev

2.0.9999999.9999999-dev

Photo Booth Options SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

api sdk pbo pbousa photoboothoptions

20/07 2014

1.0.x-dev

1.0.9999999.9999999-dev

Photo Booth Options SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api sdk pbo pbousa photoboothoptions

20/07 2014

1.0.0.x-dev

1.0.0.9999999-dev

PBOUSA SDK for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

api sdk pbo pbousa photoboothoptions