you/how 可以获取 YouTube API V3 上的最后活跃时间吗?
Can you/how to get the last Active time on YouTube API V3?
所以我想知道是否有办法使用 YouTube Api V3 获取 YouTube 频道的最后活跃时间?任何编程语言(Javascript、php、python,例如)。只是问一下如果可能的话怎么做。
不确定它是否会获得最后激活时间,但您可以使用:
Activities
An activity
resource contains information about an action that a particular channel, or user, has taken on YouTube. The actions reported in activity feeds include rating a video, sharing a video, marking a video as a favorite, uploading a video, and so forth. Each activity resource identifies the type of action
, the channel associated with the action, and the resource(s) associated with the action, such as the video that was rated or uploaded.
HTTP 请求
GET https://www.googleapis.com/youtube/v3/activities
注意:即使 activity
资源可以包含有关用户对视频评分或将视频标记为收藏等操作的信息,您仍需要使用其他API 方法来生成那些 activity 资源。例如,您可以使用 API 的 videos.rate()
方法对视频进行评分,并使用 playlistItems.insert()
方法将视频标记为收藏。
所以我想知道是否有办法使用 YouTube Api V3 获取 YouTube 频道的最后活跃时间?任何编程语言(Javascript、php、python,例如)。只是问一下如果可能的话怎么做。
不确定它是否会获得最后激活时间,但您可以使用:
Activities
An
activity
resource contains information about an action that a particular channel, or user, has taken on YouTube. The actions reported in activity feeds include rating a video, sharing a video, marking a video as a favorite, uploading a video, and so forth. Each activity resource identifies the type ofaction
, the channel associated with the action, and the resource(s) associated with the action, such as the video that was rated or uploaded.
HTTP 请求
GET https://www.googleapis.com/youtube/v3/activities
注意:即使 activity
资源可以包含有关用户对视频评分或将视频标记为收藏等操作的信息,您仍需要使用其他API 方法来生成那些 activity 资源。例如,您可以使用 API 的 videos.rate()
方法对视频进行评分,并使用 playlistItems.insert()
方法将视频标记为收藏。