mwclient/client.py
def raw_api(self, action, *args, **kwargs):
        """Sends a call to the API."""
        kwargs['action'] = action
        kwargs['format'] = 'json'
        data = self._query_string(*args, **kwargs)
        res = self.raw_call('api', data)

        try:
            return json.loads(res)
        except ValueError:
            if res.startswith('MediaWiki API is not enabled for this site.'):
                raise errors.APIDisabledError
            raise ValueError('Could not decode JSON: %s' % res)
Sends a call to the API.
Sends a call to the API.
Sends a call to the API .
def raw_api(self, action, *args, **kwargs):
        kwargs['action'] = action
        kwargs['format'] = 'json'
        data = self._query_string(*args, **kwargs)
        res = self.raw_call('api', data)
        try:
            return json.loads(res)
        except ValueError:
            if res.startswith('MediaWiki API is not enabled for this site.'):
                raise errors.APIDisabledError
            raise ValueError('Could not decode JSON: %s' % res)
def raw_api ( self , action , * args , ** kwargs ) : kwargs [ 'action' ] = action kwargs [ 'format' ] = 'json' data = self . _query_string ( * args , ** kwargs ) res = self . raw_call ( 'api' , data ) try : return json . loads ( res ) except ValueError : if res . startswith ( 'MediaWiki API is not enabled for this site.' ) : raise errors . APIDisabledError raise ValueError ( 'Could not decode JSON: %s' % res )
Sends a call to the API.
Sends a call to the API .
"""Sends a call to the API."""
self
action