|
1 | 1 | # Podcast Index |
2 | 2 |
|
3 | | -The Podcast Index Extension adds support for the [Podcast Index RSS namespace](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md), |
| 3 | +The Podcast Index Extension adds support for |
| 4 | +the [Podcast Index RSS namespace](https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md), |
4 | 5 | an open source project which consolidates new features for podcasts into a |
5 | 6 | single namespace. |
6 | 7 |
|
7 | | -Channel API methods: |
| 8 | +## Channel API |
8 | 9 |
|
9 | | -Method | Description |
10 | | ------- | ----------- |
11 | | -`isLocked()` | Returns whether the feed is open for importing to new platforms. |
12 | | -`getLockOwner()` | Returns the email address for owner verification. |
13 | | -`getFunding()` | Returns funding information. The output is an object with "url" and "value" properties. |
| 10 | +### GET methods |
14 | 11 |
|
15 | | -Item API methods: |
| 12 | +| Method | Description | |
| 13 | +|-----------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------| |
| 14 | +| `isLocked()` | Returns whether the feed is open for importing to new platforms. | |
| 15 | +| `getLockOwner()` `getPodcastIndexLockOwner()` | Returns the email address for owner verification. | |
| 16 | +| `getFunding()` `getPodcastIndexFunding()` | Returns funding information. The output is an object with "url" and "value" properties. | |
| 17 | +| `getPodcastIndexLicense()` | Returns license information. The output is an object with "identifier" and "url" properties. | |
| 18 | +| `getPodcastIndexLocation()` | Returns funding information. The output is an object with "description", "geo" and "osm" properties. | |
| 19 | +| `getPodcastIndexImages()` | Returns information on responsive images. The output is an object with a "srcset" property. | |
| 20 | +| `getPodcastIndexUpdateFrequency()` | Returns information on the intended release schedule. The output is an object with "description", "complete", "dtstart" and "rrule" properties. | |
| 21 | +| `getPodcastIndexPeople()` | Returns information on the involved people. The output is an array of objects, each with the properties "name", "role", "group", "img" and "href". | |
16 | 22 |
|
17 | | -Method | Description |
18 | | ------- | ----------- |
19 | | -`getTranscript()` | Returns transcript information for the entry. The output is an object with "url", "type", "language" and "rel" properties/ |
20 | | -`getChapters()` | Returns chapter information for the entry. The output is an object with "url" and "type" properties. |
21 | | -`getSoundbites()` | Returns soundbites for the entry. The output is an array of objects with "title", "startTime" and "duration" properties. |
| 23 | +### SET methods |
| 24 | + |
| 25 | +| Method | Description | |
| 26 | +|------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------| |
| 27 | +| `setPodcastIndexLocked()` | Expects an array with the required keys "value" and "owner". | |
| 28 | +| `setPodcastIndexFunding()` | Expects an array with the required keys "title" and "url". | |
| 29 | +| `setPodcastIndexLicense()` | Expects an array with the required keys "identifier" and "url". | |
| 30 | +| `setPodcastIndexLocation()` | Expects an array with the required key "description" and the optional keys "geo" and "osm". | |
| 31 | +| `setPodcastIndexImages()` | Expects an array with the required key "srcset". | |
| 32 | +| `setPodcastIndexUpdateFrequency()` | Expects an array with the required key "description" and the optional keys "complete" (bool), "dtstart" (ISO8601 string) and "rrule". | |
| 33 | +| `addPodcastIndexPerson()` | Expects an array with the required key "name" and the optional keys "role", "group", "img" and "href". | |
| 34 | +| `setPodcastIndexPeople()` | Expects an array of objects with each the required key "name" and the optional keys "role", "group", "img" and "href". | |
| 35 | + |
| 36 | +## Episode API |
| 37 | + |
| 38 | +### GET methods |
| 39 | + |
| 40 | +| Method | Description | |
| 41 | +|-------------------|----------------------------------------------------------------------------------------------------------------------------| |
| 42 | +| `getTranscript()` | Returns transcript information for the entry. The output is an object with "url", "type", "language" and "rel" properties. | |
| 43 | +| `getChapters()` | Returns chapter information for the entry. The output is an object with "url" and "type" properties. | |
| 44 | +| `getSoundbites()` | Returns soundbites for the entry. The output is an array of objects with "title", "startTime" and "duration" properties. | |
| 45 | + |
| 46 | +### SET methods |
| 47 | + |
| 48 | +| Method | Description | |
| 49 | +|-------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------| |
| 50 | +| `setPodcastIndexTranscript()` | Expects an array with the required keys "url" and "type", and with the optional keys "language" and "rel". | |
| 51 | +| `setPodcastIndexChapters()` | Expects an array with the required keys "url" and "type". | |
| 52 | +| `addPodcastIndexSoundbites()` | Expects an array of soundbite entries, each itself an array with the required keys "title" and "startTime", and with the optional key "duration". | |
22 | 53 |
|
23 | 54 | See the [Podcast Index website](https://podcastindex.org) for more information |
24 | 55 | about the project. |
0 commit comments