Created
November 2, 2020 17:02
-
-
Save oluyoung/83270f0222914170ce96f90ffb687fae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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