bdomarket.response
¶
ApiResponse
¶
__str__()
¶
String representation of the ApiResponse object.
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
A string containing the success status, status code, message, and content of the response. |
save_to_file(path, mode='w')
¶
Save the ApiResponse content to a file in JSON format.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path
|
str
|
The file path where the content should be saved. |
required |