@sethub/sdk
Version:
<div align="center"> <h1> SetHub SDK </h1>
19 lines (18 loc) • 516 B
JavaScript
export 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
};
}
}