
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
agoda-service
Advanced tools
This npm package provides functionalities to interact with the Agoda API for flight search and location information.
This npm package provides functionalities to interact with the Agoda API for flight search and location information.
To install the Agoda Service Package, use npm:
npm install online-travel-tequila-service
The AgodaService
class initializes the Agoda API service. It provides access to two main functionalities: location and flight search.
import { AgodaService } from 'install online-travel-tequila-service';
// Initialize Agoda Service
const tequilaService = new AgodaService({
apiKey: 'YOUR_API_KEY',
baseUrl: 'https://api.tequila.kiwi.com',
});
// Access location service
const locationService = tequilaService.location;
// Access flight search service
const searchService = tequilaService.search
import { AgodaLocationService } from 'install online-travel-tequila-service';
// Initialize Agoda Location Service
const locationService = new AgodaLocationService({
apiKey: 'YOUR_API_KEY',
baseUrl: 'https://api.tequila.kiwi.com',
});
// Example: Search location by query
const locationQuery = await locationService.searchByQuery({
term: 'New York',
limit: 10,
});
or
import { AgodaService } from 'install online-travel-tequila-service';
// Initialize Agoda Service
const tequilaService = new AgodaService({
apiKey: 'YOUR_API_KEY',
baseUrl: 'https://api.tequila.kiwi.com',
});
// Access location service
const locationService = tequilaService.location;
// Example: Search location by query
const locationQuery = await locationService.searchByQuery({
term: 'New York',
limit: 10,
});
// Initialize Agoda Search Service
import { AgodaSearchService } from 'install online-travel-tequila-service';
// Initialize Agoda Search Service
const searchService = new AgodaSearchService({
apiKey: 'YOUR_API_KEY',
baseUrl: 'https://api.tequila.kiwi.com',
});
// Example: Search flights
const flightResults = await searchService.searchFlights({
fly_from: 'NYC',
fly_to: 'LAX',
date_from: '2023-12-01',
date_to: '2023-12-05',
});
or
import { AgodaService } from 'install online-travel-tequila-service';
// Initialize Agoda Service
const tequilaService = new AgodaService({
apiKey: 'YOUR_API_KEY',
baseUrl: 'https://api.tequila.kiwi.com',
});
// Access search service
const searchService = tequilaService.search
// Example: Search flights
const flightResults = await searchService.searchFlights({
fly_from: 'NYC',
fly_to: 'LAX',
date_from: '2023-12-01',
date_to: '2023-12-05',
});
```#� �a�g�o�d�a�-�s�e�r�v�i�c�e�
�
�
FAQs
This npm package provides functionalities to interact with the Agoda API for flight search and location information.
The npm package agoda-service receives a total of 1 weekly downloads. As such, agoda-service popularity was classified as not popular.
We found that agoda-service demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.