Skip to content

Content Types

  • Endpoint Path: /api/v2/global/{type}/content-types
  • Method: GET
  • Request: Rest

Headers Optional Parameter

Parameter NamePublic Mode (Required)Private Mode (Required)
X-Fresns-Aidoptionalrequired
X-Fresns-Aid-Tokenoptionalrequired
X-Fresns-Uidoptionalrequired
X-Fresns-Uid-Tokenoptionalrequired

Rest Params

Parameter NameTypeRequiredDescription
typeStringrequiredpost,comment

Return

json
{
    "code": 0,
    "message": "ok",
    "data": [
        {
            "fskey": "String / Plugin Fskey",
            "name": "String / Name",
            "icon": "String / Service provider icon URL",
            "url": "String / Service provider access URL",
            "badgesType": "Number / Display type 1.Red dot 2.Text 3.Number",
            "badgesValue": "String / Display text or number",
            "pluginRating": {
                "postByAll": [
                    {
                        "id": "Number / For list interface pluginRatingId parameter",
                        "title":"String / Title",
                        "description":"String / Description"
                    }
                ],
                "postByFollow": [
                    // ditto
                ],
                "postByNearby": [
                    // ditto
                ],
                "commentByAll": [
                    // ditto
                ],
                "commentByFollow": [
                    // ditto
                ],
                "commentByNearby": [
                    // ditto
                ]
            }
        }
    ]
}

Released under the Apache-2.0 License