Simple SDK to consume IBPT API

1.0 2021-06-03 19:23 UTC

This package is auto-updated.

Last update: 2024-04-17 05:21:34 UTC


README

Simple SDK to consume IBPT API

Codacy Badge Build Status

Installation

This SDK requires the composer installed.

Install the dependencies and devDependencies and start the server.

    "require": {
        "pablosanches/ibpt": "dev-master"
    },

Then on you project directory...

    composer install
    composer update

Usage

This SDK is very simple to use.

    use PabloSanches\IBPT\IBPTClient;

    $config = array(
        'token' => '--your token here--'
    );

    self::$IBPT = IBPTClient::config($config);

    $response = static::$IBPT->Produto()->get(array(
        "cnpj" => "",
        "codigo" => "",
        "uf" => "",
        "descricao" => "",
        "unidadeMedida" => "",
        "valor" => 0
    ));

    $response = static::$IBPT->Servico()->get(array(
        "cnpj" => "",
        "codigo" => "",
        "uf" => "",
        "descricao" => "",
        "unidadeMedida" => "",
        "valor" => 0
    ));

That's it! Now enjoy it! ;)