我请求AuthToken时为什么会收到NULL响应?

时间:2017-09-20 16:27:08

标签: php bigcommerce auth-token

我正在构建bigcommerce APP。但我不能得到“AuthToken”。请帮忙。请参阅下面的完整代码还附加了带有NULL响应的图像。

require_once($_SERVER['DOCUMENT_ROOT'].'/config.php');
require_once($_SERVER['DOCUMENT_ROOT'].'/vendor/autoload.php');
use Bigcommerce\Api\Client as Bigcommerce;

$object = new \stdClass();
$object->client_id = BC_CLIENT_ID;
$object->client_secret = BC_CLIENT_SECRET;
$object->redirect_uri = 'https://yourwebsiteurl.com/oauth.php';
$object->code = $_GET['code'];
$object->context = $_GET['context'];
$object->scope = $_GET['scope'];

$authTokenResponse = Bigcommerce::getAuthToken($object);

image

0 个答案:

没有答案