dev-master
9999999-dev https://github.com/psecio/userappio.gitA library to work with the UserApp.io API
MIT
The Requires
- php >=5.3.1
api library userappio
Wallogit.com
2017 © Pedro Peláez
A library to work with the UserApp.io API
Usage:, (*1)
This is an example of its usage with a Guzzle client instance:, (*2)
require_once 'vendor/autoload.php';
use Guzzle\Http\Client;
$client = new Client();
$appId = '<your app ID>';
$apiToken = '<your API token>';
$service = new \Psecio\Userappio\Service($appId, $apiToken, $client);
// User login
$result = $service->user->login('darthsidious', 'test1234');
print_r($result);
// User save
$result = $service->user->save(array(
'user_id' => $result->user_id,
'login' => 'darthsidious',
'first_name' => 'Test'
));
// User logoff
$result = $service->user->logout();
// Set logging
$service->setLogger(new Logger())
A library to work with the UserApp.io API
MIT
api library userappio