Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@revolugo/revolugo-client-js
Advanced tools
Javascript Revolugo Booking API Client (browser + server)
The Revolugo Client Javascript provides convenient access to the Revolugo API from applications written in server-side JavaScript or for browser based applications
See the revolugo
API docs.
npm install @revolugo/revolugo-client-js --save
const Revolugo = require('@revolugo/revolugo-client-js')
const revolugoClient = new Revolugo.ApiClient({
apiKey: '<public-or-private-api-key-here>',
apiVersion: 'v1',
environment: Revolugo.Environment.SANDBOX
})
import * as Revolugo from '@revolugo/revolugo-client-js'
const revolugoClient = new Revolugo.ApiClient({
apiKey: '<public-or-private-api-key-here>',
apiVersion: 'v1',
environment: Revolugo.Environment.SANDBOX
})
Option | Default | Description |
---|---|---|
apiKey | Required | Public or Private Api Key provided by Revolugo |
environment | Required | Target environment for the client (Environment.PRODUCTION | Environment.SANDBOX) |
version | Required | Api version |
See the revolugo
API docs. for more details about inputs / outputs
const hotelOfferRequest = await revolugoClient.hotelOfferRequests.create({
adult_count: 5,
room_count: 3,
check_in_date: '2021-05-30',
check_out_date: '2021-06-02',
latitude: 45.76405021831942,
longitude: 4.835700988769532,
source_market: 'FR'
})
Some calls require polling to see the complete output. Polling is already handled by the library
revolugoClient.hotelOffers.list({
hotel_offer_request_id: <request-id>,
currency: 'EUR'
}, (err, result) => {
if (err) {
console.log("Error while Polling")
handleError(err)
return
}
if (result.meta.status === 'in-progress') {
console.log("Still Polling")
doSomething(result)
} else {
console.log("Done Polling")
doSomething(result)
}
})
FAQs
Javascript Revolugo Booking API Client (browser + server)
We found that @revolugo/revolugo-client-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.