public static function getAPI($service)
    {
        $service = strtolower($service);
        $identifier = 'com:connect.oauth.service.'.$service;
        if (!AnService::has($identifier)) {
            $config = array();
            $config['consumer'] = self::getConsumer($service);
            $config['enabled'] = self::enabled($service);
            AnService::set($identifier, AnService::get($identifier, $config));
        }

        return    AnService::get($identifier);
    }
public static function getAPI($service)
    {
        $service = strtolower($service);
        $identifier = 'com:connect.oauth.service.'.$service;
        if (!AnService::has($identifier)) {
            $config = array();
            $config['consumer'] = self::getConsumer($service);
            $config['enabled'] = self::enabled($service);
            AnService::set($identifier, AnService::get($identifier, $config));
        }

        return    AnService::get($identifier);
    }
public static function getAPI ( $ service ) { $ service = strtolower ( $ service ) ; $ identifier = 'com:connect.oauth.service.' . $ service ; if ( ! AnService :: has ( $ identifier ) ) { $ config = array ( ) ; $ config [ 'consumer' ] = self :: getConsumer ( $ service ) ; $ config [ 'enabled' ] = self :: enabled ( $ service ) ; AnService :: set ( $ identifier , AnService :: get ( $ identifier , $ config ) ) ; } return AnService :: get ( $ identifier ) ; }
Get a service api.

@param string $service The service name.

@return ComConnectOauthApiAbstract
Get a service api .