dev-master
9999999-devRelateIQ API v2 client for Laravel & standalone projects.
BSD-2-Clause BSD 2-Clause
The Requires
- php >=5.4.0
laravel api wrapper laravel4 standalone relateiq
RelateIQ API v2 client for Laravel & standalone projects.
To get the latest version of RelateIQ Client simply require it in your composer.json
file., (*2)
"torann/relateiq": "dev-master"
You'll then need to run composer install
to download it and have the autoloader updated., (*3)
Once RelateIQ Client is installed you need to register the service provider with the application. Open up app/config/app.php
and find the providers
key., (*4)
'Torann\RelateIQ\ServiceProvider'
There is no need to add the Facade, the package will add it for you., (*5)
Open up app/config/services.php
and add relateiq
., (*6)
'relateiq' => array( 'key' => '66cfba7f741d645a488c0b21ebFAKE', 'secret' => 'effd5216acac6314219ALSOFAKE', ),
$riq = new RelateIQ('66cfba7f741d645a488c0b21ebFAKE', 'effd5216acac6314219ALSOFAKE'); $contact = $riq->getContact('741d645a488c0b21eb');
For Laravel simple use the facade RelateIQ
., (*7)
$contact = new RelateIQ::getContact('741d645a488c0b21eb');
newContact(:properties)
A POST request which creates a new Contact object and returns the created Contact with its new unique ID., (*8)
Parameters:, (*9)
:properties
Attributes that are comprised of a contact object in RelateIQ. The following attributes are supported through the API:
Example, (*10)
$contact = RelateIQ::newContact(array( 'name' => 'John Doe', 'email' => 'john.doe@mail.box', 'phone' => '555-4454', 'address' => '22 Hill Ave', 'company' => 'Box Maker, Inc.', 'title' => 'Lead Taper', 'twitter' => '@John4Boxes' ));
getContact(:id)
A GET request which pulls a specific Contact by ID, Email or Phone Number, (*11)
Parameters:, (*12)
:id
The identifier for the Contact to be fetched.Example, (*13)
$contact = new RelateIQ::getContact('741d645a488c0b21eb');
getContacts()
A GET request which fetches a paginated collection of all Contacts in your Organization., (*14)
Example, (*15)
$contacts = new RelateIQ::getContacts();
A PUT request which updates the details of a specific Contact., (*16)
Example, (*17)
$contact = new RelateIQ::getContact('741d645a488c0b21eb'); $contact->name = 'Sally Doe'; $contact->save();
RelateIQ API v2 client for Laravel & standalone projects.
BSD-2-Clause BSD 2-Clause
laravel api wrapper laravel4 standalone relateiq