An open API service indexing awesome lists of open source software.

https://github.com/widgetii/pochtatrack

High-level Go client for tracking.pochta.ru services
https://github.com/widgetii/pochtatrack

Last synced: 9 months ago
JSON representation

High-level Go client for tracking.pochta.ru services

Awesome Lists containing this project

README

          

## Quick examples

### History service

```go
ws := pochtatrack.NewRTM34("LOGIN", "PASSWORD")

res, err := ws.GetOperationHistory("19003132224427")
if err != nil {
log.Fatal(err)
}

fmt.Println(res)
```

### Batch service

```go
ws := pochtatrack.NewFC("LOGIN", "PASSWORD")
ticket := ws.GetTicket([]string{"19003132224427", "12727630039983", "80088332714549"})
time.Sleep(900 * time.Second)
fmt.Println(ws.GetResponse(ticket))
```