bundle.social SDK
Node.js SDK for bundle.social API.
Check out our detailed docs here https://info.bundle.social/api-reference/sdk
Installation
npm install bundlesocial
yarn add bundlesocial
pnpm add bundlesocial
!!! Make sure you have generated an API key on bundle.social. !!!
Setup
import { BundleSocial } from 'bundlesocial';
const bundleSocial = new BundleSocial('YOUR_API_KEY');
Usage
const createdPost = await bundlesocial.post.postCreate({
requestBody: {
teamId: team.id,
data: {
INSTAGRAM: {
text: 'Test Post',
type: 'REEL',
uploadIds: [
videoUpload?.id
]
},
YOUTUBE: {
text: 'Test Post',
type: 'SHORT',
madeForKids: false,
uploadIds: [
videoUpload?.id
],
privacyStatus: 'PUBLIC',
},
TIKTOK: {
text: 'Test Post',
uploadIds: [
videoUpload?.id
],
privacy: 'PUBLIC_TO_EVERYONE',
},
REDDIT: {
sr: 'r/bundlesocial',
text: 'Test Post',
uploadIds: [
jpgUpload.id
],
},
},
postDate: new Date().toISOString(),
socialAccountTypes: ['INSTAGRAM', 'YOUTUBE', 'TIKTOK', 'REDDIT'],
status: 'SCHEDULED',
title: 'Test Post',
}
});
License
MIT