Skip to content

rsentry/php-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##Installation

First download the latest version:

git clone https://github.com/rsentry/php-api

The add this line to your script:

require_once("/path/to/php-api/lib/RSentry.php");

A simple example:

<?php
require_once('../lib/RSentry.php');
$api = new RSentry('your api key');
//if you just pass an id, will request a lookup by id
try
{
	$item = $api->getItems('{ITEMS_ID}');
	echo "Item found: " . $item->name . " \n";
}
catch (RSentryException $e)
{
	echo "Exception: {$e->getMessage()} code: {$e->getCode()}\n";
}
?>

##Documentation

For more information and the most up-to-date documentation, visit developer.restaurantsentry.com .

About

RestaurantSentry.com php api lib

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages