mirror of
				https://github.com/ets-labs/python-dependency-injector.git
				synced 2025-11-04 09:57:37 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			400 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			400 B
		
	
	
	
		
			Python
		
	
	
	
	
	
"""TBD."""
 | 
						|
 | 
						|
 | 
						|
class ApiClient(object):
 | 
						|
    """Some API client."""
 | 
						|
 | 
						|
    def __init__(self, host, api_key):
 | 
						|
        """Initializer."""
 | 
						|
        self.host = host
 | 
						|
        self.api_key = api_key
 | 
						|
 | 
						|
    def call(self, operation, data):
 | 
						|
        """Make some network operations."""
 | 
						|
        print('API call [{0}:{1}], method - {2}, data - {3}'.format(
 | 
						|
            self.host, self.api_key, operation, repr(data)))
 |