Skip to content

Commit ad3f45a

Browse files
committed
Update README.md
1 parent 563b86c commit ad3f45a

File tree

1 file changed

+28
-29
lines changed

1 file changed

+28
-29
lines changed

README.md

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ If you have any questions, please contact [[email protected]](hello@listenno
1717
- [Installation](#installation)
1818
- [Requirements](#requirements)
1919
- [Usage](#usage)
20-
- [Handling exceptions](#handling-exceptions)
20+
- [Handling errors](#handling-errors)
2121
- [API Reference](#api-reference)
2222
- [Full-text search](#full-text-search)
2323
- [Typeahead search](#typeahead-search)
@@ -129,7 +129,6 @@ All errors can be found in [this file](https://github.com/ListenNotes/podcast-ap
129129

130130

131131

132-
133132
## API Reference
134133

135134
Each function is a wrapper to send an HTTP request to the corresponding endpoint on the
@@ -1812,8 +1811,8 @@ func main() {
18121811
apiKey := os.Getenv("LISTEN_API_KEY")
18131812
client := listennotes.NewClient(apiKey)
18141813
resp, err := client.FetchEpisodeByID(map[string]string{
1815-
"id": "6b6d65930c5a4f71b254465871fed370",
1816-
})
1814+
"id": "6b6d65930c5a4f71b254465871fed370",
1815+
})
18171816

18181817
if err == nil {
18191818
// Print out the entire response data as a string
@@ -2418,8 +2417,8 @@ func main() {
24182417
apiKey := os.Getenv("LISTEN_API_KEY")
24192418
client := listennotes.NewClient(apiKey)
24202419
resp, err := client.FetchPodcastGenres(map[string]string{
2421-
"top_level_only": "1",
2422-
})
2420+
"top_level_only": "1",
2421+
})
24232422

24242423
if err == nil {
24252424
// Print out the entire response data as a string
@@ -4191,9 +4190,9 @@ func main() {
41914190
apiKey := os.Getenv("LISTEN_API_KEY")
41924191
client := listennotes.NewClient(apiKey)
41934192
resp, err := client.FetchRecommendationsForPodcast(map[string]string{
4194-
"id": "25212ac3c53240a880dd5032e547047b",
4195-
"safe_mode": "1",
4196-
})
4193+
"id": "25212ac3c53240a880dd5032e547047b",
4194+
"safe_mode": "1",
4195+
})
41974196

41984197
if err == nil {
41994198
// Print out the entire response data as a string
@@ -4883,9 +4882,9 @@ func main() {
48834882
apiKey := os.Getenv("LISTEN_API_KEY")
48844883
client := listennotes.NewClient(apiKey)
48854884
resp, err := client.FetchRecommendationsForEpisode(map[string]string{
4886-
"id": "914a9deafa5340eeaa2859c77f275799",
4887-
"safe_mode": "1",
4888-
})
4885+
"id": "914a9deafa5340eeaa2859c77f275799",
4886+
"safe_mode": "1",
4887+
})
48894888

48904889
if err == nil {
48914890
// Print out the entire response data as a string
@@ -5283,8 +5282,8 @@ func main() {
52835282
apiKey := os.Getenv("LISTEN_API_KEY")
52845283
client := listennotes.NewClient(apiKey)
52855284
resp, err := client.BatchFetchEpisodes(map[string]string{
5286-
"ids": "c577d55b2b2b483c969fae3ceb58e362,0f34a9099579490993eec9e8c8cebb82",
5287-
})
5285+
"ids": "c577d55b2b2b483c969fae3ceb58e362,0f34a9099579490993eec9e8c8cebb82",
5286+
})
52885287

52895288
if err == nil {
52905289
// Print out the entire response data as a string
@@ -5529,8 +5528,8 @@ func main() {
55295528
apiKey := os.Getenv("LISTEN_API_KEY")
55305529
client := listennotes.NewClient(apiKey)
55315530
resp, err := client.BatchFetchPodcasts(map[string]string{
5532-
"ids": "3302bc71139541baa46ecb27dbf6071a,68faf62be97149c280ebcc25178aa731,9cf19c590ff0484d97b18b329fed0c6a",
5533-
})
5531+
"ids": "3302bc71139541baa46ecb27dbf6071a,68faf62be97149c280ebcc25178aa731,9cf19c590ff0484d97b18b329fed0c6a",
5532+
})
55345533

55355534
if err == nil {
55365535
// Print out the entire response data as a string
@@ -6927,8 +6926,8 @@ func main() {
69276926
apiKey := os.Getenv("LISTEN_API_KEY")
69286927
client := listennotes.NewClient(apiKey)
69296928
resp, err := client.FetchCuratedPodcastsListByID(map[string]string{
6930-
"id": "SDFKduyJ47r",
6931-
})
6929+
"id": "SDFKduyJ47r",
6930+
})
69326931

69336932
if err == nil {
69346933
// Print out the entire response data as a string
@@ -8044,7 +8043,7 @@ func main() {
80448043
apiKey := os.Getenv("LISTEN_API_KEY")
80458044
client := listennotes.NewClient(apiKey)
80468045
resp, err := client.FetchCuratedPodcastsLists(map[string]string{
8047-
"page": "2",
8046+
"page": "2",
80488047
})
80498048

80508049
if err == nil {
@@ -9490,8 +9489,8 @@ func main() {
94909489
apiKey := os.Getenv("LISTEN_API_KEY")
94919490
client := listennotes.NewClient(apiKey)
94929491
resp, err := client.SubmitPodcast(map[string]string{
9493-
"rss": "https://feeds.megaphone.fm/committed",
9494-
})
9492+
"rss": "https://feeds.megaphone.fm/committed",
9493+
})
94959494

94969495
if err == nil {
94979496
// Print out the entire response data as a string
@@ -9627,8 +9626,8 @@ func main() {
96279626
apiKey := os.Getenv("LISTEN_API_KEY")
96289627
client := listennotes.NewClient(apiKey)
96299628
resp, err := client.DeletePodcast(map[string]string{
9630-
"id": "4d3fe717742d4963a85562e9f84d8c79",
9631-
})
9629+
"id": "4d3fe717742d4963a85562e9f84d8c79",
9630+
})
96329631

96339632
if err == nil {
96349633
// Print out the entire response data as a string
@@ -9715,9 +9714,9 @@ func main() {
97159714
apiKey := os.Getenv("LISTEN_API_KEY")
97169715
client := listennotes.NewClient(apiKey)
97179716
resp, err := client.FetchPlaylistByID(map[string]string{
9718-
"id": "m1pe7z60bsw",
9719-
"type": "podcast_list",
9720-
})
9717+
"id": "m1pe7z60bsw",
9718+
"type": "podcast_list",
9719+
})
97219720

97229721
if err == nil {
97239722
// Print out the entire response data as a string
@@ -10927,9 +10926,9 @@ func main() {
1092710926
apiKey := os.Getenv("LISTEN_API_KEY")
1092810927
client := listennotes.NewClient(apiKey)
1092910928
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+
})
1093310932

1093410933
if err == nil {
1093510934
// Print out the entire response data as a string

0 commit comments

Comments
 (0)