|
|
||
|---|---|---|
| .. | ||
| src | ||
| .babelrc | ||
| .npmignore | ||
| README.md | ||
| package.json | ||
| tsconfig.json | ||
| tsup.config.ts | ||
README.md
Postiz NodeJS SDK
This is the NodeJS SDK for Postiz.
You can start by installing the package:
npm install @postiz/node
Usage
import Postiz from '@postiz/node';
const postiz = new Postiz('your api key', 'your self-hosted instance (optional)');
The available methods are:
post(posts: CreatePostDto)- Schedule a post to PostizpostList(filters: GetPostsDto)- Get a list of postsupload(file: Buffer, extension: string)- Upload a file to Postizintegrations()- Get a list of connected channelsdeletePost(id: string)- Delete a post by ID
Alternatively you can use the SDK with curl, check the Postiz API documentation for more information.