UNPKG

fitbit-api-client

Version:
21 lines 705 B
import { FitbitScope } from '../types'; interface RequestOptions extends RequestInit { accessToken?: string; } /** * アクセストークンを持つリクエストオプション */ export interface TokenRequestOptions extends RequestOptions { accessToken: string; } export declare abstract class BaseApi { /** * 必要なスコープ */ abstract scope: FitbitScope | null; protected fetchAPI(path: string, options: RequestOptions): Promise<unknown>; protected get(path: string, options: RequestOptions): Promise<unknown>; protected post(path: string, body: BodyInit, options: RequestOptions): Promise<unknown>; } export {}; //# sourceMappingURL=base.api.d.ts.map