def __init__(self, account_id=None, api_key=None, proxy=None, retries=3, retry_delay=1, timeout=1.000):
        """
        Create a NewRelic REST API client
        Required Parameters: account_id, api_key
        Optional Parameters: proxy, retries, retry_delay, timeout
        """
        super(Client, self).__init__(proxy=proxy, retries=retries, retry_delay=retry_delay, timeout=timeout)

        if not account_id or not api_key:
            raise NewRelicCredentialException("""
Pyrelic could not find your account credentials. Pass them into the
Client like this:

client = pyrelic.Client(account_id='12345', api_key='1234567890abcdef123456789')
""")

        self.account_id = account_id
        self.api_key = api_key
        self.headers = {'x-api-key': api_key}
        self._parser = self._parse_xml
def __init__ ( self , account_id = None , api_key = None , proxy = None , retries = 3 , retry_delay = 1 , timeout = 1.000 ) : super ( Client , self ) . __init__ ( proxy = proxy , retries = retries , retry_delay = retry_delay , timeout = timeout ) if not account_id or not api_key : raise NewRelicCredentialException ( """
Pyrelic could not find your account credentials. Pass them into the
Client like this:
client = pyrelic.Client(account_id='12345', api_key='1234567890abcdef123456789')
""" ) self . account_id = account_id self . api_key = api_key self . headers = { 'x-api-key' : api_key } self . _parser = self . _parse_xml
Create a NewRelic REST API client
        Required Parameters: account_id, api_key
        Optional Parameters: proxy, retries, retry_delay, timeout