跳到主要内容

列出成员的片单

GET/v1/members/{username}/collections

返回成员的公开片单。

请求

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

参数

  • username

    路径必填

    成员的用户名。

    文本

  • cursor

    查询可选

    上一页的 nextCursor 值。读取第一页时省略。

    文本

  • workId

    查询可选

    仅限包含此作品的片单。

    文本 (uuid)

  • language

    查询可选

    仅限以此语言撰写的片单。

    文本

响应

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

  • items对象 列表
    • id文本 (uuid)
    • name文本
    • slug文本
    • path文本
    • description文本可为 null
    • visibility文本
      允许的值publicunlistedprivate
    • isOrderedtrue 或 false
    • language文本
      允许的值entrdefresptitruidjakozh
    • itemCount整数

      0 到 9007199254740991

    • subscriberCount整数

      0 到 9007199254740991

    • owner对象
      • username文本
      • displayName文本
      • avatarUrl文本 (uri)可为 null
    • covers对象 列表
      • url文本 (uri)
      • variantWidths整数 列表

        -9007199254740991 到 9007199254740991

    • isRemovedtrue 或 false
    • isIndexabletrue 或 false
    • createdAt文本 (date-time)
    • updatedAt文本 (date-time)
  • nextCursor文本可为 null

错误

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

了解错误