Captivate JavaScript SDK for retrieving podcast information.
This package is hosted on npm.
npm install @bradgarropy/captivate-sdk
Start off by creating a Captivate
client, then authenticate to the Captivate API. Now you can use the client to retrieve your podcast shows and episodes.
const captivate = new Captivate("abc123", "123456789")
const show = await captivate.shows.getShow("abc123")
const episode = await captivate.episodes.getEpisode("xyz123")
Name | Type | Example | Description |
---|---|---|---|
userId |
string |
"abc123" |
Captivate user id. |
apiKey |
string |
"123456789" |
Captivate api key. |
Create a Captivate
client.
const captivate = new Captivate("abc123", "123456789")
Authenticate a user to the Captivate API.
captivate.authentication.authenticateUser()
Name | Type | Example | Description |
---|---|---|---|
userId |
string |
"abc123" |
User id. |
Get a user.
captivate.users.getUser("abc123")
Name | Type | Example | Description |
---|---|---|---|
userId |
string |
"abc123" |
User id. |
Get a list of podcasts that a user belongs to.
captivate.users.getUsersShows("abc123")
Name | Type | Example | Description |
---|---|---|---|
userId |
string |
"abc123" |
User id. |
Get a list of podcasts that a user manages.
captivate.users.getUsersManagedShows("abc123")
Name | Type | Example | Description |
---|---|---|---|
showId |
string |
"abc123" |
Podcast show id. |
Get a podcast.
captivate.shows.getShow("abc123")
// TODO
// TODO
Name | Type | Example | Description |
---|---|---|---|
showId |
string |
"abc123" |
Podcast show id. |
Get all episodes from a podcast.
captivate.shows.getShowEpisodes("abc123")
Name | Type | Example | Description |
---|---|---|---|
showId |
string |
"abc123" |
Podcast show id. |
Get all scheduled episodes from a podcast.
captivate.shows.getShowScheduledEpisodes("abc123")
Name | Type | Example | Description |
---|---|---|---|
showId |
string |
"abc123" |
Podcast show id. |
Get the RSS feed URL for a podcast.
captivate.shows.getShowFeedUrl("abc123")
Name | Type | Example | Description |
---|---|---|---|
mediaId |
string |
"abc123" |
Media id. |
Get an item from your media library.
captivate.media.getMedia("abc123")
// TODO
Name | Type | Example | Description |
---|---|---|---|
showId |
string |
"abc123" |
Podcast show id. |
Get all media from a podcast.
captivate.media.getShowMedia("abc123")
// TODO
Name | Type | Example | Description |
---|---|---|---|
episodeId |
string |
"xyz123" |
Podcast episode id. |
Get a podcast episode.
captivate.episodes.getEpisode("xyz123")
// TODO
// TODO
π report bugs by filing issues
π’ provide feedback with issues or on twitter
ππΌββοΈ use my ama or twitter to ask any other questions
Brad Garropy π» π |