Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

agoda-service

Package Overview
Dependencies
Maintainers
0
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agoda-service

This npm package provides functionalities to interact with the Agoda API for flight search and location information.

  • 1.0.24
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
0
Weekly downloads
 
Created
Source

Agoda Service Package

This npm package provides functionalities to interact with the Agoda API for flight search and location information.

Installation

To install the Agoda Service Package, use npm:

    npm install online-travel-tequila-service

Usage

AgodaService

The AgodaService class initializes the Agoda API service. It provides access to two main functionalities: location and flight search.

Example:
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

AgodaLocationService

Example:
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,
});

AgodaSearchService

Example:
// 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�
�
�

Keywords

FAQs

Package last updated on 03 Sep 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc