首页 > 解决方案 > 如何在 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>

标签: phpapivimeo

解决方案


推荐阅读