@use-socials/sdk
v0.1.0
Published
Node.js SDK for the use-socials API
Downloads
22
Maintainers
Readme
@use-socials/sdk
This package is in active development and is not yet valid for production use.
Install
npm install @use-socials/[email protected]Quick Start
import { UseSocialsClient } from "@use-socials/sdk";
const client = new UseSocialsClient({
apiKey: process.env.USE_SOCIALS_API_KEY!,
});
const user = await client.users.create({
externalId: "user_123",
});
const connectUrl = await client.oauth.getUrl({
platform: "youtube",
userId: user.userId,
redirectUrl: "https://your-app.com/oauth/callback",
});
console.log(connectUrl);Configuration
const client = new UseSocialsClient({
apiKey: process.env.USE_SOCIALS_API_KEY!,
});Options:
apiKey: required org API key sent asx-api-keybaseUrl: optional API base URLbaseOptions: optional Axios request configaxios: optional custom Axios instance
