src/OpenPlatform/OpenPlatform.php
public function createAuthorizerApplication($appId, $refreshToken)
    {
        $this->fetch('authorizer', function ($authorizer) use ($appId, $refreshToken) {
            $authorizer->setAppId($appId);
            $authorizer->setRefreshToken($refreshToken);
        });

        return $this->fetch('app', function ($app) {
            $app['access_token'] = $this->fetch('authorizer_access_token');
            $app['oauth'] = $this->fetch('oauth');
            $app['server'] = $this->fetch('server');
        });
    }
public function createAuthorizerApplication($appId, $refreshToken)
    {
        $this->fetch('authorizer', function ($authorizer) use ($appId, $refreshToken) {
            $authorizer->setAppId($appId);
            $authorizer->setRefreshToken($refreshToken);
        });

        return $this->fetch('app', function ($app) {
            $app['access_token'] = $this->fetch('authorizer_access_token');
            $app['oauth'] = $this->fetch('oauth');
            $app['server'] = $this->fetch('server');
        });
    }
public function createAuthorizerApplication ( $ appId , $ refreshToken ) { $ this -> fetch ( 'authorizer' , function ( $ authorizer ) use ( $ appId , $ refreshToken ) { $ authorizer -> setAppId ( $ appId ) ; $ authorizer -> setRefreshToken ( $ refreshToken ) ; } ) ; return $ this -> fetch ( 'app' , function ( $ app ) { $ app [ 'access_token' ] = $ this -> fetch ( 'authorizer_access_token' ) ; $ app [ 'oauth' ] = $ this -> fetch ( 'oauth' ) ; $ app [ 'server' ] = $ this -> fetch ( 'server' ) ; } ) ; }
Create an instance of the EasyWeChat for the given authorizer.

@param string $appId        Authorizer AppId
@param string $refreshToken Authorizer refresh-token

@return \EasyWeChat\Foundation\Application
Create an instance of the EasyWeChat for the given authorizer .