hinet-hichannel-taiwan-radio
Version:
取得 HiNet hichannel 台灣電台的 m3u8 串流網址、節目表和其他資訊!
28 lines (27 loc) • 677 B
TypeScript
import type { ProxyOptions } from './interfaces/ProxyInterface';
export declare class Proxy {
private readonly _host;
private readonly _port;
private readonly _protocol;
private _username;
private _password;
/**
* Proxy constructor.
*
* @param {ProxyOptions} options 主機名、端口 (預設 3128)、協定 (預設 http)
*/
constructor(options: ProxyOptions);
/**
* 登入 Proxy
*
* @param {string} username 帳號
* @param {string} password 密碼
*/
login(username: string, password: string): void;
/**
* 取得 Proxy URL
*
* @returns {string}
*/
get(): string;
}