qzone::getUrl PHP Method

getUrl() public method

public getUrl ( $callbackurl )
    public function getUrl($callbackurl)
    {
        $_SESSION['state'] = md5(uniqid(rand(), true));
        $loginUrl = 'https://graph.qq.com/oauth2.0/authorize?response_type=code' . '&client_id=' . QZONE_KEY . '&redirect_uri=' . $this->getCallback('qzone', $callbackurl) . '&state=' . $_SESSION['state'] . '&scope=get_user_info,add_share';
        return $loginUrl;
    }