givey/givey

There is no license information available for the latest version (v0.2) of this package.

PHP library for https://api.givey.com

v0.2 2015-03-12 18:04 UTC

This package is not auto-updated.

Last update: 2024-10-26 17:45:37 UTC


README

This is a preview release so please use at your own risk and report any issues you may experience. Contact Givey Support if you have any questions.

Build Status Downloads Version Licence

Usage

Install

{
    "require": {
        "givey/givey" : "*"
    }
}

Setup Resource and Adapter

use Givey\Adapter\Buzz;
use Givey\Resource;

Resource::setAdapter(new Buzz($token));

Users

use Givey\User;

User::retrieve('scott'); // Givey\Entity\User
User::all(array('business_id' => 100); // array(Givey\Entity\User, Givey\Entity\User)

Businesses

use Givey\Business;

$business = Business::retrieve('giveybiz'); // Givey\Entity\Business
$business->employees(); // array(Givey\Entity\User, Givey\Entity\User)

Charities

use Givey\Charity;

Charity::retrieve('dogstrust'); // Givey\Entity\Charity
Charity::all(array('business_id' => 100); // array(Givey\Entity\Charity, Givey\Entity\Charity)