Bigcommerce API PHP [错误:“您需要在继续之前登录或注册。”]

时间:2014-11-10 08:52:54

标签: php bigcommerce

任何人都可以帮助我的代码出错并且我已经解决了很长一段时间了。错误将显示"您需要在继续之前登录或注册。"是否有人遇到同样的问题?

$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>'

0 个答案:

没有答案
相关问题