Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vildan-valeev/yandexdelivery
Golang library for yandex api
https://github.com/vildan-valeev/yandexdelivery
api client-api golang golang-library yandex yandex-api yandex-delivery yandex-logistic
Last synced: about 1 month ago
JSON representation
Golang library for yandex api
- Host: GitHub
- URL: https://github.com/vildan-valeev/yandexdelivery
- Owner: vildan-valeev
- License: lgpl-3.0
- Created: 2024-01-22T05:32:03.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-02-07T12:56:07.000Z (11 months ago)
- Last Synced: 2024-06-22T06:49:18.968Z (6 months ago)
- Topics: api, client-api, golang, golang-library, yandex, yandex-api, yandex-delivery, yandex-logistic
- Language: Go
- Homepage: https://yandex.ru/dev/logistics/
- Size: 120 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING.LESSER
Awesome Lists containing this project
README
# Library fo API [Yandex Delivery](https://yandex.ru/dev/logistics/api/about/intro.html)
---
If `debugmode` is false, request and response json data wiil be printed to console.---
### Example
```go
package mainimport (
"fmt"
"os"
"github.com/vildan-valeev/yandexdelivery"
yaModels "github.com/vildan-valeev/yandexdelivery/models")
func main() {
cl := yandexdelivery.NewYandexClient(os.Getenv("YandexURL"), os.Getenv("YandexToken"), true)
methods, err := cl.DeliveryMethods(
yaModels.DeliveryMethodsRequest{
FullName: "улица Льва Толстого, 16, Москва",
StartPoint: []float64{
37.588074, 55.733924,
},
})
if err != nil {
return
}fmt.Println(methods)
}```