@starsched/sdk
Version:
ABA clinic control and management service API SDK
20 lines (19 loc) • 460 B
JavaScript
export class Profiles {
httpClient;
constructor(httpClient) {
this.httpClient = httpClient;
}
async getMyProfile(options) {
const response = await this.httpClient.get('/v1/profiles/me', options);
if (!response.ok) {
return {
data: null,
error: response.body
};
}
return {
data: response.body,
error: null
};
}
}