Files
spotify-downloader/spotdl/authorize/authorize_base.py
2020-04-02 04:14:07 +05:30

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