Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (16 sloc) 558 Bytes
package aviasales
type Alliance struct {
Name string `json:"name" bson:"name"`
Airlines []string `json:"alias" bson:"alias"`
}
// DataAirlinesAlliances a list of alliances from the database.
//
// Documentation:
// https://support.travelpayouts.com/hc/ru/articles/203956163#13
//
// Example URI:
// http://api.travelpayouts.com/data/airlines_alliances.json
func (a *AviasalesApi) DataAirlinesAlliances() (airlinesAlliances []Alliance, err error) {
err = a.getJson("data/airlines_alliances.json", map[string]string{}, &airlinesAlliances)
return
}
You can’t perform that action at this time.