@spasea/uz-booking-client
Version:
Unofficial UZ api client
19 lines (18 loc) • 760 B
TypeScript
export default class Station {
lang: string;
/**
* Construct station class.
* @param {string} [lang] - language
* @param {auth} [auth] - the credentials to authenticate to UzBoojking. If auth is
* not provided requests will be made unauthenticated
* @param {string} [apiBase] - the base UzBooking API URL
*/
constructor(lang: string, auth: any, apiBase: string);
/**
* Find station by name
* @param {string} stationName - the name of station
* @param {Function} callback - callback function
* @returns {Promise} - the promise for the http request
*/
find(stationName: string, callback?: (error: Error, data?: object, response?: object) => any): any;
}