public static function getConsumer($api)
    {
        $api = strtolower($api);
        $key = get_config_value('com_connect.'.$api.'_key');
        $secret = get_config_value('com_connect.'.$api.'_secret');
        $consumer = new ComConnectOauthConsumer(new AnConfig(array(
            'key' => $key,
            'secret' => $secret,
            'callback_url' => AnRequest::base(), 
        )));

        return $consumer;
    }
public static function getConsumer($api)
    {
        $api = strtolower($api);
        $key = get_config_value('com_connect.'.$api.'_key');
        $secret = get_config_value('com_connect.'.$api.'_secret');
        $consumer = new ComConnectOauthConsumer(new AnConfig(array(
            'key' => $key,
            'secret' => $secret,
            'callback_url' => AnRequest::base(), 
        )));

        return $consumer;
    }
public static function getConsumer ( $ api ) { $ api = strtolower ( $ api ) ; $ key = get_config_value ( 'com_connect.' . $ api . '_key' ) ; $ secret = get_config_value ( 'com_connect.' . $ api . '_secret' ) ; $ consumer = new ComConnectOauthConsumer ( new AnConfig ( array ( 'key' => $ key , 'secret' => $ secret , 'callback_url' => AnRequest :: base ( ) , ) ) ) ; return $ consumer ; }
Gets a consumer.

@param string $api

@return ComConnectOauthConsumer
Gets a consumer .