mirror of
				https://github.com/KevinMidboe/spotify-downloader.git
				synced 2025-10-29 18:00:15 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			491 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			491 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from abc import ABC
 | |
| from abc import abstractmethod
 | |
| 
 | |
| class AuthorizeBase(ABC):
 | |
|     """
 | |
|     Defined service authenticators must inherit from this abstract
 | |
|     base class and implement their own functionality for the below
 | |
|     defined methods.
 | |
|     """
 | |
| 
 | |
|     @abstractmethod
 | |
|     def authorize(self):
 | |
|         """
 | |
|         This method must authorize with the corresponding service
 | |
|         and return an object that can be utilized in making
 | |
|         authenticated requests.
 | |
|         """
 | |
|         pass
 | |
| 
 |