1.0.16 • Published 10 months ago

@sociogram-dev/platform-api v1.0.16

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

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 authentication
  • baseUrl (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

1.0.16

10 months ago

1.0.15

10 months ago

1.0.14

10 months ago

1.0.12

10 months ago

1.0.11

10 months ago

1.0.10

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago