Repository navigation
Expand file tree
/
Copy pathapi_dispatch_test.go
More file actions
69 lines (68 loc) · 2.42 KB
/
Copy pathapi_dispatch_test.go
File metadata and controls
69 lines (68 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// Code generated by listennotes/devtools/api-sdks/sync.py go. DO NOT EDIT.
package listennotes
func callSDKMethod(client HTTPClient, operation string, args map[string]string) (*Response, error) {
switch operation {
case "search":
return client.Search(args)
case "typeahead":
return client.Typeahead(args)
case "searchEpisodeTitles":
return client.SearchEpisodeTitles(args)
case "spellcheck":
return client.SpellCheck(args)
case "getRelatedSearches":
return client.FetchRelatedSearches(args)
case "getTrendingSearches":
return client.FetchTrendingSearches(args)
case "getBestPodcasts":
return client.FetchBestPodcasts(args)
case "getPodcastById":
return client.FetchPodcastByID(args["id"], args)
case "deletePodcastById":
return client.DeletePodcast(args["id"], args)
case "getEpisodeById":
return client.FetchEpisodeByID(args["id"], args)
case "getEpisodesInBatch":
return client.BatchFetchEpisodes(args)
case "getPodcastsInBatch":
return client.BatchFetchPodcasts(args)
case "getCuratedPodcastById":
return client.FetchCuratedPodcastsListByID(args["id"], args)
case "getGenres":
return client.FetchPodcastGenres(args)
case "getRegions":
return client.FetchPodcastRegions(args)
case "getLanguages":
return client.FetchPodcastLanguages(args)
case "justListen":
return client.JustListen(args)
case "getCuratedPodcasts":
return client.FetchCuratedPodcastsLists(args)
case "getPodcastRecommendations":
return client.FetchRecommendationsForPodcast(args["id"], args)
case "getEpisodeRecommendations":
return client.FetchRecommendationsForEpisode(args["id"], args)
case "submitPodcast":
return client.SubmitPodcast(args)
case "getPlaylistById":
return client.FetchPlaylistByID(args["id"], args)
case "getPlaylists":
return client.FetchMyPlaylists(args)
case "getPodcastAudience":
return client.FetchAudienceForPodcast(args["id"], args)
case "getPodcastsByDomainName":
return client.FetchPodcastsByDomain(args["domain_name"], args)
case "createPlaylist":
return client.CreatePlaylist(args)
case "updatePlaylist":
return client.UpdatePlaylist(args["id"], args)
case "addPlaylistItem":
return client.AddPlaylistItem(args["id"], args)
case "deletePlaylistItem":
return client.DeletePlaylistItem(args["id"], args["item_id"], args)
case "updatePlaylistItemNotes":
return client.UpdatePlaylistItemNotes(args["id"], args["item_id"], args)
default:
panic("unknown operation: " + operation)
}
}