Skip to content

Latest commit

 

History

History
87 lines (54 loc) · 3.11 KB

README.md

File metadata and controls

87 lines (54 loc) · 3.11 KB

Task

(task)

Overview

Operations related to tasks api

Available Operations

get_all

Retrieve Tasks

Example Usage

from livepeer import Livepeer

s = Livepeer(
    api_key="<YOUR_BEARER_TOKEN_HERE>",
)

res = s.task.get_all()

if res.data is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

operations.GetTasksResponse

Errors

Error Object Status Code Content Type
errors.SDKError 4xx-5xx /

get

Retrieve a Task

Example Usage

from livepeer import Livepeer

s = Livepeer(
    api_key="<YOUR_BEARER_TOKEN_HERE>",
)

res = s.task.get(task_id="<value>")

if res.task is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
task_id str ✔️ ID of the task
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

operations.GetTaskResponse

Errors

Error Object Status Code Content Type
errors.SDKError 4xx-5xx /