Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 850 Bytes

README.md

File metadata and controls

39 lines (29 loc) · 850 Bytes

go-aviasales-api

Golang implementation Aviasales API for data access

GoDoc

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:

aviaApi := aviasales.NewAviasalesApi("YOUR_TOKEN")

Getting directions in which the airline operates flights sorted by popularity:

airlineDirections, err := aviaApi.AirlineDirections("SU", 10)

Requirements

  • Need at least go1.5 or newer.

Documentation

You can read package documentation here.