GithubHelp home page GithubHelp logo

edilsonborges / correios-rest-api Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 31 KB

API REST para rastreamento de pacotes/objetos enviados via Correios 📒📘 Exemplo:http://localhost:PORTA/AA123456789BR

Home Page: https://correios.edilson.dev

License: MIT License

JavaScript 100.00%
correios correios-rastreio correios-objetos rastreio-de-pacotes correios-rest-api

correios-rest-api's Introduction

correios-rest-api

📦  API REST para rastreamento de pacotes/objetos enviados via Correios 📦

  • git clone https://github.com/edilsonborges/correios-rest-api.git
  • cd correios-rest-api
  • npm i ou yarn
  • npm start ou yarn start
  • o serviço irá inicar na porta 5150
  • requisição get: http://localhost:5150/AA123456789BR
  • resultado: {"versao":"3.0","quantidade":"1","pesquisa":"Lista de Objetos","resultado":"Todos os eventos","objeto":[{"numero":"AA123456789BR","evento":[{"tipo":"BDI","status":"26","data":"31/07/2018","hora":"08:14","criacao":"31072018081409","descricao":"Destinatário não retirou objeto na Unidade dos Correios","detalhe":"Objeto será devolvido ao remetente","recebedor":{},"unidade":{"local":"AC MARACAJU","codigo":"79150970","cidade":"MARACAJU","uf":"MS","sto":"00011595","tipounidade":"Agência dos Correios","endereco":{"codigo":"27818","cep":"79150970","logradouro":"AV JOAO PEDRO FERNANDES, 2500","localidade":"MARACAJU","uf":"MS","bairro":"CENTRO","latitude":"-21.625949","longitude":"-55.1598839"}},"cepDestino":"0000000","prazoGuarda":"0","diasUteis":"0","dataPostagem":"20/04/2010"},{"tipo":"LDI","status":"02","data":"10/07/2018","hora":"15:59","criacao":"10072018155929","descricao":"Objeto disponível para retirada em Caixa Postal","unidade":{"local":"AC MARACAJU","codigo":"79150970","cidade":"MARACAJU","uf":"MS","sto":"00011595","tipounidade":"Agência dos Correios","endereco":{"codigo":"27818","cep":"79150970","logradouro":"AV JOAO PEDRO FERNANDES, 2500","localidade":"MARACAJU","uf":"MS","bairro":"CENTRO","latitude":"-21.625949","longitude":"-55.1598839"}},"cepDestino":"0000000","prazoGuarda":"20","diasUteis":"0","dataPostagem":"20/04/2010"}]}]}

Obs: para enviar requisições sem a necessidade de escrever a porta na URL, configure um proxy reverso no seu servidor com um ServerName (exemplo: correiosrestapi.seudominio.com.br/AA123456789BR)

correios-rest-api's People

Contributors

edilsonborges avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.