Quick Start Guide
Get up and running with URI Social SDK in under 5 minutes. This guide will walk you through installation, authentication, and making your first API call.
1
Installation
npm install @urisocial/sdk
2
Initialize the SDK
Import the SDK and initialize it with your API key
import { URISocial } from '@urisocial/sdk';
const client = new URISocial({
apiKey: process.env.URISOCIAL_API_KEY
});3
Make Your First Request
Let's generate social media content for multiple platforms
async function generatePost() {
try {
const content = await client.content.generate({
seedContent: 'Launch our new perfume line 🚀',
platforms: ['instagram', 'facebook'],
referenceImage: 'https://example.com/product.jpg'
});
console.log('Generated content:', content);
} catch (error) {
console.error('Error:', error.message);
}
}
generatePost();