Module edupage_api.custom_request
Classes
class CustomRequest (edupage: EdupageModule)
-
Expand source code
class CustomRequest(Module): def custom_request( self, url: str, method: str, data: str = "", headers: dict = {} ) -> Response: if method == "GET": response = self.edupage.session.get(url, headers=headers) elif method == "POST": response = self.edupage.session.post(url, data=data, headers=headers) return response
Ancestors
Methods
def custom_request(self, url: str, method: str, data: str = '', headers: dict = {}) ‑> requests.models.Response