Posts
Creating Posts
The SDK provides comprehensive tools for creating and managing posts on the OpenMSCP protocol.
Basic Post Creation
// Create a simple text post
const post = await client.post.create({
content: 'Hello, OpenMSCP!',
type: 'text'
});
// Create a post with media
const mediaPost = await client.post.create({
content: 'Check out this image!',
type: 'media',
media: [{
type: 'image',
url: 'ipfs://QmHash...',
alt: 'Description'
}]
});
// Create a post with tags
const taggedPost = await client.post.create({
content: 'Discussing #blockchain and #web3',
type: 'text',
tags: ['blockchain', 'web3']
});Post Types
Post Interactions
Basic Interactions
Advanced Interactions
Post Queries
Basic Queries
Advanced Queries
Post Management
Updating Posts
Post Moderation
Post Analytics
View Statistics
Analytics Interface
Post Events
The SDK provides event listeners for post-related activities.
Post Media Management
Media Upload
Media Interface
Last updated