docs icon indicating copy to clipboard operation
docs copied to clipboard

intro: add curl example to add new video to download queue

Open erentar opened this issue 1 year ago • 1 comments

erentar avatar Jun 19 '24 00:06 erentar

As this is an example for adding videos to the queue, that would fit better on the corresponding page that documents adding to the queue. Then for styling, there is already an example with "Example" here, you can mimic that.

Then no need to over complicate things with variables and stuff, maybe just consolidate everything into one curl command. Then best to be consistent with the other examples, e.g. something like that:

curl -XPOST -v /api/download/ \
    -H "Authorization: Token xxxxxxxxxx" \
    -H 'Content-Type: application/json' \
    -d '{"data":[{"youtube_id": "<video-id>", "status":"pending"}]}'

You can't assume the domain, so best to be obvious that the user will have to add that. Same for the video ID.

bbilly1 avatar Jul 01 '24 19:07 bbilly1

OK, moved ahead with that.

bbilly1 avatar Oct 21 '24 14:10 bbilly1