Skip to content

Commit

Permalink
fix: readme and more
Browse files Browse the repository at this point in the history
  • Loading branch information
jhowbhz committed Jun 1, 2023
1 parent 0d99e59 commit 682c09c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ https://www.npmjs.com/package/apigratis-sdk-nodejs
| Up | Services available | Description | Free | Beta | Stable |
| --- | ------------------ | ------------------------------------- | ---- | ---- | ------ |
|| WhatsAppService | API do WhatsApp Gratuita. ||||
| | Receita Data CNPJ | API Dados CNPJ Receita. | | ||
| | Receita Data CPF | API Dados de CPF Serasa. | | ||
| | CorreiosService | API Busca encomendas Correios Brazil. | | ||
| | CEPLocation | API CEP Geolocation + IBGE Brazil. | | ||
| | Receita Data CNPJ | API Dados CNPJ Receita. | | ||
| | Receita Data CPF | API Dados de CPF Serasa. | | ||
| | CorreiosService | API Busca encomendas Correios Brazil. | | ||
| | CEPLocation | API CEP Geolocation + IBGE Brazil. | | ||
|| VehiclesService | API Placa Dados. ||||
| | FipeService | API Placa FIPE. | | ||
| | FipeService | API Placa FIPE. | | ||

## WhatsApp Service

Expand Down Expand Up @@ -107,3 +107,5 @@ vehiclesApi
})
.then(resp => console.log(JSON.stringify(resp, undefined, ' ')));
```

...Em breve mais exemplos
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apigratis-sdk-nodejs",
"version": "0.1.1",
"version": "0.1.4",
"description": "A ideia desse SDK é otimizar o tempo de código dos usuários auxiliando na integração com a plataforma",
"homepage": "https://apigratis.com.br",
"author": "APIGratis <contato@apigratis.com.br> (https://apigratis.com.br)",
Expand All @@ -20,7 +20,7 @@
"correios"
],
"scripts": {
"build": "tsc -p .",
"build": "yarn tsc",
"start": "tsc && link-module-alias && node dist/index.js",
"dev": "tsc && link-module-alias && concurrently \"tsc --watch\" \"nodemon dist/index.js\"",
"test": "jest",
Expand Down
4 changes: 4 additions & 0 deletions src/Cep/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { createApiInstance, Credentials } from '../GeneralAPI';

export const createCepApi = (credentials: Credentials) =>
createApiInstance('cep', credentials);
3 changes: 2 additions & 1 deletion src/GeneralAPI/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export type Action =
| 'vehicles'
| 'correios'
| 'dados/cpf'
| 'dados/cnpj';
| 'dados/cnpj'
| 'cep';

export const createApiInstance = (action: Action, credentials: Credentials) => {
const axiosInstance = axios.create({
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ export * from './Correios';
export * from './Vehicle';
export * from './Whatsapp';
export * from './Cpf';
export * from './Cep';

0 comments on commit 682c09c

Please sign in to comment.