UNPKG

fitbit-api-client

Version:
26 lines 839 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ProfileApi = void 0; const base_api_1 = require("./base.api"); const profile_1 = require("../models/profile"); class ProfileApi extends base_api_1.BaseApi { constructor() { super(...arguments); this.scope = 'profile'; } /** * プロフィール取得API * https://dev.fitbit.com/build/reference/web-api/user/get-profile/ * @param options */ async getProfile(options) { const response = await this.getProfileRaw(options); return (0, profile_1.ProfileResponseFromJson)(response); } async getProfileRaw(options) { const path = `/1/user/-/profile.json`; return this.get(path, options); } } exports.ProfileApi = ProfileApi; //# sourceMappingURL=profile.api.js.map