This package makes it easy to interact with Laraccess.
You can install the package via composer:
composer require m1guelpf/laraccess-apiYou must pass a the API token to the constructor of M1guelpf\LaraccessApi\Laraccess.
$laraccess = new \M1guelpf\LaraccessApi\Laraccess('YOUR_LARACCESS_API_TOKEN');or you can skip the token and use the connect() method later
$laraccess = new \M1guelpf\LaraccessApi\Laraccess();
$laraccess->connect('YOUR_LARACCESS_API_TOKEN');$laraccess->getUser();$laraccess->createUser($user);$laraccess->editUser($user);$laraccess->deleteUser();$laraccess->getUserCampaigns();$laraccess->getCampaign($id);$laraccess->createCampaign($campaign);$laraccess->editCampaign($id, $campaign);$laraccess->deleteCampaign($id);$laraccess->getCampaignLeads($id);$laraccess->getLead($id);$laraccess->createLead($id, $lead);$laraccess->editLead($id, $lead);$laraccess->deleteLead($id, $lead);$laraccess->inviteLead($id);$laraccess->regenerateToken($set);where $set is false if you don't want to use the new token on future requests.
$laraccess->getClient();$client = new \GuzzleHttp\Client(); // Example Guzzle client
$laraccess->setClient($client);where $client is an instance of \GuzzleHttp\Client.
Please see CHANGELOG for more information what has changed recently.
$ composer testPlease see CONTRIBUTING for details.
If you discover any security related issues, please email soy@miguelpiedrafita.com instead of using the issue tracker.
The Mozilla Public License 2.0 (MPL-2.0). Please see License File for more information.