Bigcommerce API PHP[错误:“您需要登录或注册才能继续。”

Bigcommerce API PHP[错误:“您需要登录或注册才能继续。”,php,bigcommerce,Php,Bigcommerce,有人能帮我解决代码中的错误吗?我已经解决了很长时间了。错误将显示“您需要登录或注册才能继续”。是否有人遇到同样的问题 $tokenUrl = "https://login.bigcommerce.com/oauth2/token"; $connection = new Connection(); $connection->setCipher('RC4-SHA'); $connection->verifyPeer(false); $response =

有人能帮我解决代码中的错误吗?我已经解决了很长时间了。错误将显示“您需要登录或注册才能继续”。是否有人遇到同样的问题

$tokenUrl = "https://login.bigcommerce.com/oauth2/token";
    $connection = new Connection();
    $connection->setCipher('RC4-SHA');
    $connection->verifyPeer(false);
    $response = $connection->post($tokenUrl, array(
        "client_id" => "",
        "client_secret" => "",
        "redirect_uri" => "http://youurl.com",
        "grant_type" => "authorization_code",
        "code" => $_GET["code"],
        "scope" => $_GET["scope"],
        "context" => $_GET["context"]
    ));

    echo '<pre>';
    print_r($connection);
    print_r($response);
    echo '</pre>'
$tokenUrl=”https://login.bigcommerce.com/oauth2/token";
$connection=新连接();
$connection->setCipher('RC4-SHA');
$connection->verifyPeer(false);
$response=$connection->post($tokenUrl,数组)(
“客户端id=>”,
“客户端密码”=>“”,
“重定向\u uri”=>“http://youurl.com",
“授权类型”=>“授权代码”,
“code”=>$\u GET[“code”],
“范围”=>$\u获取[“范围”],
“context”=>$\u GET[“context”]
));
回声';
打印(连接);
打印(回复);
回声“

客户id和客户机密是否为空是因为您隐藏了详细信息,还是只是在代码中为空?否,我提供了客户id和客户机密,但仍然存在此错误,所以您有一个开发人员帐户和草稿应用程序?是的。如果我的url主机在HTTP主机上运行而不是在HTTPS上运行,这是否仍然有效。否。它必须在https上。