https://github.com/liderman/go-hotellook-api
Golang implementation Hotellook API for static data access
https://github.com/liderman/go-hotellook-api
api-client golang hotel hotel-api hotel-booking hotel-content hotellook hotellook-api hotels
Last synced: over 1 year ago
JSON representation
Golang implementation Hotellook API for static data access
- Host: GitHub
- URL: https://github.com/liderman/go-hotellook-api
- Owner: liderman
- License: mit
- Created: 2017-01-10T17:14:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-26T08:08:34.000Z (about 9 years ago)
- Last Synced: 2025-01-23T01:08:39.800Z (over 1 year ago)
- Topics: api-client, golang, hotel, hotel-api, hotel-booking, hotel-content, hotellook, hotellook-api, hotels
- Language: Go
- Size: 5.86 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-hotellook-api
Golang implementation Hotellook API for static data access
[](https://godoc.org/github.com/liderman/go-hotellook-api)
Installation
-----------
go get github.com/liderman/go-hotellook-api
Usage
-----------
Creates a new instance HotellookApi:
```go
hotelApi := hotellook.NewHotellookApi("YOUR_TOKEN")
```
Getting a list of hotels for locationId `895`:
```go
hotels, err := hotelApi.Hotels(895)
```
Requirements
-----------
* Need at least `go1.5` or newer.
Documentation
-----------
You can read package documentation [here](http:godoc.org/github.com/liderman/go-hotellook-api).