1.0.16 • Published 1 month ago
@sociogram-dev/platform-api v1.0.16
SG SDK
A TypeScript SDK for interacting with the SG API.
Installation
yarn add @sociogram-dev/api
Usage
import { SociogramDevKit } from '@sociogram-dev/api';
// Initialize the SDK with your API key
const sdk = new SociogramDevKit({
apiKey: 'your-api-key',
});
// Send a notification to a user
await sdk.notifyUser('userId', 'your_notification_message');
API Reference
Config Options
apiKey
(required): Your API key for authenticationbaseUrl
(optional): Custom API base URL (defaults to 'https://api.example.com')
notifyUser(userId: string, message: string): Promise
Sends a notification to a specific user.
License
MIT