Skip to content

About

SDK and CLI tool for using post2all

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

post2all-sdk

Open-source TypeScript SDK and CLI for the post2all public API.

Packages

Package Description
@post2all/sdk TypeScript SDK — typed client for account connections, publishing, and analytics
@post2all/cli CLI tool — connect accounts and manage posts/analytics from terminal

Quick start

CLI

pnpm add -g @post2all/cli
post2all config set-key amp_xxx
post2all accounts

SDK

pnpm add @post2all/sdk
import { Post2allClient } from "@post2all/sdk";

const client = new Post2allClient({
  apiKey: process.env.POST2ALL_API_KEY,
});

const accounts = await client.listAccounts();
const analytics = await client.getAccountAnalytics(accounts.accounts[0].id);

The SDK and CLI can also start headless social-account connections. OAuth users authorize directly with the social network and do not need a post2all account or login session. Business and Agency workspaces can create optional Profiles for clients, brands, or customers; client.forProfile(profileId) and CLI --profile-id provide a shared x-profile-id organization context for filtering lists and organizing new connections/posts. Profiles are not separate security tenants, and moving an account does not break existing post targets. Business supports 2 profiles and Agency supports up to 10 profiles. The SDK also exposes account-wide and per-post analytics plus failed-target retry without republishing successful targets.

Development

pnpm install
pnpm run build
pnpm run typecheck
pnpm run lint

Related

  • Changelog — versioned SDK and CLI changes and deprecations
  • post2all — social media scheduling platform
  • API Reference — full REST API documentation

About

SDK and CLI tool for using post2all

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages