@wral/sdk-lothar
v0.0.1
Published
SDK for Lothar Archives
Keywords
Readme
Lothar SDK
This is a simple SDK for the lothar API.
Installation
npm install @wral/sdk-lotharUsage
import { createClient } from '@wral/sdk-lothar/v1';
const config = {
baseUrl: 'YOUR_BASE_URL', // Base URL of your API
apiKey: 'YOUR_API_KEY', // API key or auth signed JWT
};
const lothar = createClient(config);
// List todays arvhives
const items = await lothar.listItems({ date: new Date() });API
createClient({ baseUrl, apiKey })- Creates a client for the User Facts APIclient.listItems({ date })- Lists archives for a day
