PHP code example of edywladson / vistasoft
1. Go to this page and download the library: Download edywladson/vistasoft library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
edywladson / vistasoft example snippets
$vista = new \EdyWladson\VistaSoft\VistaSoft("api_url", "api_key");
$get = $vista
->fields([["Codigo", "Nome"])
->filter(["DataAtualizacao" => ["2021-01-10", "2021-02-10"]])
->order(["Codigo" => "asc"])
->paginator(1, 10, true)
->get("/clientes/listar")->callback();
$vista = new \EdyWladson\VistaSoft\VistaSoft("api_url", "api_key");
$post = $vista
->fields(["Nome" => "João Felix", "FonePrincipal" => "00 0000 0000", "VeiculoCaptacao" => "Portal 10"])
->post("/clientes/detalhes")->callback();
$vista = new \EdyWladson\VistaSoft\VistaSoft("api_url", "api_key");
$put = $vista
->clientId(73)
->fields(["FoneResidencial" => "21 8653 9050"])
->put("/clientes/detalhes")->callback();
$vista = new \EdyWladson\VistaSoft\VistaSoft("api_url", "api_key");
$get = $vista
->fields(["Codigo", "Bairro"])
->filter(["Bairro" => ["Centro", "Moema"]])
->order(["Bairro" => "asc"])
->paginator()
->get("/imoveis/listar")->callback();
$vista = new \EdyWladson\VistaSoft\VistaSoft("api_url", "api_key");
$post = $vista
->fields(["Categoria"=>"Apartamento","Endereco"=>"Rua Victor Meirelles","NumeroEnd"=>"600","Complemento"=>"901","Bairro"=>"Campinas","Cidade"=>"São José","UF"=>"SC","CEP"=>"88101170","Situacao"=>"Novo","Ocupacao"=>"Ocupado"])
->post("/imoveis/detalhes")->callback();
$vista = new \EdyWladson\VistaSoft\VistaSoft("api_url", "api_key");
$put = $vista
->immobileId(3152)
->fields(["NumeroEnd"=>"700"])
->put("/imoveis/listar")->callback();