@serptech/api
Version:
Library for work with SERP API
26 lines (19 loc) • 593 B
text/typescript
import { ApiSettingsInterface, ApiInterface } from "./api";
export interface AuthApiSettingsInterface extends ApiSettingsInterface {
authURL: string;
}
export interface AuthApiInterface extends ApiInterface {
setAuthURL(url: string): void;
}
class AuthApi implements AuthApiInterface {
protected httpClient: any;
protected authURL: string;
constructor(settings: AuthApiSettingsInterface) {
this.httpClient = settings.httpClient;
this.authURL = settings.authURL;
}
setAuthURL(url: string) {
this.authURL = url;
}
}
export { AuthApi };