UNPKG

fivesim-api

Version:

Node.js wrapper for the 5sim.net API - SMS verification service with TypeScript support

34 lines (33 loc) 1.21 kB
import { Language, Country, Operator } from "../interfaces/types"; import { ProductsResponse, PricesResponse, CountriesResponse, NotificationResponse } from "../interfaces/responses"; export declare class GuestService { private static readonly baseURL; /** * Get available products for a specific country and operator */ static getProducts(country: Country, operator: Operator): Promise<ProductsResponse>; /** * Get all prices */ static getPrices(): Promise<PricesResponse>; /** * Get prices for a specific country */ static getPricesByCountry(country: Country): Promise<PricesResponse>; /** * Get prices for a specific product */ static getPricesByProduct(product: string): Promise<PricesResponse>; /** * Get prices for a specific country and product combination */ static getPricesByCountryAndProduct(country: Country, product: string): Promise<PricesResponse>; /** * Get notifications in specified language */ static getNotifications(lang: Language): Promise<NotificationResponse>; /** * Get list of available countries */ static getCountries(): Promise<CountriesResponse>; }