Skip to content

Draft Info

json
{
    "did": "String / Draft ID",
    "fsid": "String / Published content pid or cid",
    "quotedPid": "String / Quoted Post ID", // Post Only
    "replyToPid": "String / Reply to post id", // Comment Only
    "replyToCid": "String / Reply to comment id", // Comment Only
    "title": "String / Title", // Post Only
    "content": "String / Content",
    "contentLength": "Number / Total Content Length",
    "isMarkdown": "Boolean / Whether it is in MD format",
    "isAnonymous": "Boolean / Whether anonymous",
    "isPrivate": "Boolean / Comment whether private",
    "locationInfo": {
        // Location Info
    },
    "moreInfo": {
        // The following keys are known
    },
    "permissions": {
        // Permissions
    },
    "archives": [
        // Common Data Structure -> Extend Archive Info
    ],
    "files": {
        "images": [
            {
                // Common Data Structure -> File Info
            }
        ],
        "videos": [
            {
                // Common Data Structure -> File Info
            }
        ],
        "audios": [
            {
                // Common Data Structure -> File Info
            }
        ],
        "documents": [
            {
                // Common Data Structure -> File Info
            }
        ]
    },
    "extends": {
        "texts": [
            {
                // Common Data Structure -> Extend Content Info -> texts
            }
        ],
        "infos": [
            {
                // Common Data Structure -> Extend Content Info -> infos
            }
        ],
        "actions": [
            {
                // Common Data Structure -> Extend Content Info -> actions
            }
        ]
    },
    "group": {
        // The group to which the item belongs can be null.
        // Common Data Structure -> Group Info
    },
    "geotag": {
        // Common Data Structure -> Geotag Info
    },
    "createdDatetime": "String / Create Time",
    "createdTimeAgo": "String / Human-readable Create Time",
    "state": "Number / State",
    "reason": "String / Rejection reason during review"
}

permissions Introduction

json
{
    "editor": {
        "isAppEditor": "Boolean / Whether the editor plugin create",
        "editorFskey": "String / editor fskey"
    },
    "contentWritingDirection": "String / Writing Direction", // ltr or rtl
    "canDelete": "Boolean / Does the author have the right to delete?",
    "readConfig": {
        "isReadLocked": "Boolean / Is a reading auth required",
        "previewPercentage": "Number / content display ratio when unauthorized",
        "whitelist": {
            "users": [
                {
                    "fsid": "String / User identifier ID, uid or username",
                    "uid": "Number / User ID",
                    "url": "String / User homepage URL",
                    "username": "String / Username",
                    "nickname": "String / User nickname",
                    "avatar": "String / Avatar image"
                }
            ],
            "roles": [
                {
                    "rid": "String / Role ID",
                    "name": "String / Role name",
                    "icon": "String / Role icon URL"
                }
            ]
        },
        "buttonName": "String / Button Name",
        "appUrl": "String / App Page URL"
    },
    "associatedUserListConfig": {
        "hasUserList": "Boolean / Is there a special user list?",
        "userListName": "String / User List Name",
        "appUrl": "String / App Page URL"
    },
    "commentConfig": {
        "visible": "Boolean / Whether comments are visible (invisible is hidden from everyone, including the author)",
        "policy": "Number / Who can reply? 1. Everyone / 2. People you follow / 3. People you follow or verified / 4. No one is allowed / 5. Only users you mention",
        "privacy": "String / public or private (visible only to the author of the comment and the author of the post)",
        "action": {
            "hasActionButton": "Boolean / Does the comment have an action button?",
            "buttonName": "String / Button Name",
            "buttonStyle": "String / Button Style: primary secondary success danger warning info",
            "appUrl": "String / App Page URL"
        }
    },
}
json
{
    "editor": {
        "isAppEditor": "Boolean / Whether the editor plugin create",
        "editorFskey": "String / editor fskey"
    },
    "contentWritingDirection": "String / Writing Direction", // ltr or rtl
    "canDelete": "Boolean / Does the author have the right to delete?",
    "activeButton": {
        // Link with post commentConfig.action, replace this configuration
        "hasActiveButton": "Boolean / Whether there is an active button or not",
        "buttonName": "String / Button Name",
        "buttonStyle": "String / Button Style primary secondary success danger warning info",
        "appUrl": "String / App Page URL"
    },
}

Released under the Apache-2.0 License