跳到主要内容

获取成员的展示柜

GET/v1/members/{username}/showcase

返回已发布的个人主页展示柜:其中的区块、区块顺序和页面主题。

请求

Shell
curl -g "https://api.nogitsu.com/v1/members/{username}/showcase"

参数

  • username

    路径必填

    成员的用户名。

    文本

响应

请求成功时返回 200 和以下 JSON:

  • showcase对象可为 null
    • theme对象可为 null
      • background文本
      • accent文本
      • font文本
        允许的值defaultserifmono
      • density文本
        允许的值comfortablecompact
    • blocks多种结构之一 列表
      1. 选项 1

        • isVisibletrue 或 false
        • width文本
          允许的值widenarrow
        • kind文本
          允许的值currently_consuming
        • library文本
          允许的值screenreading
      2. 选项 2

        • isVisibletrue 或 false
        • width文本
          允许的值widenarrow
        • kind文本
          允许的值favorites
        • subject文本
          允许的值workcharacter
      3. 选项 3

        • isVisibletrue 或 false
        • width文本
          允许的值widenarrow
        • kind文本
          允许的值pinned_collection
        • collectionId文本 (uuid)
      4. 选项 4

        • isVisibletrue 或 false
        • width文本
          允许的值widenarrow
        • kind文本
          允许的值collection_list
      5. 选项 5

        • isVisibletrue 或 false
        • width文本
          允许的值widenarrow
        • kind文本
          允许的值stats
      6. 选项 6

        • isVisibletrue 或 false
        • width文本
          允许的值widenarrow
        • kind文本
          允许的值genres
      7. 选项 7

        • isVisibletrue 或 false
        • width文本
          允许的值widenarrow
        • kind文本
          允许的值badges
      8. 选项 8

        • isVisibletrue 或 false
        • width文本
          允许的值widenarrow
        • kind文本
          允许的值communities
    • version整数

      0 到 9007199254740991

    • updatedAt文本 (date-time)

错误

与所有操作一样,此操作在参数无效时可能返回 400,找不到内容时返回 404,请求过多时返回 429。所有错误的结构都相同。

了解错误