【问题标题】:Export Podio items导出 Podio 项目
【发布时间】:2018-03-18 18:38:41
【问题描述】:

我正在尝试从 Podio 导出 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);

谁能帮帮我?

【问题讨论】:

    标签: php podio


    【解决方案1】:

    对于PodioItem::export api 调用,您必须验证为 Podio 用户。 如果您使用应用程序本身进行身份验证,它将无法正常工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多