Authorizations
Response
200 - application/json
package main
import(
"context"
"github.com/LukeHagar/plexgo"
"log"
)
func main() {
ctx := context.Background()
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Status.GetBackgroundTasks(ctx)
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}{
"MediaContainer": {
"identifier": "<string>",
"offset": 123,
"size": 123,
"totalSize": 123,
"TranscodeJob": [
{
"generatorID": 123,
"key": "<string>",
"progress": 50,
"ratingKey": "<string>",
"remaining": 123,
"size": 123,
"speed": 123,
"targetTagID": 123,
"thumb": "<string>",
"title": "<string>",
"type": "transcode"
}
]
}
}Get the list of all background tasks
package main
import(
"context"
"github.com/LukeHagar/plexgo"
"log"
)
func main() {
ctx := context.Background()
s := plexgo.New(
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Status.GetBackgroundTasks(ctx)
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}{
"MediaContainer": {
"identifier": "<string>",
"offset": 123,
"size": 123,
"totalSize": 123,
"TranscodeJob": [
{
"generatorID": 123,
"key": "<string>",
"progress": 50,
"ratingKey": "<string>",
"remaining": 123,
"size": 123,
"speed": 123,
"targetTagID": 123,
"thumb": "<string>",
"title": "<string>",
"type": "transcode"
}
]
}
}Show child attributes
Was this page helpful?