gws_core

Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version

ExternalApiService

This class gives possibility to make http requests to external APIs

Functions
delete @classmethod

Make an HTTP get request

url : str
headers : Dict
raise_exception_if_error : bool - False
timeout : int - 60
Return type : Response
get @classmethod

Make an HTTP get request

url : str
headers : Dict
raise_exception_if_error : bool - False
timeout : int - 60
Return type : Response
post @classmethod

Make an HTTP post request

url : str
body : Any
headers : Dict
raise_exception_if_error : bool - False
timeout : int - 60
Return type : Response
post_form_data @classmethod

Make an HTTP post request

url : str
form_data : FormData
data : Any
headers : Dict
raise_exception_if_error : bool - False
timeout : int - 60
Return type : Response
put @classmethod

Make an HTTP put request

url : str
body : Any
headers : Dict
files : Any
raise_exception_if_error : bool - False
timeout : int - 60
Return type : Response
put_form_data @classmethod

Make an HTTP put request

url : str
form_data : FormData
data : Any
headers : Dict
raise_exception_if_error : bool - False
timeout : int - 60
Return type : Response
raise_error_from_response @classmethod
response : Response