Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
namespace App\Client;
class Client
{
protected $token;
protected handler()
{
$client = new Client();
$client->request(..., ..., [
'body' => ...
])
}
public function __call($nome, $attribute)
{
$nome = get-contas-a-pagar;
$this->url = '/api/' + $nome;
$this->handler();
}
public function contasAPagarFornecedores()
{
$this->url = '...';
$this->handler();
}
}
app()->bind('App\Client\Client', function ($app) {
$client = new App\Client;
$client->auth();
return $client;
});
$client = app()->make('App\Client\Client');
$client->getContasAPagar('GET', $data) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment