Ruby wrapper for the Gimmie API. Currently only sending events and retrieving owned stamp cards are supported.
Include this code into your project and require with:
require_once "containing_folder/library/GimmieClient.php"Add initialization code in your application to set credentials with:
GimmieClient::setup(API_ROOT, CLIENT_KEY, CLIENT_SECRET);where the api root is in the form "http://your-gimmie-instance.com"
See the example code for specifics, but basically:
$client = new GimmieClient(array('uid' => 'JimmieBob'));
$event_results = $client->trigger('login', array('platform' => 'android'));This depends on the oauth-php library which has been included unmodified in this project under vendor for convenience.
The gem is available as open source under the terms of the MIT License.