https://github.com/asaferamos/correios-rastreio-api-parser
API construída a partir de parsing da página de rastreio dos Correios.
https://github.com/asaferamos/correios-rastreio-api-parser
correios correios-api correios-rastreio correios-sro
Last synced: 5 months ago
JSON representation
API construída a partir de parsing da página de rastreio dos Correios.
- Host: GitHub
- URL: https://github.com/asaferamos/correios-rastreio-api-parser
- Owner: asaferamos
- Created: 2018-05-20T20:42:17.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-19T13:05:02.000Z (over 7 years ago)
- Last Synced: 2025-05-24T01:06:20.271Z (about 1 year ago)
- Topics: correios, correios-api, correios-rastreio, correios-sro
- Language: PHP
- Homepage: https://correios-rastreio-api-parser.herokuapp.com/
- Size: 20.5 KB
- Stars: 8
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Correios Rastreio API Parser
API construída a partir de parsing da página de rastreio dos Correios.
[](https://correios-rastreio-api-parser.herokuapp.com/)
## Utilização
```
$Correios = new \Baru\Correios\RastreioParser();
$Correios->setCode('RE999999999BR');
//Último evento
$Evento = $Correios->getEventLast();
//Lista todos eventos
$Eventos = $Correios->getEventsList();
```
#### Evento
Label
`$evento->getLabel();`
> _Objeto postado_
---
Location
`$evento->getLocation();`
> _Goiânia / GO_
---
Date
`$evento->getDate();`
> _12/12/2012_
---
Hour
`$evento->getHour();`
> _12:12_
---
Description
`$evento->getDescription();`
> _de Unidade de Distribuição em SUMARE / SP para Agência dos Correios em SUMARE / SP_