不要在Instagram API中创建对象

时间:2019-03-17 16:56:54

标签: php api instagram

我想在Github上使用mgp25的Instagram API(here此链接)。但是我不从类中创建对象。这是我的代码,错误消息和目录中的文件。

文件和文件夹:供应商,composer.json,composer.lock,index.php

我在index.php中的代码

require __DIR__.'/vendor/autoload.php';

try {
  $ig = new \InstagramAPI\Instagram();
} catch (\Exception $e) {
  die('Bir hata oluştu: '.$e->getMessage());
}

错误消息是:“ Bir hataoluştu:设置文件不可写”

0 个答案:

没有答案