@epilot/email-template-client
Version:
API Client for epilot Email Template API
30 lines (19 loc) • 1.17 kB
Markdown
# @epilot/email-template-client
[](https://github.com/epilot-dev/sdk-js/actions?query=workflow%3ACI)
[](https://www.npmjs.com/package/@epilot/email-template-client)
[](https://bundlephobia.com/package/@epilot/email-template-client)
[](https://github.com/epilot-dev/sdk-js/blob/main/LICENSE)
API Client for epilot [Email Template API](https://docs.epilot.io/api/email-template).
Uses [`openapi-client-axios`](https://github.com/openapistack/openapi-client-axios)
## Installation
```bash
npm install --save @epilot/email-template-client
```
## Usage
```typescript
import { getClient } from '@epilot/email-template-client';
const emailTemplateClient = getClient();
const getResponse = await emailTemplateClient.getTemplateDetail({ id: 'a10bd0ff-4391-4cfc-88ee-b19d718a9bf7' });
```
## Documentation
https://docs.epilot.io/docs/messaging/email-templates