Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/93.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Passkit V2 PHP SDK授权始终返回无效令牌错误_Php_Ios_Wallet_Passkit - Fatal编程技术网

Passkit V2 PHP SDK授权始终返回无效令牌错误

Passkit V2 PHP SDK授权始终返回无效令牌错误,php,ios,wallet,passkit,Php,Ios,Wallet,Passkit,我正在使用管理苹果钱包通行证。下面是我为授权而编写的代码 <?php include_once "PHP-SDK/passkit-v2-sdk.php"; $pk = new PassKit("myApiKey","myApiSecret"); $result = $pk->ListCampaigns(); echo "<pre>"; print_r($result); exit; 我不知道我哪里做错了。我的API密钥是正确的。我只是按照他们的指示去做。我也检查文

我正在使用管理苹果钱包通行证。下面是我为授权而编写的代码

<?php
include_once "PHP-SDK/passkit-v2-sdk.php";

$pk = new PassKit("myApiKey","myApiSecret");

$result = $pk->ListCampaigns();

echo "<pre>"; print_r($result); exit;
我不知道我哪里做错了。我的API密钥是正确的。我只是按照他们的指示去做。我也检查文件

请指导我如何解决此错误,或建议我使用PHP创建和更新推送通知Apple钱包通行证的更好方法

请帮忙。提前谢谢

stdClass Object
(
    [error] => Invalid token. Please make sure your token is valid.
)