Skip to content

DmitryKolbin/go-global

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go library for Go Global Travel

documentation: https://data.goglobal.travel/specs/XmlSpecs_LatestVersion.html

Example of usage:

service := client.NewGoGlobalService(
		API_URL,
		AGENCY_ID,
		USERNAME,
		PASSWORD,
	)

	response, err := service.Search(models.HotelSearchRequest{
		ResponseFormat: client.ResponseFormatJson,
		IncludeGeo:     true,
		Currency:       "EUR",
		FilterPriceMin: nil,
		FilterPriceMax: nil,
		CityCode:       []int64{75},
		ArrivalDate:    "2023-10-01",
		Nights:         2,
		Apartments:     false,
		Nationality:    "RU",
		Rooms: models.SearchRooms{
			Room: []models.SearchRoom{
				{
					Adults:     2,
					RoomCount:  1,
					ChildCount: 0,
					CotCount:   0,
					ChildAge:   nil,
				},
			},
		},
	}, nil, nil)
	if err != nil {
		log.Fatal(err)
	}

	for _, d := range response {
	    ///handle offers
	    ...
	}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages