【发布时间】:2018-06-25 14:38:59
【问题描述】:
我编写了以下 PHP 代码:
<?php
require_once '../podio-php/PodioAPI.php';
//Initalize Podio connection
$client_id = "";
$client_secret = "";
Podio::setup($client_id, $client_secret);
//App ID's
$opname_app_id = 19082139;
$opname_app_token = "";
$opname_auth = Podio::$oauth;
Podio::authenticate_with_app($opname_app_id, $opname_app_token);
$attributes = array('ref_type' => 'item', 'ref_id' => 3492);
$upload_result = PodioFile::upload("../questions.php", 'test');
$file_id = $upload_result->file_id;
PodioFile::attach($file_id, $attributes);
但是当我运行它时,我收到以下错误:
Uncaught PodioForbiddenError: "The app with id 19082139 does not have the right add_file on item with id 3492"
即使我的项目 3492 在应用程序 19082139 中。谁能帮我解决这个问题?
【问题讨论】:
-
文件是否已附加到任何其他项目?