如何使用带有 PHP 的 API 添加对 youtube 视频评论的回复 [英] How to add reply to youtube's video comment using API with PHP
本文介绍了如何使用带有 PHP 的 API 添加对 youtube 视频评论的回复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用带有 PHP 的 API 添加对 youtube 视频评论的回复?
How to add reply to youtube's video comment using API with PHP?
推荐答案
这个库似乎让添加回复评论变得很容易:https://github.com/jimdoescode/Zendless-PHP-YouTube-API
This library seems to make it pretty easy to add a reply comment: https://github.com/jimdoescode/Zendless-PHP-YouTube-API
/**
* Add a comment to a video or a reply to another comment.
* To reply to a comment you must specify the commentId
* otherwise it is just a regular comment.
*
* @param string $videoId the video the comment goes with.
* @param string $comment the comment
* @param string (optional) $commentId the id of the comment to reply to.
* @return mixed false if not authenticated otherwise the http response is returned.
**/
public function addComment($videoId, $comment, $commentId = false)
这篇关于如何使用带有 PHP 的 API 添加对 youtube 视频评论的回复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文