Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Pacote Node para consumo da API Pública da Feegow.

Notifications You must be signed in to change notification settings

feegow/feegow-public-api-node-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Feegow Public API

Importing

Node

  1. npm install @feegow/publicapi
  2. const FeegowPublicAPI = require('@feegow/publicapi');

HTML

  1. <script src="https://unpkg.com/@feegow/publicapi/FeegowPublicAPI.js"></script>

Usage

const feegowApi = new FeegowPublicAPI('<your_x_access_token>');

// Calls an endpoint without specifying version or passing parameters
feegowApi.getPatients();

// Calls an endpoint specifying version
feegowApi.getPatients('v1');

// Calls an endpoint specifying version and passing parameters
feegowApi.getPatients('v1', {
    "view_mode": "full", // not working
    "limit": 1, // not working
    "offset": 0,
    "telefone": "(21) 2018-0123",
    "cpf": "177.820.767-73"
});

About

Pacote Node para consumo da API Pública da Feegow.

Resources

Stars

Watchers

Forks

Packages

No packages published