Skip to content

A simple Object Oriented wrapper for Janrain API, written with PHP5.

License

Notifications You must be signed in to change notification settings

JorgeSivil/php-janrain-api

 
 

Repository files navigation

PHP Janrain API

Build Status Coverage Status

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

License

MIT License - see LICENSE file.

About

A simple Object Oriented wrapper for Janrain API, written with PHP5.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%