UNPKG

@sethub/sdk

Version:

<div align="center"> <h1> SetHub SDK </h1>

23 lines (22 loc) 642 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Profiles = void 0; class Profiles { constructor(httpClient) { this.httpClient = httpClient; } async getMy(options) { const response = await this.httpClient.get('/v1/profiles/me', { abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }); if (!response.ok) { return { data: null, error: response.body }; } return { data: response.body, error: null }; } } exports.Profiles = Profiles;