buzzsprout-cli 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +271 -0
- data/bin/buzzsprout +6 -0
- data/lib/buzzsprout/animation/wordmark.rb +41 -0
- data/lib/buzzsprout/animation.rb +181 -0
- data/lib/buzzsprout/cli.rb +215 -0
- data/lib/buzzsprout/client.rb +306 -0
- data/lib/buzzsprout/color.rb +195 -0
- data/lib/buzzsprout/commands/base.rb +188 -0
- data/lib/buzzsprout/commands/brand_affiliations.rb +98 -0
- data/lib/buzzsprout/commands/chapters.rb +58 -0
- data/lib/buzzsprout/commands/contributors.rb +119 -0
- data/lib/buzzsprout/commands/downloads.rb +139 -0
- data/lib/buzzsprout/commands/episodes.rb +116 -0
- data/lib/buzzsprout/commands/fan_mail.rb +216 -0
- data/lib/buzzsprout/commands/feed_verifications.rb +74 -0
- data/lib/buzzsprout/commands/listings.rb +159 -0
- data/lib/buzzsprout/commands/login.rb +264 -0
- data/lib/buzzsprout/commands/podcasts.rb +85 -0
- data/lib/buzzsprout/commands/podrolls.rb +74 -0
- data/lib/buzzsprout/commands/skills.rb +144 -0
- data/lib/buzzsprout/commands/status.rb +64 -0
- data/lib/buzzsprout/commands/team.rb +75 -0
- data/lib/buzzsprout/commands/transcripts.rb +100 -0
- data/lib/buzzsprout/commands/update.rb +36 -0
- data/lib/buzzsprout/commands/uploads.rb +134 -0
- data/lib/buzzsprout/config.rb +125 -0
- data/lib/buzzsprout/formatter.rb +68 -0
- data/lib/buzzsprout/group_help.rb +74 -0
- data/lib/buzzsprout/oauth.rb +203 -0
- data/lib/buzzsprout/options.rb +155 -0
- data/lib/buzzsprout/podcast_picker.rb +328 -0
- data/lib/buzzsprout/redact.rb +65 -0
- data/lib/buzzsprout/updater.rb +230 -0
- data/lib/buzzsprout/version.rb +5 -0
- data/skills/README.md +62 -0
- data/skills/brand_affiliations/SKILL.md +52 -0
- data/skills/buzzsprout/SKILL.md +111 -0
- data/skills/chapters/SKILL.md +49 -0
- data/skills/contributors/SKILL.md +58 -0
- data/skills/episodes/SKILL.md +61 -0
- data/skills/fan_mail/SKILL.md +53 -0
- data/skills/feed_verifications/SKILL.md +51 -0
- data/skills/insertion_points/SKILL.md +50 -0
- data/skills/listings/SKILL.md +52 -0
- data/skills/podcasts/SKILL.md +57 -0
- data/skills/podrolls/SKILL.md +49 -0
- data/skills/soundbites/SKILL.md +51 -0
- data/skills/stats/SKILL.md +65 -0
- data/skills/team/SKILL.md +10 -0
- data/skills/transcripts/SKILL.md +60 -0
- data/skills/uploads/SKILL.md +68 -0
- metadata +102 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: buzzsprout-episodes
|
|
3
|
+
description: Create, inspect, update, schedule, publish, and unpublish Buzzsprout episodes. Use for titles, private flag, published_at, and episode metadata.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Episodes
|
|
7
|
+
|
|
8
|
+
Create, inspect, update, schedule, and unpublish episodes for a podcast.
|
|
9
|
+
|
|
10
|
+
## When to use
|
|
11
|
+
|
|
12
|
+
- Draft a private episode, then attach media with the `uploads` skill.
|
|
13
|
+
- Publish with `"private": false` (optionally schedule `published_at`).
|
|
14
|
+
- Unpublish with `"private": true`.
|
|
15
|
+
|
|
16
|
+
Typical workflow: create private → upload (complete!) → wait for `duration` > 0 → optional chapters/contributors → publish.
|
|
17
|
+
|
|
18
|
+
## Endpoints
|
|
19
|
+
|
|
20
|
+
- `GET /api/:podcast_id/episodes`
|
|
21
|
+
- `GET /api/:podcast_id/episodes/:id`
|
|
22
|
+
- `POST /api/:podcast_id/episodes` → `201 Created`
|
|
23
|
+
- `PATCH /api/:podcast_id/episodes/:id` (also `PUT`)
|
|
24
|
+
|
|
25
|
+
## Auth headers
|
|
26
|
+
|
|
27
|
+
```text
|
|
28
|
+
Authorization: Token token=YOUR_API_TOKEN
|
|
29
|
+
User-Agent: BuzzsproutCLI/0.1.1
|
|
30
|
+
Accept: application/json
|
|
31
|
+
Content-Type: application/json; charset=utf-8
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Example requests
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
curl -sS -X POST "https://www.buzzsprout.com/api/PODCAST_ID/episodes" \
|
|
38
|
+
-H "Authorization: Token token=YOUR_API_TOKEN" \
|
|
39
|
+
-H "User-Agent: BuzzsproutCLI/0.1.1" \
|
|
40
|
+
-H "Content-Type: application/json; charset=utf-8" \
|
|
41
|
+
-H "Accept: application/json" \
|
|
42
|
+
-d '{"title":"Too many or too few?","private":true,"episode_number":6}'
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Write fields: `title`, `description`, `artist`, `tags` (comma-separated string), `published_at` (include timezone offset), `season_number`, `episode_number`, `episode_type` (`full`|`trailer`|`bonus`), `explicit`, `private`, `custom_url`. Artwork: `artwork_url` or multipart `artwork_file`.
|
|
46
|
+
|
|
47
|
+
Legacy `audio_url` / `audio_file` still work; new work should use the upload endpoints.
|
|
48
|
+
|
|
49
|
+
Create/update use a **legacy error format** (field hashes, HTTP 400). Other resources use `{ "error": { "code", "message", "param" } }`.
|
|
50
|
+
|
|
51
|
+
## CLI
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
buzzsprout episodes list 10
|
|
55
|
+
buzzsprout episodes show 10 788881
|
|
56
|
+
buzzsprout episodes create 10 --title "My episode" --private
|
|
57
|
+
buzzsprout episodes update 10 788881 --body '{"description":"…"}'
|
|
58
|
+
buzzsprout episodes publish 10 788881
|
|
59
|
+
buzzsprout episodes unpublish 10 788881
|
|
60
|
+
buzzsprout episode 788881 downloads today
|
|
61
|
+
```
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: buzzsprout-fan-mail
|
|
3
|
+
description: List, publish, mark read, and block Buzzsprout fan mail (listener messages). Cannot create mail or send SMS replies.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Fan mail
|
|
7
|
+
|
|
8
|
+
Inbound listener messages. You cannot create fan mail or send an SMS reply through this API.
|
|
9
|
+
|
|
10
|
+
## When to use
|
|
11
|
+
|
|
12
|
+
- Triage unread listener texts/voice transcripts.
|
|
13
|
+
- Publish a message, mark it read, or block a sender (no unblock endpoint).
|
|
14
|
+
|
|
15
|
+
## Endpoints
|
|
16
|
+
|
|
17
|
+
- `GET /api/:podcast_id/fan_mail` — unblocked messages, newest first
|
|
18
|
+
- `GET /api/:podcast_id/fan_mail/:id` — also marks the thread as read
|
|
19
|
+
- `PATCH /api/:podcast_id/fan_mail/:id` with `{ "published": true|false }`
|
|
20
|
+
- `POST /api/:podcast_id/fan_mail/:id/read`
|
|
21
|
+
- `POST /api/:podcast_id/fan_mail/:id/block`
|
|
22
|
+
|
|
23
|
+
## Auth headers
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
Authorization: Token token=YOUR_API_TOKEN
|
|
27
|
+
User-Agent: BuzzsproutCLI/0.1.1
|
|
28
|
+
Accept: application/json
|
|
29
|
+
Content-Type: application/json; charset=utf-8
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Example requests
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
curl -sS -X PATCH "https://www.buzzsprout.com/api/PODCAST_ID/fan_mail/FAN_MAIL_ID" \
|
|
36
|
+
-H "Authorization: Token token=YOUR_API_TOKEN" \
|
|
37
|
+
-H "User-Agent: BuzzsproutCLI/0.1.1" \
|
|
38
|
+
-H "Content-Type: application/json; charset=utf-8" \
|
|
39
|
+
-H "Accept: application/json" \
|
|
40
|
+
-d '{"published":true}'
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Fields: `status` (`unread`|`read`), `published`, `blocked`, `text`, `sender_info`, geo, `message_type` (`TextMessage`|`VoiceMessage`). Missing ids → `404`.
|
|
44
|
+
|
|
45
|
+
## CLI
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
buzzsprout fan-mail list 10
|
|
49
|
+
buzzsprout fan-mail show 10 501
|
|
50
|
+
buzzsprout fan-mail publish 10 501
|
|
51
|
+
buzzsprout fan-mail read 10 501
|
|
52
|
+
buzzsprout fan-mail block 10 501
|
|
53
|
+
```
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: buzzsprout-feed-verifications
|
|
3
|
+
description: Manage Buzzsprout RSS feed verification values (podcast verify tags). Create, update, or delete the verify value.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Feed verifications
|
|
7
|
+
|
|
8
|
+
Manage verification values in the RSS feed (`purpose` is returned but cannot be set through this API). Writable fields: `value` and optional `expires_at`.
|
|
9
|
+
|
|
10
|
+
POST creates the podcast's generic `verify` value, or replaces the existing one.
|
|
11
|
+
|
|
12
|
+
## When to use
|
|
13
|
+
|
|
14
|
+
- Add an owner email / token so a directory can verify the feed.
|
|
15
|
+
|
|
16
|
+
## Endpoints
|
|
17
|
+
|
|
18
|
+
- `GET /api/:podcast_id/feed_verifications`
|
|
19
|
+
- `POST /api/:podcast_id/feed_verifications`
|
|
20
|
+
- `PATCH /api/:podcast_id/feed_verifications/:id`
|
|
21
|
+
- `DELETE /api/:podcast_id/feed_verifications/:id` → `204`
|
|
22
|
+
|
|
23
|
+
## Auth headers
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
Authorization: Token token=YOUR_API_TOKEN
|
|
27
|
+
User-Agent: BuzzsproutCLI/0.1.1
|
|
28
|
+
Accept: application/json
|
|
29
|
+
Content-Type: application/json; charset=utf-8
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Example requests
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
curl -sS -X POST "https://www.buzzsprout.com/api/PODCAST_ID/feed_verifications" \
|
|
36
|
+
-H "Authorization: Token token=YOUR_API_TOKEN" \
|
|
37
|
+
-H "User-Agent: BuzzsproutCLI/0.1.1" \
|
|
38
|
+
-H "Content-Type: application/json; charset=utf-8" \
|
|
39
|
+
-H "Accept: application/json" \
|
|
40
|
+
-d '{"value":"owner@example.com","expires_at":"2027-09-01T00:00:00Z"}'
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Missing `value` → `422` / `param: "value"`.
|
|
44
|
+
|
|
45
|
+
## CLI
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
buzzsprout feed-verifications list 10
|
|
49
|
+
buzzsprout feed-verifications create 10 --value owner@example.com
|
|
50
|
+
buzzsprout feed-verifications delete 10 7
|
|
51
|
+
```
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: buzzsprout-insertion-points
|
|
3
|
+
description: Manage Buzzsprout mid-roll insertion timestamps on processed episode audio.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Insertion points
|
|
7
|
+
|
|
8
|
+
Mid-roll timestamps on **processed** episode audio. Returns `422` / `code: "unprocessable"` if audio is not processed yet.
|
|
9
|
+
|
|
10
|
+
## When to use
|
|
11
|
+
|
|
12
|
+
- Place or adjust mid-roll markers.
|
|
13
|
+
- Manual placements must sit after the first 20% of the episode, before the last 20%, and at least six minutes apart.
|
|
14
|
+
|
|
15
|
+
## Endpoints
|
|
16
|
+
|
|
17
|
+
- `GET /api/:podcast_id/episodes/:episode_id/insertion_points`
|
|
18
|
+
- `POST /api/:podcast_id/episodes/:episode_id/insertion_points` with `{ "timestamp": "00:15:00" }` or `{ "seconds": 900 }`
|
|
19
|
+
- `PATCH /api/:podcast_id/episodes/:episode_id/insertion_points/:id`
|
|
20
|
+
- `DELETE /api/:podcast_id/episodes/:episode_id/insertion_points/:id` → `204`
|
|
21
|
+
|
|
22
|
+
Omitting both `timestamp` and `seconds` on create → `422` / `param: "seconds"`. New points default to `eligible: true`.
|
|
23
|
+
|
|
24
|
+
## Auth headers
|
|
25
|
+
|
|
26
|
+
```text
|
|
27
|
+
Authorization: Token token=YOUR_API_TOKEN
|
|
28
|
+
User-Agent: BuzzsproutCLI/0.1.1
|
|
29
|
+
Accept: application/json
|
|
30
|
+
Content-Type: application/json; charset=utf-8
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Example requests
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
curl -sS -X POST "https://www.buzzsprout.com/api/PODCAST_ID/episodes/EPISODE_ID/insertion_points" \
|
|
37
|
+
-H "Authorization: Token token=YOUR_API_TOKEN" \
|
|
38
|
+
-H "User-Agent: BuzzsproutCLI/0.1.1" \
|
|
39
|
+
-H "Content-Type: application/json; charset=utf-8" \
|
|
40
|
+
-H "Accept: application/json" \
|
|
41
|
+
-d '{"timestamp":"00:15:00"}'
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## CLI
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
buzzsprout insertion-points list 10 788881
|
|
48
|
+
buzzsprout insertion-points create 10 788881 --timestamp 00:15:00
|
|
49
|
+
buzzsprout insertion-points delete 10 788881 3
|
|
50
|
+
```
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: buzzsprout-listings
|
|
3
|
+
description: Inspect Buzzsprout directory listing status and submit remaining one-click directories. Submit requires admin or owner.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Listings
|
|
7
|
+
|
|
8
|
+
Directory listings for a podcast. The API has **no directory search** — `GET` every listing, then match client-side. Inspect `status`, or submit remaining one-click directories in one request.
|
|
9
|
+
|
|
10
|
+
## When to use
|
|
11
|
+
|
|
12
|
+
- See Apple / Spotify / etc. listing state (`listed`, `submitted`, `unlisted`, `failed`).
|
|
13
|
+
- Print one directory’s `url` or `status`.
|
|
14
|
+
- Submit all remaining one-click directories (admin/owner only).
|
|
15
|
+
|
|
16
|
+
Pandora is omitted. Unlisted directories that have never been submitted have `id: null`.
|
|
17
|
+
|
|
18
|
+
## Endpoints
|
|
19
|
+
|
|
20
|
+
- `GET /api/:podcast_id/listings`
|
|
21
|
+
- `POST /api/:podcast_id/listings/submit_all` → `202 Accepted`
|
|
22
|
+
|
|
23
|
+
Submit requires a verified email and a podcast with a published episode, artwork, description, author, and category — otherwise `422` / `code: "ineligible"`. Editors → `403` / `forbidden`.
|
|
24
|
+
|
|
25
|
+
## Auth headers
|
|
26
|
+
|
|
27
|
+
```text
|
|
28
|
+
Authorization: Token token=YOUR_API_TOKEN
|
|
29
|
+
User-Agent: BuzzsproutCLI/0.1.1
|
|
30
|
+
Accept: application/json
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Example requests
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
curl -sS -X POST "https://www.buzzsprout.com/api/PODCAST_ID/listings/submit_all" \
|
|
37
|
+
-H "Authorization: Token token=YOUR_API_TOKEN" \
|
|
38
|
+
-H "User-Agent: BuzzsproutCLI/0.1.1" \
|
|
39
|
+
-H "Accept: application/json"
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## CLI
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
buzzsprout listings
|
|
46
|
+
buzzsprout listings Apple url
|
|
47
|
+
buzzsprout listings apple status
|
|
48
|
+
buzzsprout listings Spotify
|
|
49
|
+
buzzsprout listings submit-all
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Directory match is case-insensitive against `directory` and `name`. Exact `directory` wins, then exact `name`, then a unique prefix/substring. Zero matches or several matches are errors (no guessing). `url` / `status` as the last argument print that field only.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: buzzsprout-podcasts
|
|
3
|
+
description: List, show, and update Buzzsprout podcasts. Use for show metadata, RSS URL, categories, default podcast id, or GET /api/podcasts.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Podcasts
|
|
7
|
+
|
|
8
|
+
List, inspect, and update podcasts available to the authenticated user. Any member can list and show. Updates require **admin or owner**.
|
|
9
|
+
|
|
10
|
+
## When to use
|
|
11
|
+
|
|
12
|
+
- Discover the numeric podcast id (needed by almost every other endpoint).
|
|
13
|
+
- Read or change title, description, categories, language, timezone, artwork URL.
|
|
14
|
+
|
|
15
|
+
## Endpoints
|
|
16
|
+
|
|
17
|
+
These routes do **not** put a podcast id before `podcasts`.
|
|
18
|
+
|
|
19
|
+
- `GET /api/podcasts`
|
|
20
|
+
- `GET /api/podcasts/:id`
|
|
21
|
+
- `PATCH /api/podcasts/:id` (also `PUT`)
|
|
22
|
+
|
|
23
|
+
## Auth headers
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
Authorization: Token token=YOUR_API_TOKEN
|
|
27
|
+
User-Agent: BuzzsproutCLI/0.1.1
|
|
28
|
+
Accept: application/json
|
|
29
|
+
Content-Type: application/json; charset=utf-8 # writes only
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Example requests
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
curl -sS "https://www.buzzsprout.com/api/podcasts" \
|
|
36
|
+
-H "Authorization: Token token=YOUR_API_TOKEN" \
|
|
37
|
+
-H "User-Agent: BuzzsproutCLI/0.1.1" \
|
|
38
|
+
-H "Accept: application/json"
|
|
39
|
+
|
|
40
|
+
curl -sS -X PATCH "https://www.buzzsprout.com/api/podcasts/PODCAST_ID" \
|
|
41
|
+
-H "Authorization: Token token=YOUR_API_TOKEN" \
|
|
42
|
+
-H "User-Agent: BuzzsproutCLI/0.1.1" \
|
|
43
|
+
-H "Content-Type: application/json; charset=utf-8" \
|
|
44
|
+
-H "Accept: application/json" \
|
|
45
|
+
-d '{"title":"Life Empowerment","category":"Arts :: Books"}'
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Writable fields: `title`, `description`, `keywords`, `author`, `explicit`, `language`, `timezone`, `website_address`, `contact_email`, `category`, `category2`, `category3`. Write a category as `"Main :: Sub"`. `rss_url` and `website_url` are read-only.
|
|
49
|
+
|
|
50
|
+
## CLI
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
buzzsprout podcasts
|
|
54
|
+
buzzsprout podcasts show 10
|
|
55
|
+
buzzsprout podcasts update 10 --title "Life Empowerment"
|
|
56
|
+
buzzsprout podcast use 10
|
|
57
|
+
```
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: buzzsprout-podrolls
|
|
3
|
+
description: Manage recommended podcasts in a Buzzsprout RSS feed (podroll). Send guid and feed_url; there is no search endpoint.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Podrolls
|
|
7
|
+
|
|
8
|
+
Recommended podcasts in the RSS feed. They can be any podcast, not only Buzzsprout. No search — send `guid` and `feed_url` yourself (for example from Podcast Index).
|
|
9
|
+
|
|
10
|
+
## When to use
|
|
11
|
+
|
|
12
|
+
- Add, reorder, or remove recommended shows.
|
|
13
|
+
|
|
14
|
+
## Endpoints
|
|
15
|
+
|
|
16
|
+
- `GET|POST /api/:podcast_id/podrolls`
|
|
17
|
+
- `PATCH /api/:podcast_id/podrolls/:id`
|
|
18
|
+
- `DELETE /api/:podcast_id/podrolls/:id` → `204`
|
|
19
|
+
|
|
20
|
+
On update, send `{ "position": 1 }` (1-based; `0` is treated as `1`) and optionally `feed_url` / `guid`.
|
|
21
|
+
|
|
22
|
+
## Auth headers
|
|
23
|
+
|
|
24
|
+
```text
|
|
25
|
+
Authorization: Token token=YOUR_API_TOKEN
|
|
26
|
+
User-Agent: BuzzsproutCLI/0.1.1
|
|
27
|
+
Accept: application/json
|
|
28
|
+
Content-Type: application/json; charset=utf-8
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Example requests
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
curl -sS -X POST "https://www.buzzsprout.com/api/PODCAST_ID/podrolls" \
|
|
35
|
+
-H "Authorization: Token token=YOUR_API_TOKEN" \
|
|
36
|
+
-H "User-Agent: BuzzsproutCLI/0.1.1" \
|
|
37
|
+
-H "Content-Type: application/json; charset=utf-8" \
|
|
38
|
+
-H "Accept: application/json" \
|
|
39
|
+
-d '{"guid":"29cdca4a-32d8-56ba-b48b-09a011c5daa9","feed_url":"https://feeds.example.com/show.rss"}'
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## CLI
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
buzzsprout podrolls list 10
|
|
46
|
+
buzzsprout podrolls create 10 --guid 29cdca4a-32d8-56ba-b48b-09a011c5daa9 --feed-url https://feeds.example.com/show.rss
|
|
47
|
+
buzzsprout podrolls update 10 12 --position 1
|
|
48
|
+
buzzsprout podrolls delete 10 12
|
|
49
|
+
```
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: buzzsprout-soundbites
|
|
3
|
+
description: Create, inspect, or delete a Buzzsprout soundbite (short video clip) from processed episode audio.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Soundbites
|
|
7
|
+
|
|
8
|
+
Create a short video clip from processed episode audio. Artwork is `episode` or `podcast` — no custom image. The API does not return a rendered video file; when `creating_video` is `false`, the clip is ready in Buzzsprout.
|
|
9
|
+
|
|
10
|
+
## When to use
|
|
11
|
+
|
|
12
|
+
- Kick off a square/portrait/landscape clip from a time range.
|
|
13
|
+
- Poll GET until `creating_video` is false.
|
|
14
|
+
|
|
15
|
+
`POST` returns `202 Accepted`. GET before a soundbite exists returns `404`. Audio not processed → `422` / `unprocessable`.
|
|
16
|
+
|
|
17
|
+
## Endpoints
|
|
18
|
+
|
|
19
|
+
- `POST /api/:podcast_id/episodes/:episode_id/soundbite`
|
|
20
|
+
- `GET /api/:podcast_id/episodes/:episode_id/soundbite`
|
|
21
|
+
- `DELETE /api/:podcast_id/episodes/:episode_id/soundbite` → `204`
|
|
22
|
+
|
|
23
|
+
Defaults: `start_time` 0, `duration` 30, `aspect_ratio` `square`, podcast artwork (anything other than `"episode"`). Optional styling: `background_color`, `text_color`, `wave_color`, `text_line_1`, `text_line_2`.
|
|
24
|
+
|
|
25
|
+
## Auth headers
|
|
26
|
+
|
|
27
|
+
```text
|
|
28
|
+
Authorization: Token token=YOUR_API_TOKEN
|
|
29
|
+
User-Agent: BuzzsproutCLI/0.1.1
|
|
30
|
+
Accept: application/json
|
|
31
|
+
Content-Type: application/json; charset=utf-8
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Example requests
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
curl -sS -X POST "https://www.buzzsprout.com/api/PODCAST_ID/episodes/EPISODE_ID/soundbite" \
|
|
38
|
+
-H "Authorization: Token token=YOUR_API_TOKEN" \
|
|
39
|
+
-H "User-Agent: BuzzsproutCLI/0.1.1" \
|
|
40
|
+
-H "Content-Type: application/json; charset=utf-8" \
|
|
41
|
+
-H "Accept: application/json" \
|
|
42
|
+
-d '{"start_time":10,"duration":15,"aspect_ratio":"square","artwork":"episode"}'
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## CLI
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
buzzsprout soundbites create 10 788881 --start-time 10 --duration 15 --aspect-ratio square --artwork episode
|
|
49
|
+
buzzsprout soundbites show 10 788881
|
|
50
|
+
buzzsprout soundbites delete 10 788881
|
|
51
|
+
```
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: buzzsprout-stats
|
|
3
|
+
description: Buzzsprout download stats for a single podcast-local date. Use for GET /downloads totals and per-episode download details.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Stats
|
|
7
|
+
|
|
8
|
+
Download activity for **one** podcast-local calendar date (`YYYY-MM-DD`). No date-range filter.
|
|
9
|
+
|
|
10
|
+
## When to use
|
|
11
|
+
|
|
12
|
+
- Totals per episode that had downloads that day.
|
|
13
|
+
- Paged, normalized download details for one episode.
|
|
14
|
+
|
|
15
|
+
## Efficient CLI workflow
|
|
16
|
+
|
|
17
|
+
Use the authenticated CLI with `--json`; do not inspect credentials or rediscover the API with curl.
|
|
18
|
+
|
|
19
|
+
- For lifetime totals or lifetime rankings, use `buzzsprout episodes list --json` and read `total_downloads`. Do not fetch every day of the podcast's history.
|
|
20
|
+
- For totals across all episodes on one date, use `buzzsprout downloads YYYY-MM-DD --json`. This returns totals without requiring individual episode requests.
|
|
21
|
+
- For a date range, fetch each required date once and aggregate the results. The API has no date-range endpoint. Respect rate limits and report the dates used; don't count a missing or failed request as zero.
|
|
22
|
+
- Only request individual download details when the user wants geography, apps, or devices. Use `--per-page 1000` and follow `pagination.next_page` until `has_more` is false.
|
|
23
|
+
- For historical comparisons, use complete days and the podcast's timezone. Prefer explicit dates; `today` and `yesterday` are resolved using the CLI computer's date.
|
|
24
|
+
|
|
25
|
+
## Endpoints
|
|
26
|
+
|
|
27
|
+
- `GET /api/:podcast_id/downloads?date=YYYY-MM-DD`
|
|
28
|
+
- `GET /api/:podcast_id/:episode_id/downloads?date=YYYY-MM-DD` — note: **not** under `/episodes`
|
|
29
|
+
|
|
30
|
+
`page` defaults to 1, `per_page` defaults to 100 (max 1000). Invalid/missing `date` → `422` with `param: "date"`. The CLI requires a date: positional `today`, `yesterday`, or `YYYY-MM-DD` (case-insensitive), or `--date` as an alternate. There is no default date.
|
|
31
|
+
|
|
32
|
+
## Auth headers
|
|
33
|
+
|
|
34
|
+
```text
|
|
35
|
+
Authorization: Token token=YOUR_API_TOKEN
|
|
36
|
+
User-Agent: BuzzsproutCLI/0.1.1
|
|
37
|
+
Accept: application/json
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Example requests
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
curl -sS "https://www.buzzsprout.com/api/PODCAST_ID/downloads?date=2026-09-12" \
|
|
44
|
+
-H "Authorization: Token token=YOUR_API_TOKEN" \
|
|
45
|
+
-H "User-Agent: BuzzsproutCLI/0.1.1" \
|
|
46
|
+
-H "Accept: application/json"
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Podcast response: `[{ "episode_id": 788881, "total": 2 }]`. Empty day: `[]`.
|
|
50
|
+
|
|
51
|
+
Episode response includes `episodes[].downloads[]` (`app`, `device`, `device_type`, geo, `media_type`) and `pagination`.
|
|
52
|
+
|
|
53
|
+
## CLI
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
buzzsprout downloads today
|
|
57
|
+
buzzsprout downloads yesterday
|
|
58
|
+
buzzsprout downloads 2026-09-12
|
|
59
|
+
buzzsprout episode 788881 downloads today
|
|
60
|
+
buzzsprout episode 788881 downloads yesterday
|
|
61
|
+
buzzsprout episode 788881 downloads 2026-09-12
|
|
62
|
+
buzzsprout episode 788881 downloads today --page 1 --per-page 100
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
`stats` is an alias for `downloads`. Episode downloads need the episode id **between** `episode` and `downloads` (`buzzsprout episode <id> downloads today`). Do not omit the id.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: buzzsprout-team
|
|
3
|
+
description: Guide users to manage Buzzsprout team members in the web app. Team members have login access and are distinct from contributors.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Team
|
|
7
|
+
|
|
8
|
+
For requests to view, invite, change, or remove team members, tell the user to sign in to Buzzsprout and manage their team in the web app. Do not perform these actions through the CLI or API on their behalf. Do not explain this in terms of their authentication method.
|
|
9
|
+
|
|
10
|
+
Team members have login access. On-show credits are separate; use the contributors skill for those.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: buzzsprout-transcripts
|
|
3
|
+
description: Manage Buzzsprout public transcripts and high-fidelity segment transcripts for an episode.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Transcripts
|
|
7
|
+
|
|
8
|
+
Two separate resources:
|
|
9
|
+
|
|
10
|
+
1. **High-fidelity** — Buzzsprout-generated segments (word-level). GET/PUT only; cannot create or delete.
|
|
11
|
+
2. **Custom public** — a file you upload to replace what is shown publicly.
|
|
12
|
+
|
|
13
|
+
Uploading a custom transcript does not start Buzzsprout transcription. Deleting custom does not remove high-fidelity.
|
|
14
|
+
|
|
15
|
+
## When to use
|
|
16
|
+
|
|
17
|
+
- Fetch the public transcript download URL.
|
|
18
|
+
- Replace the editable high-fidelity segment array.
|
|
19
|
+
- Upload an `.srt` or JSON transcript file.
|
|
20
|
+
|
|
21
|
+
## Endpoints
|
|
22
|
+
|
|
23
|
+
- `GET /api/:podcast_id/episodes/:episode_id/transcript`
|
|
24
|
+
- `POST /api/:podcast_id/episodes/:episode_id/transcript` (multipart `transcript_file` + `transcript_format` = `srt`|`json`)
|
|
25
|
+
- `DELETE /api/:podcast_id/episodes/:episode_id/transcript`
|
|
26
|
+
- `GET /api/:podcast_id/episodes/:episode_id/high_fidelity_transcript`
|
|
27
|
+
- `PUT|PATCH /api/:podcast_id/episodes/:episode_id/high_fidelity_transcript` — raw segment array, not wrapped
|
|
28
|
+
|
|
29
|
+
## Auth headers
|
|
30
|
+
|
|
31
|
+
```text
|
|
32
|
+
Authorization: Token token=YOUR_API_TOKEN
|
|
33
|
+
User-Agent: BuzzsproutCLI/0.1.1
|
|
34
|
+
Accept: application/json
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
JSON writes for high-fidelity: `Content-Type: application/json; charset=utf-8`. Custom upload is multipart.
|
|
38
|
+
|
|
39
|
+
## Example requests
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
curl -sS -X POST "https://www.buzzsprout.com/api/PODCAST_ID/episodes/EPISODE_ID/transcript" \
|
|
43
|
+
-H "Authorization: Token token=YOUR_API_TOKEN" \
|
|
44
|
+
-H "User-Agent: BuzzsproutCLI/0.1.1" \
|
|
45
|
+
-H "Accept: application/json" \
|
|
46
|
+
-F "transcript_file=@episode.srt" \
|
|
47
|
+
-F "transcript_format=srt"
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Segments: required `start_time` (seconds) and `body`; optional `end_time`, `speaker`, `type` (`text`|`punc`).
|
|
51
|
+
|
|
52
|
+
## CLI
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
buzzsprout transcripts show 10 788881
|
|
56
|
+
buzzsprout transcripts upload 10 788881 --file episode.srt --transcript-format srt
|
|
57
|
+
buzzsprout transcripts high-fidelity 10 788881
|
|
58
|
+
buzzsprout transcripts replace-high-fidelity 10 788881 --body '[{"start_time":0,"end_time":1.2,"body":"Hello"}]'
|
|
59
|
+
buzzsprout transcripts delete 10 788881
|
|
60
|
+
```
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: buzzsprout-uploads
|
|
3
|
+
description: Attach audio or video to a Buzzsprout episode. Use for start upload, PUT file bytes, complete, abort, and multipart large files.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Upload audio or video
|
|
7
|
+
|
|
8
|
+
Preferred way to add or replace episode media. Create the episode first. **Complete is required** — skipping it leaves the episode with no media.
|
|
9
|
+
|
|
10
|
+
## When to use
|
|
11
|
+
|
|
12
|
+
- Attach or replace audio/video after `episodes create`.
|
|
13
|
+
- Files over 5 GiB (eligible video) need `"multipart": true`.
|
|
14
|
+
|
|
15
|
+
## Endpoints
|
|
16
|
+
|
|
17
|
+
- `POST /api/:podcast_id/episodes/:episode_id/uploads` → `201` with `upload.id` + `upload_url` (or `parts`)
|
|
18
|
+
- `PUT` the exact bytes to `upload_url` / `parts[].url` — **do not** send Buzzsprout `Authorization`
|
|
19
|
+
- `POST /api/:podcast_id/episodes/:episode_id/uploads/:upload_id/complete`
|
|
20
|
+
- `DELETE /api/:podcast_id/episodes/:episode_id/uploads/:upload_id/abort`
|
|
21
|
+
|
|
22
|
+
URL-encode `upload_id` if it contains special characters. After complete, poll the episode until `duration` is not `-1`.
|
|
23
|
+
|
|
24
|
+
## Auth headers
|
|
25
|
+
|
|
26
|
+
Buzzsprout calls:
|
|
27
|
+
|
|
28
|
+
```text
|
|
29
|
+
Authorization: Token token=YOUR_API_TOKEN
|
|
30
|
+
User-Agent: BuzzsproutCLI/0.1.1
|
|
31
|
+
Accept: application/json
|
|
32
|
+
Content-Type: application/json; charset=utf-8
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Storage `PUT`: no Authorization. Match `Content-Length` to the declared `byte_size` (or part `content_length`). Upload URLs expire after 6 hours.
|
|
36
|
+
|
|
37
|
+
## Example requests
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
# 1. Start
|
|
41
|
+
curl -sS -X POST "https://www.buzzsprout.com/api/PODCAST_ID/episodes/EPISODE_ID/uploads" \
|
|
42
|
+
-H "Authorization: Token token=YOUR_API_TOKEN" \
|
|
43
|
+
-H "User-Agent: BuzzsproutCLI/0.1.1" \
|
|
44
|
+
-H "Content-Type: application/json; charset=utf-8" \
|
|
45
|
+
-H "Accept: application/json" \
|
|
46
|
+
-d '{"filename":"episode.m4a","type":"audio/mp4","byte_size":12345678}'
|
|
47
|
+
|
|
48
|
+
# 2. PUT bytes (no Authorization)
|
|
49
|
+
curl -sS -X PUT "UPLOAD_URL" -H "Content-Length: 12345678" --data-binary @episode.m4a
|
|
50
|
+
|
|
51
|
+
# 3. Complete
|
|
52
|
+
curl -sS -X POST "https://www.buzzsprout.com/api/PODCAST_ID/episodes/EPISODE_ID/uploads/UPLOAD_ID/complete" \
|
|
53
|
+
-H "Authorization: Token token=YOUR_API_TOKEN" \
|
|
54
|
+
-H "User-Agent: BuzzsproutCLI/0.1.1" \
|
|
55
|
+
-H "Accept: application/json"
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Start JSON fields: `filename`, `byte_size`, media type (`type` preferred; `media_type` / `content_type` aliases). Optional `"multipart": true`.
|
|
59
|
+
|
|
60
|
+
## CLI
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
buzzsprout uploads start 10 788881 --file ./episode.m4a
|
|
64
|
+
buzzsprout uploads complete 10 788881 UPLOAD_ID
|
|
65
|
+
buzzsprout uploads abort 10 788881 UPLOAD_ID
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
`uploads start --file` performs start → PUT → complete.
|