mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2026-02-09 19:13:22 +00:00
Authenticating services
This commit is contained in:
19
spotdl/authorize/authorize_base.py
Normal file
19
spotdl/authorize/authorize_base.py
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user