A simple Object Oriented wrapper for Janrain API, written with PHP5.
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'),
));
$result = $client->api('entity')->create(array(
'type_name' => 'user',
'attributes' => array(
'firstName' => 'Akeda',
'lastName' => 'Bagus',
),
));
See examples for complete references.
- Complete unit tests coverage
- More examples
- Janrain API documentation
- Nicely architectured library php-github-api by KNPLabs where this library borrows the design.
MIT License - see LICENSE file.