public function createAuthorizerApplication($authorizerCorpId, $permanentCode)
    {
        $this->fetch('authorization')
             ->setAuthorizerCorpId($authorizerCorpId)
             ->setAuthorizerPermanentCode($permanentCode);

        $application = $this->fetch('app');
        $application['access_token'] = $this->fetch('authorizer_access_token');
        $application['oauth'] = $this->fetch('oauth');

        return $application;
    }
public function createAuthorizerApplication($authorizerCorpId, $permanentCode)
    {
        $this->fetch('authorization')
             ->setAuthorizerCorpId($authorizerCorpId)
             ->setAuthorizerPermanentCode($permanentCode);

        $application = $this->fetch('app');
        $application['access_token'] = $this->fetch('authorizer_access_token');
        $application['oauth'] = $this->fetch('oauth');

        return $application;
    }
public function createAuthorizerApplication ( $ authorizerCorpId , $ permanentCode ) { $ this -> fetch ( 'authorization' ) -> setAuthorizerCorpId ( $ authorizerCorpId ) -> setAuthorizerPermanentCode ( $ permanentCode ) ; $ application = $ this -> fetch ( 'app' ) ; $ application [ 'access_token' ] = $ this -> fetch ( 'authorizer_access_token' ) ; $ application [ 'oauth' ] = $ this -> fetch ( 'oauth' ) ; return $ application ; }
Create an instance of the EntWeChat for the given authorizer.

@param string $corpId        Authorizer CorpId
@param string $permanentCode Authorizer permanent-code

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