Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 months 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 (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-26T08:08:34.000Z (almost 8 years ago)
- Last Synced: 2024-06-20T05:16:21.011Z (7 months 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[![GoDoc](https://godoc.org/github.com/liderman/go-hotellook-api?status.svg)](https://godoc.org/github.com/liderman/go-hotellook-api)
Installation
-----------
go get github.com/liderman/go-hotellook-apiUsage
-----------
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).