Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (30 sloc) 1.06 KB
package aviasales
import "fmt"
type InputPricesWeekMatrix struct {
Currency string
Origin string
Destination string
ShowToAffiliates bool
DepartDate string
ReturnDate string
// PricesWeekMatrix calendar of prices for a week.
// Returns prices nearest the target dates.
// Documentation:
// Example URI:
func (a *AviasalesApi) PricesWeekMatrix(input InputPricesWeekMatrix) (prices DataPrice, err error) {
err = a.getJson("v2/prices/week-matrix", map[string]string{
"currency": input.Currency,
"origin": input.Origin,
"destination": input.Destination,
"show_to_affiliates": fmt.Sprint(input.ShowToAffiliates),
"depart_date": input.DepartDate,
"return_date": input.ReturnDate,
"token": a.token,
}, &prices)
You can’t perform that action at this time.