导出跑道项目

Export Podio items

我正在尝试从跑道导出 XLSX,但出现以下错误:

The app with id 11111 does not have the right export on app with id 11111

当然这些是假 ID,但在错误消息中两个 ID 是相同的。这是我的代码:

$client_id = "id";
$client_secret = "secret";

Podio::setup($client_id, $client_secret);

$leads_app_id = 11111;
$lead_app_token = "token";

//Auth with "Leads" app
Podio::authenticate_with_app($leads_app_id, $lead_app_token);

// $leads_auth = Podio::$oauth;

$leads_export = PodioItem::export( $leads_app_id, 'xlsx', array() );

file_put_contents("../test.xlsx", $leads_export);

有人能帮帮我吗?

对于 PodioItem::export api 调用,您必须 验证为跑道用户 。 如果您使用应用程序本身进行身份验证,它将不起作用。