podcast-api 1.1.1 → 1.1.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "podcast-api",
3
- "version": "1.1.1",
3
+ "version": "1.1.4",
4
4
  "description": "JavaScript bindings for the Listen Notes Podcast API",
5
5
  "main": "src/PodcastApiClient.js",
6
6
  "scripts": {
@@ -99,6 +99,13 @@ const Client = (config = {}) => {
99
99
  return this.httpClient.delete(`/podcasts/${id}?reason=${reason || ''}`);
100
100
  };
101
101
 
102
+ this.fetchAudienceForPodcast = (params) => {
103
+ const { id, ...otherParams } = params;
104
+ return this.httpClient.get(`/podcasts/${id}/audience`, {
105
+ params: otherParams,
106
+ });
107
+ };
108
+
102
109
  return this;
103
110
  };
104
111