UNPKG

fitness-libraries

Version:
12 lines (11 loc) 481 B
import { Api as FitbitApi, ApiScope } from 'fitbit-api-handler'; import FitbitStorageService from './FitbitStorageService'; export default class FitbitService { protected fitbitApi: FitbitApi; protected storage: FitbitStorageService; protected returnUrl: string; constructor(fitbitApi: FitbitApi, storage: FitbitStorageService, returnUrl: string); getApi(): FitbitApi; getLoginUrl(scopes?: ApiScope[]): string; authorize(code: string): Promise<void>; }