Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/philipheinser/tas-sdk-js

Trivago API Wrapper
https://github.com/philipheinser/tas-sdk-js

Last synced: 12 days ago
JSON representation

Trivago API Wrapper

Awesome Lists containing this project

README

        

# tas-sdk-js

## Usage

```
import Trivago from 'tas-sdk-js';

let opts = {
access_id: '1234',
secret_key: '1234',
};

let trivago = Trivago(opts);

trivago.getHotelDetails('itemid').then((data)=>{
console.log(data)
});
```

## Tests

```
ACCESS_ID=1234 SECRET_KEY=1234 npm test
```