Skip to content

ninjablocks/php-ninja-blocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHP Ninja Blocks Helper Library

PHP library for interacting with the Ninja Blocks platform.

For the time being only Device has been implemented. If you would like to use other non-implemented API features there is a generic MakeRequest function to use make the calls.

How to use

  1. Include/Require nbapi.php into your PHP script
  2. Instantiate a Device object with your access token
$deviceAPI = new DeviceAPI("YOUR ACCESS TOKEN");
  1. Use the implemented methods
$deviceAPI->getDevices();
$deviceAPI->actuate();
$deviceAPI->subscribe();
$deviceAPI->unsubscribe();
$deviceAPI->data();
$deviceAPI->lastHeartbeat();

About

PHP library for interacting with the Ninja Blocks platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages