PHP wrapper for the Pipefy API
PHP 7.3+
Via composer:
composer require raffaalves/pipefy-api
$pipefy = new Pipefy('api_key');
$pipefy->query(object/function, Input fields, Return fields)
$pipefy->mutation(object/function, Input fields, Return fields)
// get card
$pipefy = new Pipefy('api_key');
$card = $pipefy->query('card', ['id' => 99999], ['title']);
// create card
$pipefy = new Pipefy('api_key');
$data = [
'pipe_id' => '301692098',
'title' => 'Teste 22'
];
$card = $pipefy->mutation('createCard', $data, ['card' => ['id']]);