1.0.16 • Published 1 month ago

@sociogram-dev/platform-api v1.0.16

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

1 month ago

1.0.15

1 month ago

1.0.14

1 month ago

1.0.12

1 month ago

1.0.11

1 month ago

1.0.10

1 month ago

1.0.9

1 month ago

1.0.8

1 month ago

1.0.7

1 month ago

1.0.6

1 month ago

1.0.5

2 months ago

1.0.4

2 months ago

1.0.3

2 months ago

1.0.2

2 months ago

1.0.1

2 months ago