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.DownloadQueue.CreateDownloadQueue(ctx)
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}{
"MediaContainer": {
"identifier": "<string>",
"offset": 123,
"size": 123,
"totalSize": 123,
"DownloadQueue": [
{
"id": 123,
"itemCount": 123,
"status": "deciding"
}
]
}
}Available: 0.2.0
Creates a download queue for this client if one doesn’t exist, or returns the existing queue for this client and user.
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.DownloadQueue.CreateDownloadQueue(ctx)
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}{
"MediaContainer": {
"identifier": "<string>",
"offset": 123,
"size": 123,
"totalSize": 123,
"DownloadQueue": [
{
"id": 123,
"itemCount": 123,
"status": "deciding"
}
]
}
}Show child attributes
Was this page helpful?