gedex / janrain-api
Janrain API client
0.1.0
2014-02-03 10:09 UTC
Requires
- php: >=5.3.2
- ext-curl: *
- guzzle/guzzle: >=3.8
Requires (Dev)
- phpunit/phpcov: 2.0.*@dev
- phpunit/phpunit: >3.6.0
- satooshi/php-coveralls: dev-master
This package is not auto-updated.
Last update: 2024-12-18 13:15:36 UTC
README
A simple Object Oriented wrapper for Janrain API, written with PHP5.
Usage
Find Entity
require_once 'vendor/autoload.php'; $client = new Janrain\Client(); $client->setOption('base_url', 'https://example.janraincapture.com'); $client->setOption('client_id', 'xxx'); $client->setOption('client_secret', 'xxx'); $entities = $client->api('entity')->find(array( 'type_name' => 'user', 'filter' => 'emailVerified is not null', 'attributes' => array('uuid', 'displayName', 'email'), ));
Add Entity
$result = $client->api('entity')->create(array( 'type_name' => 'user', 'attributes' => array( 'firstName' => 'Akeda', 'lastName' => 'Bagus', ), ));
See examples for complete references.
TODO
- Complete unit tests coverage
- More examples
Credits
- Janrain API documentation
- Nicely architectured library php-github-api by KNPLabs where this library borrows the design.
License
MIT License - see LICENSE file.