podcast_api 1.0.2 → 1.0.3
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +10716 -4
- data/lib/errors.rb +1 -4
- data/lib/podcast_api.rb +3 -1
- data/lib/version.rb +1 -1
- metadata +2 -2
data/lib/errors.rb
CHANGED
data/lib/podcast_api.rb
CHANGED
|
@@ -76,10 +76,12 @@ module PodcastApi
|
|
|
76
76
|
end
|
|
77
77
|
|
|
78
78
|
def batch_fetch_podcasts(**kwargs)
|
|
79
|
+
@headers['Content-Type'] = 'application/x-www-form-urlencoded'
|
|
79
80
|
return send_http_request('post', "#{@base_url}/podcasts", {body: kwargs, headers: @headers})
|
|
80
81
|
end
|
|
81
82
|
|
|
82
83
|
def batch_fetch_episodes(**kwargs)
|
|
84
|
+
@headers['Content-Type'] = 'application/x-www-form-urlencoded'
|
|
83
85
|
return send_http_request('post', "#{@base_url}/episodes", {body: kwargs, headers: @headers})
|
|
84
86
|
end
|
|
85
87
|
|
|
@@ -89,7 +91,6 @@ module PodcastApi
|
|
|
89
91
|
end
|
|
90
92
|
|
|
91
93
|
def fetch_curated_podcasts_lists(**kwargs)
|
|
92
|
-
id = kwargs.delete(:id)
|
|
93
94
|
return send_http_request('get', "#{@base_url}/curated_podcasts", {query: kwargs, headers: @headers})
|
|
94
95
|
end
|
|
95
96
|
|
|
@@ -129,6 +130,7 @@ module PodcastApi
|
|
|
129
130
|
end
|
|
130
131
|
|
|
131
132
|
def submit_podcast(**kwargs)
|
|
133
|
+
@headers['Content-Type'] = 'application/x-www-form-urlencoded'
|
|
132
134
|
return send_http_request('post', "#{@base_url}/podcasts/submit", {body: kwargs, headers: @headers})
|
|
133
135
|
end
|
|
134
136
|
|
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: podcast_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Listen Notes, Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-05-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|