GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rastrear/rastrear

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
.eslintrc.json
.eslintrc.json
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
index.js
index.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

@rastrear/rastrear

Instalando

npm i --save @rastrear/rastrear

Exemplo

const rastrear = require("@rastrear/rastrear");

rastrear
  .lastEvent("PX000000000BR")
  .then(res => {
    console.log(res.data);
    // {
    //   versao: '3.0',
    //   quantidade: '1',
    //   pesquisa: 'Lista de Objetos',
    //   resultado: 'Todos os eventos',
    //   objeto: [
    //     {
    //       numero: 'PX000000000BR',
    //       sigla: 'PX',
    //       nome: 'ENCOMENDA PAC (ETIQUETA LOGICA) ',
    //       categoria: 'ENCOMENDA PAC',
    //       evento: [Array] // apenas o último evento
    //     }
    //   ]
    // }
  })
  .catch(err => console.log(err));

rastrear
  .allEvents("PX000000000BR")
  .then(res => {
    console.log(res.data);
    // {
    //   versao: '3.0',
    //   quantidade: '1',
    //   pesquisa: 'Lista de Objetos',
    //   resultado: 'Todos os eventos',
    //   objeto: [
    //     {
    //       numero: 'PX000000000BR',
    //       sigla: 'PX',
    //       nome: 'ENCOMENDA PAC (ETIQUETA LOGICA) ',
    //       categoria: 'ENCOMENDA PAC',
    //       evento: [Array] // todos os eventos do pacote
    //     }
    //   ]
    // }
  })
  .catch(err => console.log(err));

Também é possível passar um Array com mais de um código de rastreamento.

About

No description or website provided.

Topics

correioscorreios-apicorreios-objetoscorreios-rastreiocorreios-sroencomendaspacotesrastreamentorastrearrastreiorastreio-de-pacotes

Resources

Readme
MIT license
Activity
Custom properties

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.