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;
    }