@@ -17,7 +17,7 @@ If you have any questions, please contact [
[email protected] ](hello@listenno
17
17
- [Installation](#installation)
18
18
- [Requirements](#requirements)
19
19
- [Usage](#usage)
20
- - [Handling exceptions ](#handling-exceptions )
20
+ - [Handling errors ](#handling-errors )
21
21
- [API Reference](#api-reference)
22
22
- [Full-text search](#full-text-search)
23
23
- [Typeahead search](#typeahead-search)
@@ -129,7 +129,6 @@ All errors can be found in [this file](https://github.com/ListenNotes/podcast-ap
129
129
130
130
131
131
132
-
133
132
## API Reference
134
133
135
134
Each function is a wrapper to send an HTTP request to the corresponding endpoint on the
@@ -1812,8 +1811,8 @@ func main() {
1812
1811
apiKey := os.Getenv("LISTEN_API_KEY")
1813
1812
client := listennotes.NewClient(apiKey)
1814
1813
resp, err := client.FetchEpisodeByID(map[string]string{
1815
- "id": "6b6d65930c5a4f71b254465871fed370",
1816
- })
1814
+ "id": "6b6d65930c5a4f71b254465871fed370",
1815
+ })
1817
1816
1818
1817
if err == nil {
1819
1818
// Print out the entire response data as a string
@@ -2418,8 +2417,8 @@ func main() {
2418
2417
apiKey := os.Getenv("LISTEN_API_KEY")
2419
2418
client := listennotes.NewClient(apiKey)
2420
2419
resp, err := client.FetchPodcastGenres(map[string]string{
2421
- "top_level_only": "1",
2422
- })
2420
+ "top_level_only": "1",
2421
+ })
2423
2422
2424
2423
if err == nil {
2425
2424
// Print out the entire response data as a string
@@ -4191,9 +4190,9 @@ func main() {
4191
4190
apiKey := os.Getenv("LISTEN_API_KEY")
4192
4191
client := listennotes.NewClient(apiKey)
4193
4192
resp, err := client.FetchRecommendationsForPodcast(map[string]string{
4194
- "id": "25212ac3c53240a880dd5032e547047b",
4195
- "safe_mode": "1",
4196
- })
4193
+ "id": "25212ac3c53240a880dd5032e547047b",
4194
+ "safe_mode": "1",
4195
+ })
4197
4196
4198
4197
if err == nil {
4199
4198
// Print out the entire response data as a string
@@ -4883,9 +4882,9 @@ func main() {
4883
4882
apiKey := os.Getenv("LISTEN_API_KEY")
4884
4883
client := listennotes.NewClient(apiKey)
4885
4884
resp, err := client.FetchRecommendationsForEpisode(map[string]string{
4886
- "id": "914a9deafa5340eeaa2859c77f275799",
4887
- "safe_mode": "1",
4888
- })
4885
+ "id": "914a9deafa5340eeaa2859c77f275799",
4886
+ "safe_mode": "1",
4887
+ })
4889
4888
4890
4889
if err == nil {
4891
4890
// Print out the entire response data as a string
@@ -5283,8 +5282,8 @@ func main() {
5283
5282
apiKey := os.Getenv("LISTEN_API_KEY")
5284
5283
client := listennotes.NewClient(apiKey)
5285
5284
resp, err := client.BatchFetchEpisodes(map[string]string{
5286
- "ids": "c577d55b2b2b483c969fae3ceb58e362,0f34a9099579490993eec9e8c8cebb82",
5287
- })
5285
+ "ids": "c577d55b2b2b483c969fae3ceb58e362,0f34a9099579490993eec9e8c8cebb82",
5286
+ })
5288
5287
5289
5288
if err == nil {
5290
5289
// Print out the entire response data as a string
@@ -5529,8 +5528,8 @@ func main() {
5529
5528
apiKey := os.Getenv("LISTEN_API_KEY")
5530
5529
client := listennotes.NewClient(apiKey)
5531
5530
resp, err := client.BatchFetchPodcasts(map[string]string{
5532
- "ids": "3302bc71139541baa46ecb27dbf6071a,68faf62be97149c280ebcc25178aa731,9cf19c590ff0484d97b18b329fed0c6a",
5533
- })
5531
+ "ids": "3302bc71139541baa46ecb27dbf6071a,68faf62be97149c280ebcc25178aa731,9cf19c590ff0484d97b18b329fed0c6a",
5532
+ })
5534
5533
5535
5534
if err == nil {
5536
5535
// Print out the entire response data as a string
@@ -6927,8 +6926,8 @@ func main() {
6927
6926
apiKey := os.Getenv("LISTEN_API_KEY")
6928
6927
client := listennotes.NewClient(apiKey)
6929
6928
resp, err := client.FetchCuratedPodcastsListByID(map[string]string{
6930
- "id": "SDFKduyJ47r",
6931
- })
6929
+ "id": "SDFKduyJ47r",
6930
+ })
6932
6931
6933
6932
if err == nil {
6934
6933
// Print out the entire response data as a string
@@ -8044,7 +8043,7 @@ func main() {
8044
8043
apiKey := os.Getenv("LISTEN_API_KEY")
8045
8044
client := listennotes.NewClient(apiKey)
8046
8045
resp, err := client.FetchCuratedPodcastsLists(map[string]string{
8047
- "page": "2",
8046
+ "page": "2",
8048
8047
})
8049
8048
8050
8049
if err == nil {
@@ -9490,8 +9489,8 @@ func main() {
9490
9489
apiKey := os.Getenv("LISTEN_API_KEY")
9491
9490
client := listennotes.NewClient(apiKey)
9492
9491
resp, err := client.SubmitPodcast(map[string]string{
9493
- "rss": "https://feeds.megaphone.fm/committed",
9494
- })
9492
+ "rss": "https://feeds.megaphone.fm/committed",
9493
+ })
9495
9494
9496
9495
if err == nil {
9497
9496
// Print out the entire response data as a string
@@ -9627,8 +9626,8 @@ func main() {
9627
9626
apiKey := os.Getenv("LISTEN_API_KEY")
9628
9627
client := listennotes.NewClient(apiKey)
9629
9628
resp, err := client.DeletePodcast(map[string]string{
9630
- "id": "4d3fe717742d4963a85562e9f84d8c79",
9631
- })
9629
+ "id": "4d3fe717742d4963a85562e9f84d8c79",
9630
+ })
9632
9631
9633
9632
if err == nil {
9634
9633
// Print out the entire response data as a string
@@ -9715,9 +9714,9 @@ func main() {
9715
9714
apiKey := os.Getenv("LISTEN_API_KEY")
9716
9715
client := listennotes.NewClient(apiKey)
9717
9716
resp, err := client.FetchPlaylistByID(map[string]string{
9718
- "id": "m1pe7z60bsw",
9719
- "type": "podcast_list",
9720
- })
9717
+ "id": "m1pe7z60bsw",
9718
+ "type": "podcast_list",
9719
+ })
9721
9720
9722
9721
if err == nil {
9723
9722
// Print out the entire response data as a string
@@ -10927,9 +10926,9 @@ func main() {
10927
10926
apiKey := os.Getenv("LISTEN_API_KEY")
10928
10927
client := listennotes.NewClient(apiKey)
10929
10928
resp, err := client.FetchMyPlaylists(map[string]string{
10930
- "page": "1",
10931
- "sort": "name_a_to_z",
10932
- })
10929
+ "page": "1",
10930
+ "sort": "name_a_to_z",
10931
+ })
10933
10932
10934
10933
if err == nil {
10935
10934
// Print out the entire response data as a string
0 commit comments