【发布时间】:2016-05-25 09:58:24
【问题描述】:
我正在开发一个 youtube 应用项目。但我不能对任何视频发表评论。我正在使用 curl 和 php。我已正确放置所有功能,但显示错误 如果我正在使用
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_json);
$data_json 在哪里
{
"snippet": {
"topLevelComment": {
"snippet": {
"videoId": "<?php echo $videoid; ?>",
"textOriginal": "<?php echo $comment; >"
}
}
}
}
{ "error": { "errors": [ { "domain": "global", "reason": "parseError",
"message": "This API does not support parsing form-encoded input." } ],
"code": 400, "message": "This API does not support parsing form-encoded
input." } }
请帮帮我。
【问题讨论】:
标签: php curl youtube youtube-api youtube-data-api