https://github.com/liderman/go-aviasales-api
Golang implementation Aviasales API for data access
https://github.com/liderman/go-aviasales-api
api aviasales aviasales-api flights golang travel
Last synced: about 2 months ago
JSON representation
Golang implementation Aviasales API for data access
- Host: GitHub
- URL: https://github.com/liderman/go-aviasales-api
- Owner: liderman
- License: mit
- Created: 2016-04-16T11:41:46.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-15T18:35:51.000Z (over 8 years ago)
- Last Synced: 2025-07-30T08:47:38.255Z (2 months ago)
- Topics: api, aviasales, aviasales-api, flights, golang, travel
- Language: Go
- Size: 13.7 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-aviasales-api
Golang implementation Aviasales API for data access[](https://godoc.org/github.com/liderman/go-aviasales-api)
Installation
-----------Stable release (v1):
```
go get gopkg.in/liderman/go-aviasales-api.v1
```Non stable release (master branch):
```
go get github.com/liderman/go-aviasales-api
```Usage
-----------
Creates a new instance AviasalesApi:
```go
aviaApi := aviasales.NewAviasalesApi("YOUR_TOKEN")
```Getting directions in which the airline operates flights sorted by popularity:
```go
airlineDirections, err := aviaApi.AirlineDirections("SU", 10)
```Requirements
-----------* Need at least `go1.5` or newer.
Documentation
-----------You can read package documentation [here](http:godoc.org/github.com/liderman/go-aviasales-api).