mirror of
https://github.com/LukeHagar/log10py.git
synced 2025-12-06 04:20:12 +00:00
5.4 KiB
5.4 KiB
Feedback
(feedback)
Overview
Feedback
Available Operations
get
Fetch feedback by id.
Example Usage
import log10
s = log10.Log10(
log10_token="<YOUR_API_KEY_HERE>",
x_log10_organization='<value>',
)
res = s.feedback.get(feedback_id='<value>', x_log10_organization='<value>')
if res.feedback is not None:
# handle response
pass
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback_id |
str | ✔️ | The feedback id to fetch. |
x_log10_organization |
Optional[str] | ➖ | N/A |
Response
Errors
| Error Object | Status Code | Content Type |
|---|---|---|
| errors.SDKError | 4xx-5xx | / |
list
List feedback
Example Usage
import log10
from log10.models import operations
s = log10.Log10(
log10_token="<YOUR_API_KEY_HERE>",
x_log10_organization='<value>',
)
res = s.feedback.list(x_log10_organization='<value>', request_body=operations.ListRequestBody())
if res.object is not None:
# handle response
pass
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
x_log10_organization |
Optional[str] | ➖ | N/A |
request_body |
Optional[operations.ListRequestBody] | ➖ | N/A |
Response
Errors
| Error Object | Status Code | Content Type |
|---|---|---|
| errors.SDKError | 4xx-5xx | / |
upload
Upload a piece of feedback
Example Usage
import log10
from log10.models import operations
s = log10.Log10(
log10_token="<YOUR_API_KEY_HERE>",
x_log10_organization='<value>',
)
res = s.feedback.upload(request_body=operations.One(
task_id='<value>',
json_values=operations.JSONValues(),
matched_completion_ids=[
'<value>',
],
comment='The slim & simple Maple Gaming Keyboard from Dev Byte comes with a sleek body and 7- Color RGB LED Back-lighting for smart functionality',
completion_tags_selector=[
'<value>',
],
), x_log10_organization='<value>')
if res.feedback is not None:
# handle response
pass
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
request_body |
operations.UploadRequestBody | ✔️ | N/A |
x_log10_organization |
Optional[str] | ➖ | N/A |
Response
Errors
| Error Object | Status Code | Content Type |
|---|---|---|
| errors.SDKError | 4xx-5xx | / |