【问题标题】:Retrive additional tag info in json response在 json 响应中检索附加标签信息
【发布时间】:2020-11-16 05:37:07
【问题描述】:

当我在下面的亮湾 api 上使用 get 方法来检索视频元数据时,它会生成带有一些字段的 json 响应。

"https://cms.api.brightcove.com/v1/accounts/510000340001/videos?sort=-updated_at&limit=1&offset=0"

我们如何获得不包含的附加标签,例如输出 json 响应中的“类别”字段?

我尝试在 url 中附加以下内容,但 api 未检测到。

?custom_field=category

【问题讨论】:

    标签: brightcove


    【解决方案1】:

    如果视频为该字段设置了值,它将出现在custom_fields 对象中,如下所示。如果该字段为空,则不会包含在该视频中。

    {
      "name": "A video",
      ...
      "custom_fields": {
        "category": "something"
      }
    }
    

    【讨论】:

    猜你喜欢
    • 2023-02-03
    • 1970-01-01
    • 2019-12-27
    • 2013-08-08
    • 2022-06-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多