function attainAuthorizationUrl(iGrantAuthorizeRequest $grant)
    {
        # Build Authorize Url

        $grantParams = $grant->assertAuthorizeParams();
        $response    = $this->call( new GetAuthorizeUrl($grantParams) );

        if ( $ex = $response->hasException() )
            throw $ex;

        return $response->expected();
    }
function attainAuthorizationUrl(iGrantAuthorizeRequest $grant)
    {
        # Build Authorize Url

        $grantParams = $grant->assertAuthorizeParams();
        $response    = $this->call( new GetAuthorizeUrl($grantParams) );

        if ( $ex = $response->hasException() )
            throw $ex;

        return $response->expected();
    }
function attainAuthorizationUrl ( iGrantAuthorizeRequest $ grant ) { # Build Authorize Url $ grantParams = $ grant -> assertAuthorizeParams ( ) ; $ response = $ this -> call ( new GetAuthorizeUrl ( $ grantParams ) ) ; if ( $ ex = $ response -> hasException ( ) ) throw $ ex ; return $ response -> expected ( ) ; }
Builds the authorization URL

- look in grants available with response_type code
- make url from grant parameters

@param iGrantAuthorizeRequest $grant Using specific grant

@return string Authorization URL
@throws \Exception
Builds the authorization URL