@oystehr/sdk
Version:
Oystehr SDK
21 lines (18 loc) • 820 B
text/typescript
// AUTOGENERATED -- DO NOT EDIT
import { MessagingGetMessagingConfigResponse, OystehrClientRequest } from '../..';
import { SDKResource } from '../../client/client';
import { OystehrConfig } from '../../config';
export class Messaging extends SDKResource {
constructor(config: OystehrConfig) {
super(config);
}
#baseUrlThunk(): string {
return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
}
/**
* Get an information about the Messaging services configuration. This information includes phone number, phone number type and also rate limits of each service.
*/
getMessagingConfig(request?: OystehrClientRequest): Promise<MessagingGetMessagingConfigResponse> {
return this.request('/messaging/config', 'get', this.#baseUrlThunk.bind(this))(request);
}
}