Skip to content

说明

采用RESTFul 风格API

  • Request

    • Method: 表示对资源操作.

    • Path:表示资源.

    • Headers公共请求头:

      • Content-Type: 表示发送的payload的类型,默认为: application/json

      • follow_key: 请求追踪ID,客户端传入方便追踪用户操作,从而定位问题,如果不传,后端则会生成。

      • access_token: 访问令牌,由 获取会话 接口提供

      • handset: 用户设备数据上报,格式为json字符串,包含以下字段:

      json5
        {
          "package_id": "com.example.myapp", // 包名
          "version": "1.0.0", // 应用版本
          "ip": "192.168.1.1", // ip地址
          "country": "US", // 国家
          "language": "en", // 语言
          "vpn_user": true, // 是否vpn用户
          "dev_type": "Android",// 设备类型 ios android
          "os_version": "Android 13", // 操作系统版本
          "device_model": "Samsung Galaxy S22",// 设备型号
          "network_type": "WIFI", // 网络类型
          "client_time": "2025-06-20 13:38:28", // 客户端时间
        }
      • site: 平台,ios或者android

      • trigger_sort: 来源类型,用于归因

  • Response: 采用Http状态码+自定义错误响应来表示

    • 100-199协议层面,无需处理

    • 200-299表示成功,部分无需返回结果的业务以返回的http状态码作为依据

    • 300-399相关跳转

    • 400-499500-599响应错误:

      • 返回给客户端错误信息结构如下:
        json5
        {
          "timestamp": 1747312781642, // 时间戳
          "status": 503, // http code
          "trace_id": "T-OrCEGtFR5fsM", // 追踪id
          "code": 10, // 业务code
          "path": "/accounts:invite", // 路径
          "error": "服务异常"  // 错误信息
        }

API列表

获取页面布局(根据语言)

  • Request

    • Path: /standards/:display_category/regions/:territory

    • Method: get

    • PathVariable:

      • display_category:页面类型,home(首页),ranking(排行榜),playbill(剧单页)

      • territory:语言

  • Response

    • Body
    json5
    {
      "standard": "${@body._embedded.poster}" // 详见页面布局新数据接口
    }

    示例值:

    json5
    {
      "standard": []
    }

获取建议配置

  • Request

    • Path: /profile/counsels

    • Method: get

  • Response

    • Body
    json5
    {
      "instruction_props": "${@body._embedded.advice_setting}" // 配置的建议词
    }

    示例值:

    json5
    {
      "instruction_props": ["x","xx"]
    }

上报用户建议

  • Request

    • Path: /profile/counsels/elevate

    • Method: post

    • Body:

    json5
    {
      "counsels": "${@body.advices}", // 建议
      "supplementary_input": "${@body.more_advice}" // 更多建议
    }

    示例值:

    json5
    {
      "counsels": ["x","xx"],
      "supplementary_input": ""
    }
  • Response

    • Status: 200

批量删除观看

  • Request

    • Path: /profile/blocks/inspected

    • Method: delete

    • Body:

    json5
    [
      {
        "chunk_tag": "${@$.episode_id}", // 剧id
        "territory": "${@$.language}" // 语言
      }
    ]

    示例值:

    json5
    [
      {
        "chunk_tag": 0,
        "territory": ""
      }
    ]
  • Response

    • Status: 200

批量删除收藏

  • Request

    • Path: /profile/blocks/favorited

    • Method: delete

    • Body:

    json5
    [
      {
        "chunk_tag": "${@$.episode_id}", // 剧id
        "territory": "${@$.language}" // 语言
      }
    ]

    示例值:

    json5
    [
      {
        "chunk_tag": 0,
        "territory": ""
      }
    ]
  • Response

    • Status: 200

获取用户某个短剧的收藏情况

  • Request

    • Path: /profile/blocks/:chunk_tag/regions/:territory/favorited

    • Method: get

    • PathVariable:

      • chunk_tag:剧id

      • territory:语言

  • Response

    • Body
    json5
    {
      "chunk_tag": "${@body.episode_id}", // 剧id
      "territory": "${@body.language}", // 语言
      "favored": "${@body.is_favored}", // 是否收藏
      "account_last_look": "${@body.user_watched_last}" // 最新观看时间
    }

    示例值:

    json5
    {
      "chunk_tag": 1,
      "territory": "en",
      "favored": true,
      "account_last_look": 123
    }

获取收藏记录

  • Request

    • Path: /profile/favorited

    • Method: get

    • QueryParams:

      • page:页码

      • text_aggregate:页大小

      • territory:语言

  • Response

    • Body
    json5
    {
      "page": "${@body.page}", // 页码
      "text_aggregate": "${@body.page_size}", // 页大小
      "favorited": [ // _embedded.favored
        {
          "chunk_tag": "${@$.episode_id}", // 剧id
          "territory": "${@$.language}", // 语言
          "phase_key": "${@$.part_index}", // 集数
          "whole_distance": "${@$.total_duration}", // 总时长
          "block_aggregate": "${@$.episode_count}", // 总集数
          "index_pic": "${@$.cover}", // 封面
          "quality": "${@$.feature}", // 特征
          "schools": "${@$.categories}", // 分类
          "top_label": "${@$.title}", // 标题
          "gist": "${@$.intro}", // 简介
          "specifications": "${@$.description}", // 详情
          "titles": "${@$.tags}" // 标签
        }
      ]
    }

    示例值:

    json5
    {
      "page": 1,
      "text_aggregate": 12,
      "favorited": [
        {
          "chunk_tag": 1,
          "territory": "",
          "phase_key": 1,
          "whole_distance": 1.1,
          "block_aggregate": 10,
          "index_pic": "",
          "quality": "",
          "schools": ["",""],
          "top_label": "",
          "gist": "",
          "specifications": "x",
          "titles": ["",""]
        }
      ]
    }

获取用户某个短剧的观看情况

  • Request

    • Path: /profile/inspected/blocks/:chunk_tag/regions/:territory

    • Method: get

    • PathVariable:

      • chunk_tag:剧id

      • territory:语言

  • Response

    • Body
    json5
    {
      "chunk_tag": "${@body.episode_id}", // 剧id
      "phase_key": "${@body.part_index}", // 集数
      "territory": "${@body.language}", // 语言
      "watch_stats": "${@body.play_times}", // 播放次数
      "debut_time": "${@body.started_at}", // 开始播放时间
      "done_date": "${@body.finished_at}" // 观看完成时间
    }

    示例值:

    json5
    {
      "chunk_tag": 1,
      "phase_key": 1,
      "territory": "en",
      "watch_stats": 1,
      "debut_time": 123,
      "done_date": 122
    }

获取观看记录

  • Request

    • Path: /profile/inspected

    • Method: get

    • QueryParams:

      • page:页码

      • text_aggregate:页大小

      • territory:语言

  • Response

    • Body
    json5
    {
      "page": "${@body.page}", // 页码
      "text_aggregate": "${@body.page_size}", // 页大小
      "inspected": [ // _embedded.watched
        {
          "chunk_tag": "${@$.episode_id}", // 剧id
          "territory": "${@$.language}", // 语言
          "phase_key": "${@$.part_index}", // 集数
          "debut_time": "${@$.started_at}", // 开始播放时间
          "whole_distance": "${@$.total_duration}", // 总时长
          "block_aggregate": "${@$.episode_count}", // 总集数
          "quality": "${@$.feature}", // 特征
          "favored": "${@$.is_favored}", // 是否收藏
          "index_pic": "${@$.cover}", // 封面
          "schools": "${@$.categories}", // 分类
          "top_label": "${@$.title}", // 标题
          "gist": "${@$.intro}", // 简介
          "watch_stats": "${@$.play_times}", // 播放次数
          "titles": "${@$.tags}" // 标签
        }
      ]
    }

    示例值:

    json5
    {
      "page": 1,
      "text_aggregate": 12,
      "inspected": [
        {
          "chunk_tag": 1,
          "territory": "",
          "phase_key": 1,
          "debut_time": 12,
          "whole_distance": 1.1,
          "block_aggregate": 1,
          "quality": "",
          "favored": true,
          "index_pic": "",
          "schools": ["",""],
          "top_label": "xx",
          "gist": "x",
          "watch_stats": 11,
          "titles": ["",""]
        }
      ]
    }

获取短剧剧集

  • Request

    • Path: /blocks/:chunk_tag/regions/:territory/compilation

    • Method: get

    • PathVariable:

      • chunk_tag:剧id

      • territory:语言

  • Response

    • Body
    json5
    {
      "chunk_tag": "${@body.episode_id}", // 剧id
      "territory": "${@body.language}", // 语言
      "top_label": "${@body.title}", // 标题
      "gist": "${@body.intro}", // 简介 
      "favored": "${@body.is_favored}", // 是否收藏
      "account_last_look": "${@body.user_watched_last}", // 最新观看时间
      "entry_controls": { // unlock_setting 全局解锁配置
        "cash_on_visit": "${@body.unlock_setting.coins_single_consume}", // 解锁需要的金币
        "prize_ratio_log": "${@body.unlock_setting.bonus_single_consume}" // 解锁需要的代币
      },
      "compilation": [ // _embedded.playlist
        {
          "reference_key": "${@$.id}", // id
          "chunk_tag": "${@$.episode_id}", // 剧id
          "phase_key": "${@$.part_index}", // 集数
          "territory": "${@$.language}", // 语言
          "consent_score": "${@$.likes}", // 喜欢数
          "virtual_cash": "${@$.coins}", // 解锁需要的金币数
          "perks": "${@$.bonus}", // 解锁需要的代币数
          "period": "${@$.duration}", // 时长
          "gist": "${@$.intro}", // 简介
          "specifications": "${@$.description}", // 详情
          "trailer": "${@$.thumbnail}", // 缩略图
          "visual_tide": "${@$.stream_hls}", // hls播放地址
          "segment_channel": "${@$.stream_dash}", // dash播放地址
          "click_freq": "${@$.watch_times}", // 观看次数
          "entrance": "${@$.unlock}" // 是否解锁
        }
      ]
    }

    示例值:

    json5
    {
      "chunk_tag": 1,
      "territory": "x",
      "top_label": "xx",
      "gist": "xx",
      "favored": true,
      "account_last_look": 122,
      "entry_controls": {
        "cash_on_visit": 100,
        "prize_ratio_log": 100
      },
      "compilation": [
        {
          "reference_key": 3,
          "chunk_tag": 2,
          "phase_key": 1,
          "territory": "en",
          "consent_score": 11,
          "virtual_cash": 100,
          "perks": 100,
          "period": 1.1,
          "gist": "xx",
          "specifications": "xxx",
          "trailer": "xx",
          "visual_tide": "xxx",
          "segment_channel": "xxx",
          "click_freq": 11,
          "entrance": true
        }
      ]
    }

获取用户推荐剧列表

  • Request

    • Path: /profile/blocks/regions/:territory/propose

    • Method: get

    • PathVariable:

      • territory:语言
    • QueryParams:

      • quantification:数量
  • Response

    • Body
    json5
    {
      "choice_queue": [ // _embedded.recommend_list
        {
          "chunk_tag": "${@$.episode_id}", // 剧集ID
          "territory": "${@$.language}", // 语言
          "top_label": "${@$.title}",
          "gist": "${@$.intro}",
          "favored": "${@$.is_favored}", // 是否收藏
          "account_last_look": "${@$.user_watched_last}", // 最近观看
          "entry_controls": {
            "cash_on_visit": "${@$.unlock_setting.coins_single_consume}", // 解锁需要的金币
            "prize_ratio_log": "${@$.unlock_setting.bonus_single_consume}" // 解锁需要的代币
          },
          "compilation": [ // _embedded.playlist
            {
              "reference_key": "${@$.id}", // ID
              "chunk_tag": "${@$.episode_id}", // 剧集ID
              "phase_key": "${@$.part_index}", // 集数
              "territory": "${@$.language}", // 语言
              "virtual_cash": "${@$.coins}", // 解锁需要的金币数
              "perks": "${@$.bonus}", // 解锁需要的代币数
              "consent_score": "${@$.likes}", // 点赞数
              "period": "${@$.duration}", // 时长
              "gist": "${@$.intro}", // 简介
              "specifications": "${@$.description}", // 描述
              "trailer": "${@$.thumbnail}", // 缩略图
              "visual_tide": "${@$.stream_hls}", // HLS流
              "segment_channel": "${@$.stream_dash}", // DASH流
              "click_freq": "${@$.watch_times}", // 观看次数
              "entrance": "${@$.unlock}" // 是否解锁
            }
          ]
        }
      ]
    }

    示例值:

    json5
    {
      "choice_queue": [
        {
          "chunk_tag": 0,
          "territory": "",
          "top_label": "",
          "gist": "",
          "favored": true,
          "account_last_look": 0,
          "entry_controls": {
            "cash_on_visit": 0,
            "prize_ratio_log": 0
          },
          "compilation": [
            {
              "reference_key": 0,
              "chunk_tag": 0,
              "phase_key": 0,
              "territory": "en",
              "virtual_cash": 0,
              "perks": 0,
              "consent_score": 0,
              "period": 0.0,
              "gist": "",
              "specifications": "",
              "trailer": "",
              "visual_tide": "",
              "segment_channel": "",
              "click_freq": 0,
              "entrance": true
            }
          ]
        }
      ]
    }

获取短剧详情

  • Request

    • Path: /blocks/:chunk_tag/regions/:territory/specifications

    • PathVariable:

      • chunk_tag:剧id

      • territory:语言

    • Method: get

  • Response

    • Body
    json5
    {
      "chunk_tag": "${@body.episode_id}", // 剧id
      "territory": "${@body.language}", // 语言
      "top_label": "${@body.title}", // 标题
      "whole_distance": "${@body.total_duration}", // 总时长
      "block_aggregate": "${@body.episode_count}", // 总集数
      "zero_charge_vol": "${@body.free_count}", // 免费集数
      "gist": "${@body.intro}", // 简介
      "specifications": "${@body.description}", // 详情
      "sub_header": "${@body.subtitle}", // 副标题
      "titles": "${@body.tags}", // 标签
      "part_finished": "${@body.is_episode_end}" // 是否完结
    }

    示例值:

    json5
    {
      "chunk_tag": 1,
      "territory": "en",
      "top_label": "",
      "whole_distance": 1.1,
      "block_aggregate": 1,
      "zero_charge_vol": 1,
      "gist": "",
      "specifications": "",
      "sub_header": "",
      "titles": ["x","xx"],
      "part_finished": true
    }

获取短剧

  • Request

    • Path: /blocks/:chunk_tag

    • PathVariable:

      • chunk_tag:剧id
    • Method: get

  • Response

    • Body
    json5
    {
      "reference_key": "${@body.id}", // id
      "index_pic": "${@body.cover}", // 封面
      "flags_quantity": "${@body.bookmarks_count}",  // 收藏数
      "class": "${@body.grade}", // 评分
      "schools": "${@body.categories}", // 分类
      "fallback_locale": "${@body.default_lang}", // 语言
      "debut_time": "${@body.released_at}" // 更新时间
    }

    示例值:

    json5
    {
      "reference_key": 1,
      "index_pic": "xxx",
      "flags_quantity": 10,
      "class": 1.0,
      "schools": ["x","xx"],
      "fallback_locale": "en",
      "debut_time": 123
    }

结束播放短剧

  • Request

    • Path: /blocks/:chunk_tag/regions/:territory/episodes/:phase_key/channel/completed

    • Method: get

    • PathVariable:

      • chunk_tag:剧id

      • phase_key:第几集

      • territory:语言

  • Response

    • Status: 200

开始播放短剧

  • Request

    • Path: /blocks/:chunk_tag/regions/:territory/episodes/:phase_key/channel/running

    • Method: get

    • PathVariable:

      • chunk_tag:剧id

      • phase_key:第几集

      • territory:语言

  • Response

    • Status: 200

用户取消收藏短剧

  • Request

    • Path: /profile/blocks/:chunk_tag/regions/:territory/unflag

    • Method: get

    • PathVariable:

      • chunk_tag:剧id

      • territory:语言

  • Response

    • Status: 200

用户收藏短剧

  • Request

    • Path: /profile/blocks/:chunk_tag/regions/:territory/clip_spot

    • Method: get

    • PathVariable:

      • chunk_tag:剧id

      • territory:语言

  • Response

    • Status: 200

用户分享短剧

  • Request

    • Path: /profile/blocks/:chunk_tag/regions/:territory/broadcasted

    • Method: get

    • PathVariable:

      • chunk_tag:剧id

      • territory:语言

  • Response

    • Status: 200

获取年龄

  • Request

    • Path: /chronological_eras

    • Method: get

  • Response

    • Body
    json5
    {
      "player_vintage": "${@body._embedded.ages}" // 词典数据列表
    }

    示例值:

    json5
    {
      "player_vintage": []
    }

修改个人详情

  • Request

    • Path: /profile_details/amend

    • Method: patch

    • Body:

    json5
    {
      "screenname": "${@body.nickname}", // 昵称
      "identity_photo": "${@body.avatar}", // 头像
      "generation_input": "${@body.age}", // 年龄
      "orientation_bin": "${@body.sex}" // 性别
    }

    示例值:

    json5
    {
      "screenname": "",
      "identity_photo": "",
      "generation_input": "",
      "orientation_bin": ""
    }
  • Response

    • Status: 200

获取个人详情

  • Request

    • Path: /profile_details

    • Method: get

  • Response

    • Body
    json5
    {
      "enrollment_code": "${@body.user_id}", // 用户id
      "screenname": "${@body.nickname}", // 昵称
      "identity_photo": "${@body.avatar}", // 头像
      "generation_input": "${@body.age}", // 年龄
      "orientation_bin": "${@body.sex}", // 性别
      "origin_kind": "${@body.source_type}", // 归因类型
      "unique": "${@body.special}", // 特殊用户
      "gate_open": "${@body.is_access}", // 是否白名单用户
      "mobile_edge": "${@body.app_side}", // A、B 面
      "mask_audit": "${@body.check_vpn}", // 是否开启vpn检测
      "dossier_sub": { // user_subscription
        "settlement_route": "${@body.user_subscription.payment_method}", // 支付方式(google: 谷歌内购,apple: 苹果内购)
        "season_category": "${@body.user_subscription.bicycle_type}", // 订阅扣款类型 (weekly,monthly, yearly,用于商品类型为vip和coins_package的)
        "loop_stop_moment": "${@body.user_subscription.expiration_time}", // 订阅过期时间(时间戳)
        "gold_class": "${@body.user_subscription.is_vip}", // 是否为vip
        "recurring_ok": "${@body.user_subscription.is_subscribed}" // 是否已订阅
      },
      "recent_registrations": [ // new_user_subscriptions
        {
          "settlement_route": "${@$.payment_method}", // 支付方式(google: 谷歌内购,apple: 苹果内购)
          "season_category": "${@$.bicycle_type}", // 订阅扣款类型 (weekly,monthly, yearly,用于商品类型为vip和coins_package的)
          "loop_stop_moment": "${@$.expiration_time}", // 订阅过期时间(时间戳)
          "gold_class": "${@$.is_vip}", // 是否为vip 
          "recurring_ok": "${@$.is_subscribed}", // 是否已订阅
          "credit_asset_uid": "${@$.coins_item_id}", // Coins物品id(用于商品类型为coins_package)
          "gold_aggregate": "${@$.coins_count}", // Coins数量(用于商品类型为coins_package)
          "extra_thing_id": "${@$.bonus_item_id}", // Bonus物品id(用于商品类型为coins_package)
          "gift_all": "${@$.bonus_count}", // Bonus数量(用于商品类型为coins_package)
          "login_id": "${@$.sign_item_id}", // 签到赠送Bonus物品id(用于商品类型为coins_package)
          "total_logins": "${@$.sign_count}", // 签到赠送Bonus数量(用于商品类型为coins_package)
          "access_days": "${@$.sign_days}", // 签到赠送Bonus数量(用于商品类型为coins_package)
          "imported_id": "${@$.outer_platform_product_id}" // 外部平台商品id
        }
      ],
      "equilibrium": { // wallet
        "virtual_cash": "${@body.wallet.coins}", // 金币
        "perks": "${@body.wallet.bonus}" // 代币
      },
      "relations": { // _links
        "program_consumer": "${@body._links.app_user.href}", // 用户协议
        "app_seclusion": "${@body._links.app_privacy.href}", // 隐私协议
        "app_disbursement": "${@body._links.app_payment.href}", //支付协议
        "tool_data_protect": "${@body._links.app_gdpr.href}", // gdpr
        "code_protection_act": "${@body._links.app_ccpa.href}", //ccpa
        "user_agreement": "${@body._links.terms_of_service.href}", // trems
        "face_net_apple": "${@body._links.fb_page_ios.href}", // fb page ios
        "face_net_html": "${@body._links.fb_page_web.href}" // fb page web
      }
    }

    示例值:

    json5
    {
      "enrollment_code": "",
      "screenname": "",
      "identity_photo": "",
      "generation_input": "",
      "orientation_bin": "",
      "origin_kind": "",
      "unique": "",
      "gate_open": "",
      "mobile_edge": "",
      "mask_audit": "",
      "dossier_sub": {
        "settlement_route": "",
        "season_category": "",
        "loop_stop_moment": 1231,
        "gold_class": true,
        "recurring_ok": true
      },
      "recent_registrations": [
        {
          "settlement_route": "",
          "season_category": "",
          "loop_stop_moment": 123,
          "gold_class": true,
          "recurring_ok": true,
          "credit_asset_uid": 1,
          "gold_aggregate": 0,
          "extra_thing_id": 2,
          "gift_all": 0,
          "login_id": 2,
          "total_logins": 0,
          "access_days": 0,
          "imported_id": ""
        }
      ],
      "equilibrium": {
        "virtual_cash": 100,
        "perks": 100
      },
      "relations": {
        "program_consumer": "x",
        "app_seclusion": "x",
        "app_disbursement": "xx",
        "tool_data_protect": "xx",
        "code_protection_act": "xx",
        "user_agreement": "xx",
        "face_net_apple": "x",
        "face_net_html": "x"
      }
    }

修改用户自动解锁配置

  • Request

    • Path: /profile/equilibrium/smart_gateway_set

    • Method: patch

  • Response

    • Status: 200

获取会话

  • Request

    • Path: /contacts

    • Method: get

    • QueryParams:

      • commodity_cast:产品组
  • Response

    • Body
    json5
    {
      "door_ticket": "${@body.access_token}", // token
      "dead_time": "${@body.expires_at}", // 过期时间
      "novice_member": "${@body.is_new_user}", // 是否新用户
      "anonymous_user": "${@body.is_anonymous}", // 是否匿名用户
      "auto_login_prefs": "${@body.auto_unlock_setting}" // 是否开启自动解锁
    }

    示例值:

    json5
    {
      "door_ticket": "",
      "dead_time": 123,
      "novice_member": true,
      "anonymous_user": true,
      "auto_login_prefs": false
    }

获取指定语言的词典数据

  • Request

    • Path: /maps/regions/:territory

    • Method: get

    • PathVariable:

      • territory:语言
  • Response

    • Body
    json5
    {
      "maps": [ // 词典数据列表,_embedded.dict_item_vo_lis
        {
          "keyword": "${@$.word}", // 词汇
          "locale": "${@$.trans}" // 翻译
        }
      ]
    }

    示例值:

    json5
    {
      "maps": [
        {
          "keyword": "For You",
          "locale": "Para Você"
        },
        {
          "keyword": "Home",
          "locale": "Início"
        }
      ]
    }

获取支持的语言列表

  • Request

    • Path: /maps/regions

    • Method: get

  • Response

    • Body
    json5
    {
      "regions": "${@body._embedded.languages}" // 支持的语言列表
    }

    示例值:

    json5
    {
      "regions": ["pt", "en"]
    }

获取首页短剧推送列表

  • Request

    • Path: /dashboard_alert/regions/:territory

    • Method: get

    • PathVariable:

      • territory:语言
  • Response

    • Body
    json5
    {
      "digital_asset": [ // body
        {
           "chunk_tag": "${@$.episode_id}", // 剧id
           "top_label": "${@$.title}", // 标题
           "index_pic": "${@$.cover}", // 封面
           "gist": "${@$.intro}" // 详情
        }
      ]
    }

    示例值:

    json5
    {
      "digital_asset": [
        {
           "chunk_tag": 1,
           "top_label": "x",
           "index_pic": "xx",
           "gist": "xxx"
        }
      ]
    }

上报事件

  • Request

    • Path: /phenomena/:interaction_name

    • Method: post

    • PathVariable:

      • interaction_name:事件名
  • Response

    • Status: 200

    • Body

      json5
      {
        "xxx": "xxx", //事件参数
        "xxx": "xxx"
      }

      示例值:

      json5
      {
        "xxx": "xxx"
      }

更新FCM访问令牌

  • Request

    • Path: /profile_details/remote_bell_tag

    • Method: patch

    • Body:

      json5
      {
        "google_cloud_id": "${@body.fcm_token}" // fcm令牌
      }

      示例值:

      json5
      {
        "google_cloud_id": "xxxxx"
      }
  • Response

    • Status: 200

解锁剧集

  • Request

    • Path: /blocks/:chunk_tag/regions/:territory/episodes/:phase_key/entrance

    • Method: get

    • PathVariable:

      • chunk_tag:剧id

      • phase_key:第几集

      • territory:语言

    • QueryParams:

      • signin_road:解锁方式 item 物品解锁 ad 广告解锁
  • Response

    • Body

      json5
      {
        "reference_key": "${@body.id}", // id
        "chunk_tag": "${@body.episode_id}", // 剧id
        "phase_key": "${@body.part_index}", // 第几集
        "territory": "${@body.language}", // 语言
        "period": "${@body.duration}", // 时长
        "trailer": "${@body.thumbnail}", // 首帧图
        "visual_tide": "${@body.stream_hls}", // hls播放地址
        "segment_channel": "${@body.stream_dash}" // dash播放地址
      }

      示例值:

      json5
      {
        "reference_key": 1,
        "chunk_tag": 1,
        "phase_key": 1,
        "territory": "en",
        "period": 1.1,
        "trailer": "xx",
        "visual_tide": "xx",
        "segment_channel": "xx"
      }

上报用户设备信息

  • Request

    • Path: /contacts/physical_tech

    • Method: post

    • Body:

      json5
      {
        "chip_serial": "${@body.device_id}", //设备id
        "kernel_host": "${@body.os}", // 系统
        "platform_gen": "${@body.os_version}", // 系统版本
        "calibrate_num": "${@body.adid}", // adjust id
        "play_track_id": "${@body.google_ad_id}", // google ad id
        "alphabet_credit": "${@body.google_attribution}", // google 归因信息
        "calibrate_owner": "${@body.adjust_attribution}", // adjust 归因信息
        "ad_tracking_i": "${@body.ios_ad_id}", // ios id
        "direct_uri": "${@body.deep_link}" // 深度链接
      }

      示例值:

      json5
      {
        "chip_serial": "",
        "kernel_host": "",
        "platform_gen": "",
        "calibrate_num": "",
        "play_track_id": "",
        "alphabet_credit": "",
        "calibrate_owner": "",
        "ad_tracking_i": "",
        "direct_uri": ""
      }
  • Response

    • Body

      json5
      {
        "venue_key": "${@body.theatre_id}" // 剧id
      }

      示例值:

      json5
      {
        "venue_key": 19
      }

获取用户奖励记录

  • Request

    • Path: /profile/equilibrium/donated_tracks

    • Method: get

    • QueryParams:

      • up_to_date:游标

      • quantification:大小

  • Response

    • Body

      json5
      {
        "enrollment_bonuses": [ // _embedded.user_rewarded_histories
          {
            "reference_key": "${@$.id}", // id
            "prize_id": "${@$.item_id}", // 物品id
            "premium_quota": "${@$.item_num}", // 物品数量
            "target": "${@$.reason}", // 原因
            "constructed_when": "${@$.created_at}" // 创建时间
          }
        ]
      }

      示例值:

      json5
      {
        "enrollment_bonuses": [
          {
            "reference_key": 1,
            "prize_id": 2,
            "premium_quota": 100,
            "target": "",
            "constructed_when": 12333
          }
        ]
      }

获取用户解锁记录

  • Request

    • Path: /profile/equilibrium/session_notes

    • Method: get

    • QueryParams:

      • up_to_date:游标

      • quantification:大小

  • Response

    • Body

      json5
      {
        "account_sessions": [ // _embedded.user_unlock_histories
          {
            "reference_key": "${@$.id}", // id
            "chunk_tag": "${@$.episode_id}", // 剧id
            "territory": "${@$.language}", // 语言
            "top_label": "${@$.title}", // 标题
            "phase_key": "${@$.part_index}", // 第几集
            "entry_system": { // unlock_way
              "perks": [ // items
                {
                  "prize_id": "${@$.item_id}", // 物品id
                  "premium_quota": "${@$.item_num}" // 物品数量
                }
              ],
              "login_category": "${@$.unlock_way.unlock_type}" // 解锁方式 itme 物品 ad 广告
            },
            "constructed_when": "${@$.created_at}" // 创建时间
          }
        ]
      }

      示例值:

      json5
      {
        "account_sessions": [
          {
            "reference_key": 1,
            "chunk_tag": 2,
            "territory": "en",
            "top_label": "xx",
            "phase_key": 3,
            "entry_system": {
              "perks": [
                {
                  "prize_id": 1,
                  "premium_quota": 100
                }
              ],
              "login_category": "item"
            },
            "constructed_when": 123
          }
        ]
      }

获取用户钱包

  • Request

    • Path: /profile/equilibrium

    • Method: get

  • Response

    • Body

      json5
      {
        "virtual_cash": "${@body.coins}", // 金币
        "perks": "${@body.bonus}", // 代币
        "auto_login_prefs": "${@body.auto_unlock_setting}" // 是否自动解锁
      }

      示例值:

      json5
      {
        "virtual_cash": 100,
        "perks": 100,
        "auto_login_prefs": true
      }

内购创建订单V2

  • Request

    • Path: /tier_2/profile/demands/compose

    • Method: post

    • Body:

    json5
    {
      "cargo_num": "${@body.product_id}", // 商品ID
      "settlement_route": "${@body.payment_method}", // 支付方式(google: 谷歌内购,apple: 苹果内购)
      "chunk_tag": "${@body.episode_id}" // 剧库id,用于数数上报
    }

    示例值:

    json5
    {
      "cargo_num": "",
      "settlement_route": "",
      "chunk_tag": ""
    }
  • Response

    • Body
    json5
    {
      "dossier_claim_id": "${@body.user_order_no}", // 订单号(uuid)
      "imported_id": "${@body.outer_platform_product_id}", // 外部平台商品id
      "extraneous_os": "${@body.outer_platform}", // 外部商品平台(google: 谷歌,apple: 苹果)
      "cargo_num": "${@body.product_id}", // 商品ID
      "settlement_route": "${@body.payment_method}" // 支付方式(google: 谷歌内购,apple: 苹果内购)
    }

    示例值:

    json5
    {
      "dossier_claim_id": "",
      "imported_id": "",
      "extraneous_os": "",
      "cargo_num": 0,
      "settlement_route": "apple"
    }

获取所有上架商品V2

  • Request

    • Path: /tier_2/commercial_obj

    • Method: get

    • QueryParams:

      • page:分页

      • text_aggregate:分页大小

      • class:商品类型,vip(VIP订阅)、coins_package(金币包订阅)、gift_radio(充值赠币)

  • Response

    • Body
    json5
    {
      "page": "${@body.page}", // 页码
      "text_aggregate": "${@body.page_size}", // 分页大小
      "commercial_obj": [ // _embedded.products
        {
          "reference_key": "${@$.id}", // 商品ID
          "caption": "${@$.name}", // 商品名
          "rate": "${@$.price}", // 商品原单价
          "savings": "${@$.discount_price}", // 商品优惠价格
          "credit_asset_uid": "${@$.coins_item_id}", // Coins物品id(用于商品类型为gift_radio)
          "gold_aggregate": "${@$.coins_count}", // Coins数量(用于商品类型为gift_radio)
          "gift_all": "${@$.bonus_count}", // Bonus数量(用于商品类型为gift_radio)
          "extra_thing_id": "${@$.bonus_item_id}", // Bonus物品id(用于商品类型为gift_radio)
          "award_scale": "${@$.gift_ratio}", // 赠送比例(买金币赠送代币的比例,用于商品类型为gift_radio)
          "season_category": "${@$.sub_bicycle_type}", // 订阅扣款类型 (weekly,monthly,用于商品类型为vip和coins_package的)
          "extraneous_os": "${@$.outer_platform}", // 外部商品平台(google: 谷歌,apple: 苹果)
          "imported_id": "${@$.outer_platform_product_id}", // 外部平台商品id
          "outward_desc": "${@$.outer_platform_product_name}", // 外部平台商品名
          "sale_length_m": "${@$.duration_discount_minutes}", // 限时优惠倒计时(单位分钟)
          "promo_applied": "${@$.is_discount}", // 是否为限时优惠
          "class": "${@$.type}", // 商品类型,vip(VIP订阅)、coins_package(金币包订阅)、gift_radio(充值赠币)
          "specifications": "${@$.description}" // 商品详情描述
        }
      ]
    }

    示例值:

    json5
    {
      "page": 1,
      "text_aggregate": 10,
      "commercial_obj": [
        {
          "reference_key": 1,
          "caption": "Week Subscription",
          "rate": 29.9,
          "savings": 9.9,
          "credit_asset_uid": 1,
          "gold_aggregate": 0,
          "gift_all": 0,
          "extra_thing_id": 2,
          "award_scale": 0.0,
          "season_category": "weekly",
          "extraneous_os": "",
          "imported_id": "",
          "outward_desc": "",
          "sale_length_m": 0,
          "promo_applied": false,
          "class": "vip",
          "specifications": "Week Subscription"
        }
      ]
    }

未支付订单取消V2

  • Request

    • Path: /tier_2/profile/demands/:petition_id/terminate

    • Method: patch

    • PathVariable:

      • petition_id:订单号(uuid)
  • Response

    • Status: 200

苹果订阅恢复

  • Request

    • Path: /siri/profile/rehabilitation/:hash

    • Method: post

    • PathVariable:

      • hash:苹果交易ID
  • Response

    • Body
    json5
    {
      "hash": "${@body.transaction_id}", // 苹果交易ID
      "enrollment_code": "${@body.user_id}", // 用户ID
      "door_ticket": "${@body.access_token}" // 恢复后的用户访问令牌
    }

    示例值:

    json5
    {
      "hash": "xxx",
      "enrollment_code": "xxxx",
      "door_ticket": "xxxx"
    }

获取订单列表V2

  • Request

    • Path: /tier_2/profile/demands

    • Method: get

    • QueryParams:

      • page:分页

      • text_aggregate:分页大小

  • Response

    • Body
    json5
    {
      "page": "${@body.page}", // 页码
      "text_aggregate": "${@body.page_size}", // 分页大小
      "demands": [ // _embedded.orders
        {
          "petition_id": "${@$.order_no}", // 订单号(uuid)
          "season_category": "${@$.sub_bicycle_type}", // 订阅扣款类型(weekly: 周订阅,monthly: 月订阅,用于商品类型为 vip 和 coins_package)
          "credit_asset_uid": "${@$.coins_item_id}", // Coins 物品 id(用于商品类型为 gift_radio 和 coins_package)
          "gold_aggregate": "${@$.coins_count}", // Coins 数量(用于商品类型为 gift_radio 和 coins_package)
          "gift_all": "${@$.bonus_count}", // Bonus 数量(用于商品类型为 gift_radio 和 coins_package)
          "extra_thing_id": "${@$.bonus_item_id}", // Bonus物品id(用于商品类型为gift_radio)
          "award_scale": "${@$.gift_ratio}", // 赠送比例(买金币赠送代币的比例,用于商品类型为 gift_radio 和 coins_package)
          "ware_heading": "${@$.product_name}", // 商品名
          "inventory_fam": "${@$.product_type}", // 商品类型,vip(VIP订阅)、coins_package(金币包订阅)、gift_radio(充值赠币)
          "concluding_fee": "${@$.actual_amount}", // 商品实付金额
          "loop_stop_moment": "${@$.subscription_expiration_time}", // 订阅失效截止时间(用于商品类型为 vip 和 coins_package,单位:秒)
          "circumstance": "${@$.status}", // 订单状态(processing: 处理中,success: 成功,failed: 失败,refunded: 已退款)
          "order_instant": "${@$.payment_time}", // 支付时间(单位:秒)
          "settlement_route": "${@$.payment_method}", // 支付方式(google: 谷歌内购,apple: 苹果内购)
          "failure_reason": "${@$.failed_reason}", // 订单失败原因
          "constructed_when": "${@$.created_at}" // 创建时间,时间戳秒
        }
      ]
    }

    示例值:

    json5
    {
      "page": 1,
      "text_aggregate": 10,
      "demands": [
        {
          "petition_id": "",
          "season_category": "weekly",
          "credit_asset_uid": 1,
          "gold_aggregate": 0,
          "gift_all": 0,
          "extra_thing_id": 2,
          "award_scale": 0.5,
          "ware_heading": "",
          "inventory_fam": "gift_radio",
          "concluding_fee": 9.9,
          "loop_stop_moment": 1697059200,
          "circumstance": "success",
          "order_instant": 1696972800,
          "settlement_route": "google",
          "failure_reason": "",
          "constructed_when": 1696972800
        }
      ]
    }

谷歌订阅恢复

  • Request

    • Path: /youtube/profile/rehabilitation/:hash

    • Method: post

    • PathVariable:

      • hash:谷歌订单id
  • Response

    • Body
    json5
    {
      "hash": "${@body.transaction_id}", // 谷歌交易ID
      "enrollment_code": "${@body.user_id}", // 用户ID
      "door_ticket": "${@body.access_token}" // 恢复后的用户访问令牌
    }

    示例值:

    json5
    {
      "hash": "xxx",
      "enrollment_code": "xxxx",
      "door_ticket": "xxxx"
    }

Released under the MIT License.