Skip to content

Instantly share code, notes, and snippets.

@oluyoung
Created November 2, 2020 17:02
Show Gist options
  • Save oluyoung/83270f0222914170ce96f90ffb687fae to your computer and use it in GitHub Desktop.
Save oluyoung/83270f0222914170ce96f90ffb687fae to your computer and use it in GitHub Desktop.
public getAvailability(apiToken) {
return new Promise((resolve, reject) => {
axios.get('api/connect/hotels/id/availability')
.then((response) => resolve(response.data))
.catch(error => reject(new HttpRequestError(error)));
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment