podcast-api 3.0.0__py3-none-any.whl

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.
File without changes
@@ -0,0 +1,275 @@
1
+ # Generated by listennotes/devtools/api-sdks/sync.py python. Do not edit.
2
+
3
+
4
+ class ApiMethods:
5
+ def search(self, **kwargs):
6
+ return self._request_api(
7
+ "GET",
8
+ "/search",
9
+ (
10
+ "q",
11
+ "sort_by_date",
12
+ "type",
13
+ "offset",
14
+ "len_min",
15
+ "len_max",
16
+ "episode_count_min",
17
+ "episode_count_max",
18
+ "update_freq_min",
19
+ "update_freq_max",
20
+ "genre_ids",
21
+ "published_before",
22
+ "published_after",
23
+ "only_in",
24
+ "language",
25
+ "region",
26
+ "ocid",
27
+ "ncid",
28
+ "safe_mode",
29
+ "unique_podcasts",
30
+ "interviews_only",
31
+ "sponsored_only",
32
+ "page_size",
33
+ ),
34
+ kwargs,
35
+ )
36
+
37
+ def typeahead(self, **kwargs):
38
+ return self._request_api(
39
+ "GET",
40
+ "/typeahead",
41
+ ("q", "show_podcasts", "show_genres", "safe_mode"),
42
+ kwargs,
43
+ )
44
+
45
+ def search_episode_titles(self, **kwargs):
46
+ return self._request_api(
47
+ "GET",
48
+ "/search_episode_titles",
49
+ ("q", "podcast_id", "podcast_id_type"),
50
+ kwargs,
51
+ )
52
+
53
+ def spellcheck(self, **kwargs):
54
+ return self._request_api(
55
+ "GET",
56
+ "/spellcheck",
57
+ ("q",),
58
+ kwargs,
59
+ )
60
+
61
+ def fetch_related_searches(self, **kwargs):
62
+ return self._request_api(
63
+ "GET",
64
+ "/related_searches",
65
+ ("q",),
66
+ kwargs,
67
+ )
68
+
69
+ def fetch_trending_searches(self, **kwargs):
70
+ return self._request_api(
71
+ "GET",
72
+ "/trending_searches",
73
+ (),
74
+ kwargs,
75
+ )
76
+
77
+ def fetch_best_podcasts(self, **kwargs):
78
+ return self._request_api(
79
+ "GET",
80
+ "/best_podcasts",
81
+ (
82
+ "genre_id",
83
+ "page",
84
+ "region",
85
+ "publisher_region",
86
+ "language",
87
+ "sort",
88
+ "safe_mode",
89
+ ),
90
+ kwargs,
91
+ )
92
+
93
+ def fetch_podcast_by_id(self, **kwargs):
94
+ return self._request_api(
95
+ "GET",
96
+ "/podcasts/{id}",
97
+ ("next_episode_pub_date", "sort"),
98
+ kwargs,
99
+ )
100
+
101
+ def delete_podcast(self, **kwargs):
102
+ return self._request_api(
103
+ "DELETE",
104
+ "/podcasts/{id}",
105
+ ("reason",),
106
+ kwargs,
107
+ )
108
+
109
+ def fetch_episode_by_id(self, **kwargs):
110
+ return self._request_api(
111
+ "GET",
112
+ "/episodes/{id}",
113
+ ("show_transcript",),
114
+ kwargs,
115
+ )
116
+
117
+ def batch_fetch_episodes(self, **kwargs):
118
+ return self._request_api(
119
+ "POST",
120
+ "/episodes",
121
+ (),
122
+ kwargs,
123
+ )
124
+
125
+ def batch_fetch_podcasts(self, **kwargs):
126
+ return self._request_api(
127
+ "POST",
128
+ "/podcasts",
129
+ (),
130
+ kwargs,
131
+ )
132
+
133
+ def fetch_curated_podcasts_list_by_id(self, **kwargs):
134
+ return self._request_api(
135
+ "GET",
136
+ "/curated_podcasts/{id}",
137
+ (),
138
+ kwargs,
139
+ )
140
+
141
+ def fetch_podcast_genres(self, **kwargs):
142
+ return self._request_api(
143
+ "GET",
144
+ "/genres",
145
+ ("top_level_only",),
146
+ kwargs,
147
+ )
148
+
149
+ def fetch_podcast_regions(self, **kwargs):
150
+ return self._request_api(
151
+ "GET",
152
+ "/regions",
153
+ (),
154
+ kwargs,
155
+ )
156
+
157
+ def fetch_podcast_languages(self, **kwargs):
158
+ return self._request_api(
159
+ "GET",
160
+ "/languages",
161
+ (),
162
+ kwargs,
163
+ )
164
+
165
+ def just_listen(self, **kwargs):
166
+ return self._request_api(
167
+ "GET",
168
+ "/just_listen",
169
+ (),
170
+ kwargs,
171
+ )
172
+
173
+ def fetch_curated_podcasts_lists(self, **kwargs):
174
+ return self._request_api(
175
+ "GET",
176
+ "/curated_podcasts",
177
+ ("page",),
178
+ kwargs,
179
+ )
180
+
181
+ def fetch_recommendations_for_podcast(self, **kwargs):
182
+ return self._request_api(
183
+ "GET",
184
+ "/podcasts/{id}/recommendations",
185
+ ("safe_mode",),
186
+ kwargs,
187
+ )
188
+
189
+ def fetch_recommendations_for_episode(self, **kwargs):
190
+ return self._request_api(
191
+ "GET",
192
+ "/episodes/{id}/recommendations",
193
+ ("safe_mode",),
194
+ kwargs,
195
+ )
196
+
197
+ def submit_podcast(self, **kwargs):
198
+ return self._request_api(
199
+ "POST",
200
+ "/podcasts/submit",
201
+ (),
202
+ kwargs,
203
+ )
204
+
205
+ def fetch_playlist_by_id(self, **kwargs):
206
+ return self._request_api(
207
+ "GET",
208
+ "/playlists/{id}",
209
+ ("type", "last_timestamp_ms", "sort"),
210
+ kwargs,
211
+ )
212
+
213
+ def fetch_my_playlists(self, **kwargs):
214
+ return self._request_api(
215
+ "GET",
216
+ "/playlists",
217
+ ("sort", "page"),
218
+ kwargs,
219
+ )
220
+
221
+ def fetch_audience_for_podcast(self, **kwargs):
222
+ return self._request_api(
223
+ "GET",
224
+ "/podcasts/{id}/audience",
225
+ (),
226
+ kwargs,
227
+ )
228
+
229
+ def fetch_podcasts_by_domain(self, **kwargs):
230
+ return self._request_api(
231
+ "GET",
232
+ "/podcasts/domains/{domain_name}",
233
+ ("page",),
234
+ kwargs,
235
+ )
236
+
237
+ def create_playlist(self, **kwargs):
238
+ return self._request_api(
239
+ "POST",
240
+ "/playlists",
241
+ (),
242
+ kwargs,
243
+ )
244
+
245
+ def update_playlist(self, **kwargs):
246
+ return self._request_api(
247
+ "PUT",
248
+ "/playlists/{id}",
249
+ (),
250
+ kwargs,
251
+ )
252
+
253
+ def add_playlist_item(self, **kwargs):
254
+ return self._request_api(
255
+ "POST",
256
+ "/playlists/{id}/items",
257
+ (),
258
+ kwargs,
259
+ )
260
+
261
+ def delete_playlist_item(self, **kwargs):
262
+ return self._request_api(
263
+ "DELETE",
264
+ "/playlists/{id}/items/{item_id}",
265
+ (),
266
+ kwargs,
267
+ )
268
+
269
+ def update_playlist_item_notes(self, **kwargs):
270
+ return self._request_api(
271
+ "PUT",
272
+ "/playlists/{id}/items/{item_id}",
273
+ (),
274
+ kwargs,
275
+ )