raffaalves/pipefy-api

There is no license information available for the latest version (dev-main) of this package.

Pipefy Api non-official

dev-main 2022-05-31 18:58 UTC

This package is auto-updated.

Last update: 2024-11-29 06:35:38 UTC


README

PHP wrapper for the Pipefy API

Requirements

PHP 7.3+

Installation

Via composer:

composer require raffaalves/pipefy-api

Documentation

Tutorial

$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']]);

Useful links