This repository was archived by the owner on Apr 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -120,15 +120,20 @@ def query(
120
120
121
121
Handles requests methods, logging and exceptions, and URL encoding.
122
122
123
+ The arguments "method" and "params" are passed to requests.request
124
+ as is.
125
+
123
126
Args:
124
127
method: The http method to use (get, post, put, ...)
125
128
urlpart: The path to the API endpoint, excluding self.base_url and
126
129
self.path (the part after proto://fqdn:port/path). It will be
127
130
passed to Python's str.format, so the string should not be
128
131
already formatted (as f-strings or with str.format) as to
129
132
sanitize the URL.
130
- params: URL parameters (?param1¶m2)..
131
- data: Request body used in POST, PUT, DELETE requests.
133
+ params (dict): URL queries (?param1¶m2). Use a list type
134
+ for the value to achieve ?param1=value1¶m1=value2.
135
+ data: Request body used in POST, PUT, DELETE requests, encoded
136
+ as JSON.
132
137
token: An optional token overriding the configured one.
133
138
base_url_override: The default setting of self.base_url set
134
139
on initialization can be overwritten using this argument.
You can’t perform that action at this time.
0 commit comments