https://github.com/gedex/php-janrain-api
A simple Object Oriented wrapper for Janrain API, written with PHP5.
https://github.com/gedex/php-janrain-api
api-client janrain php php-janrain-api
Last synced: 11 months ago
JSON representation
A simple Object Oriented wrapper for Janrain API, written with PHP5.
- Host: GitHub
- URL: https://github.com/gedex/php-janrain-api
- Owner: gedex
- License: mit
- Created: 2014-01-20T05:32:24.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-12-12T19:17:35.000Z (over 9 years ago)
- Last Synced: 2025-03-21T13:12:40.720Z (over 1 year ago)
- Topics: api-client, janrain, php, php-janrain-api
- Language: PHP
- Size: 51.8 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PHP Janrain API
===============
[](https://travis-ci.org/gedex/php-janrain-api)
[](https://coveralls.io/r/gedex/php-janrain-api?branch=master)
A simple Object Oriented wrapper for [Janrain API](http://developers.janrain.com/documentation/api/), written with PHP5.
# Usage
## Find Entity
~~~php
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
~~~php
$result = $client->api('entity')->create(array(
'type_name' => 'user',
'attributes' => array(
'firstName' => 'Akeda',
'lastName' => 'Bagus',
),
));
~~~
See [examples](examples/README.md) for complete references.
# TODO
* Complete unit tests coverage
* More examples
# Credits
* [Janrain API documentation](http://developers.janrain.com/documentation/api/)
* Nicely architectured library [php-github-api](https://github.com/KnpLabs/php-github-api) by [KNPLabs](https://github.com/KnpLabs) where this library borrows the design.
# License
MIT License - see [LICENSE file](LICENSE).