mirror of
https://github.com/tubearchivist/docs.git
synced 2024-11-21 19:30:15 +00:00
intro: add curl example to add new video to download queue (#42)
* intro: add curl example to add new video to download queue
* Revert "intro: add curl example to add new video to download queue"
This reverts commit 732d4c9a39
.
* move curl add to queue example
* style code comment
---------
Co-authored-by: Simon <simobilleter@gmail.com>
This commit is contained in:
parent
a318e34890
commit
070c227c9d
@ -25,6 +25,15 @@ Delete download queue items by filter:
|
|||||||
**DELETE** `/api/download/?filter=ignore`
|
**DELETE** `/api/download/?filter=ignore`
|
||||||
**DELETE** `/api/download/?filter=pending`
|
**DELETE** `/api/download/?filter=pending`
|
||||||
|
|
||||||
|
???+ "Curl Example"
|
||||||
|
```bash
|
||||||
|
# add video to download queue
|
||||||
|
curl -XPOST -v /api/download/ \
|
||||||
|
-H "Authorization: Token xxxxxxxxxx" \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
-d '{"data":[{"youtube_id": "<video-id>", "status":"pending"}]}'
|
||||||
|
```
|
||||||
|
|
||||||
## Download Queue Item
|
## Download Queue Item
|
||||||
**GET** `/api/download/<video_id>/`
|
**GET** `/api/download/<video_id>/`
|
||||||
**POST** `/api/download/<video_id>/`
|
**POST** `/api/download/<video_id>/`
|
||||||
|
@ -78,6 +78,7 @@ footer {
|
|||||||
--md-code-hl-number-color: var(--highlight-error-light);
|
--md-code-hl-number-color: var(--highlight-error-light);
|
||||||
--md-code-hl-operator-color: var(--highlight-error);
|
--md-code-hl-operator-color: var(--highlight-error);
|
||||||
--md-code-nv-color: var(--highlight-error);
|
--md-code-nv-color: var(--highlight-error);
|
||||||
|
--md-code-hl-comment-color: var(--secondary-font);
|
||||||
--md-typeset-table-color: var(--main-font);
|
--md-typeset-table-color: var(--main-font);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -88,6 +89,7 @@ footer {
|
|||||||
--highlight-error-light: #c44343;
|
--highlight-error-light: #c44343;
|
||||||
--highlight-bg-transparent: #00293baf;
|
--highlight-bg-transparent: #00293baf;
|
||||||
--main-font: #eeeeee;
|
--main-font: #eeeeee;
|
||||||
|
--secondary-font: #858585;
|
||||||
--accent-font-dark: #259485;
|
--accent-font-dark: #259485;
|
||||||
--accent-font-light: #97d4c8;
|
--accent-font-light: #97d4c8;
|
||||||
--img-filter: invert(50%) sepia(9%) saturate(2940%) hue-rotate(122deg) brightness(94%) contrast(90%);
|
--img-filter: invert(50%) sepia(9%) saturate(2940%) hue-rotate(122deg) brightness(94%) contrast(90%);
|
||||||
|
Loading…
Reference in New Issue
Block a user