是否可以使用 v3 api 获取视频的 YouTube 作者姓名? [英] Is it possible to get the YouTube author name for a video using the v3 api?

查看:28
本文介绍了是否可以使用 v3 api 获取视频的 YouTube 作者姓名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我正在努力切换到使用 YouTube api 的 v3 版本(它更好,就像一个完全不同的产品),但我要么遗漏了什么,要么......

So I'm working on switching to using the v3 version of the YouTube api (which is so much better it's like a completely different product), but I'm either missing something or it is ...

能够在一次调用中获取任意视频列表及其详细信息将使生活变得更好,但在视频中 list 方法,video detailssnippet"包含channelId",不是author".

Being able to fetch an arbitrary list of videos, and their details, in one call is going to make life significantly better, but in the videos list method, the the video details "snippet" contains the "channelId", not the "author".

我花了很多时间浏览文档,但找不到任何方法从 channelId 获取人类可读的作者姓名.

I've spent quite a bit of time looking through the documentation, but can't find any way of getting from a channelId to the human readable author name.

我应该如何将视频映射到作者?

How am I expected to map a video to an author?

推荐答案

接受的答案在撰写本文时可能是正确的,但截至 2/2018,snippet 部分现在包含一个 channelTitle 属性.

The accepted answer may have been correct at the time of writing, but as of 2/2018 the snippet part now includes a channelTitle property.

这篇关于是否可以使用 v3 api 获取视频的 YouTube 作者姓名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆