php - 如何在 PHP 中使用 Vimeo API?
问题描述
我已经安装了 Composer。我试图运行我的 vimeo api 并在 localhost 中获取结果。但它不起作用,我的 php 文件将继续加载到 chrome 上并且没有响应。谁能帮忙
仅供参考,这是我希望运行的 API 链接,“入门”: https ://developer.vimeo.com/api/guides/start
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<?php
//echo "fHello";
require 'C:\www\testing.php';
use Vimeo\Vimeo;
$client = new Vimeo("{191e3071cfe69f8d48424621488a76b06c2bd19b}",
"{YDxiujy1nd+s4/w9q4xRq0O1dX0OEu1xs7Fhdce5/H69HJSDWXrYvPV8Y4RHFVPUgMIGsw9fr2+QHzpHPj/x9cmva8sjRA5aBppYDAbZa9Rj/N1/rPWDDJHmgFJ2WI8Y}",
"{c725c21e7827b252d4574be2cbe1220c}");
$client->request($uri, array(
'name' => '{new video title}',
'description' => '{new video description}',
), 'PATCH');
echo 'The title and description for ' . $uri . ' has been edited.';
?>
</body>
</html>
解决方案
推荐阅读
- tensorflow - 如何打乱连接的 Tensorflow 数据集
- firefox - 无法在 Firefox 版本 3.6.10 上使用开放脚本版本 12.5 录制脚本
- linux - 显示系统运行时钟 AIX
- ejabberd - 更改或添加 Ejabberd 数据库表的前缀
- hibernate - 如何在@Formula 中使用别名
- python - 获取和使用由 subprocess.check_output 远程运行的脚本的输出
- opencv3.0 - 导入 cv2 期间 DLL 加载失败
- javascript - 点击后href不起作用
- java - Java 无法在 Ubuntu 上安装
- c++ - c ++模板包扩展/可变参数