A gem that makes it easy to work with the EasyBroker API.
-
Is a copy from EasyBroker API GEM.
-
Visit More info.
-
modify file env
-
add next line
-
API_KEY_EasyBroker= Use your API Key
//Get all
//Instance class with parameter
$easy=new EasyBroker(env("API_KEY_EasyBroker"),env('APP_ENV'));
$contactosResponsePagination = $easy->client()->contact_requests()->search("");
if(!$contactosResponsePagination->error())
{
//Return content
return $contactosResponsePagination->content();
}
else
{
//Return message by error
return $contactosResponsePagination->response()["error"];
}
https://probandoeasybroker.herokuapp.com/.
The recommended way to install JoshybaDev/EasyBroker is through Composer.
composer require joshybadev/easybroker "*"
JoshybaDev/EasyBroker is made available under the MIT License (MIT). Please see License File for more information.