Skip to content

Extend Archives

  • Endpoint Path: /api/v2/global/{type}/archives
  • Method: GET
  • Request: Rest + Query

Headers Optional Parameter

Parameter NamePublic Mode (Required)Private Mode (Required)
X-Fresns-Aidrequiredrequired
X-Fresns-Aid-Tokenrequiredrequired
X-Fresns-Uidrequiredrequired
X-Fresns-Uid-Tokenrequiredrequired

Rest Params

Parameter NameTypeRequiredDescription
typeStringrequireduser,group,hashtag,post,comment

Query Params

Parameter NameTypeRequiredDescription
fskeyStringoptionalLeave empty to output all, output specified plugin extension information (archives) if a value is provided

Return

json
{
    "code": 0,
    "message": "ok",
    "data": [
        {
            "fskey": "String / Plugin Fskey",
            "name": "String / Name",
            "description": "String / Description",
            "code": "String / Code",
            "formElement": "String / HTML Form Element",
            "elementType": "String / Form Element Type",
            "elementOptions": "Array / Option Type Configuration Values",
            "isMultiple": "Boolean / Whether multiple selections are allowed, valid for select, email, file, etc.",
            "isRequired": "Boolean / Whether it is required",
            "fileType": "Number / 1. Image 2. Video 3. Audio 4. Document", // Used when elementType is file
            "fileAccept": "String / Supported file extensions, e.g. .jpg, .png", // Used when elementType is file
            "fileExt": "String / Supported file extensions, e.g. jpg, png", // Used when elementType is file
            "inputPattern": "String / Custom Regular Expression",
            "inputMax": "Number / Maximum Value",
            "inputMin": "Number / Minimum Value",
            "inputMaxlength": "Number / Maximum Length",
            "inputMinlength": "Number / Minimum Length",
            "inputSize": "Number / Size",
            "inputStep": "Number / Step",
            "valueType": "String / Data Value Type"
        }
    ]
}

Released under the Apache-2.0 License