recall_sdk
Version:
Node js sdk for the recall ai api
18 lines (15 loc) • 443 B
text/typescript
import axios, { AxiosInstance } from 'axios';
export class RecallAxios {
private static instance: AxiosInstance | null = null;
static getInstance({ apiKey }: { apiKey: string }): AxiosInstance {
if (!RecallAxios.instance) {
RecallAxios.instance = axios.create({
headers: {
Authorization: `Token ${apiKey}`,
Accept: 'application/json'
}
});
}
return RecallAxios.instance;
}
}