1.0.16 • Published 2 months ago

@sociogram-dev/platform-api v1.0.16

Weekly downloads
-
License
MIT
Repository
-
Last release
2 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

2 months ago

1.0.15

2 months ago

1.0.14

2 months ago

1.0.12

2 months ago

1.0.11

2 months ago

1.0.10

2 months ago

1.0.9

2 months ago

1.0.8

2 months ago

1.0.7

2 months ago

1.0.6

2 months ago

1.0.5

2 months ago

1.0.4

3 months ago

1.0.3

3 months ago

1.0.2

3 months ago

1.0.1

3 months ago