Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

erentar
Copy link

@erentar erentar commented Jun 19, 2024

No description provided.

@bbilly1
Copy link
Member

bbilly1 commented Jul 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants