faqieh 0.0.1
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 +7 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +173 -0
- data/Rakefile +10 -0
- data/docs/Channel.md +50 -0
- data/docs/ChannelsApi.md +155 -0
- data/docs/DownloadTranscript202Response.md +18 -0
- data/docs/DownloadUrls.md +22 -0
- data/docs/Error.md +18 -0
- data/docs/ErrorError.md +24 -0
- data/docs/FacetOption.md +22 -0
- data/docs/GetChannel200Response.md +18 -0
- data/docs/GetMedium200Response.md +18 -0
- data/docs/GetPlaylist200Response.md +18 -0
- data/docs/GetSpeaker200Response.md +18 -0
- data/docs/GetTranscript200Response.md +20 -0
- data/docs/ListChannels200Response.md +20 -0
- data/docs/ListMedia200Response.md +20 -0
- data/docs/ListPlaylists200Response.md +20 -0
- data/docs/ListSpeakers200Response.md +20 -0
- data/docs/ListTranscripts200Response.md +18 -0
- data/docs/MediaApi.md +161 -0
- data/docs/Medium.md +64 -0
- data/docs/Pagination.md +28 -0
- data/docs/Platform.md +15 -0
- data/docs/Playlist.md +54 -0
- data/docs/PlaylistsApi.md +159 -0
- data/docs/Search200Response.md +20 -0
- data/docs/SearchApi.md +96 -0
- data/docs/SearchSection.md +22 -0
- data/docs/SearchSectionFacets.md +22 -0
- data/docs/Speaker.md +40 -0
- data/docs/SpeakerCountriesInner.md +20 -0
- data/docs/SpeakersApi.md +155 -0
- data/docs/TranscriptDetail.md +28 -0
- data/docs/TranscriptSearchResult.md +42 -0
- data/docs/TranscriptSegment.md +30 -0
- data/docs/TranscriptSummary.md +24 -0
- data/docs/TranscriptsApi.md +222 -0
- data/faqieh.gemspec +41 -0
- data/lib/faqieh/api/channels_api.rb +192 -0
- data/lib/faqieh/api/media_api.rb +200 -0
- data/lib/faqieh/api/playlists_api.rb +198 -0
- data/lib/faqieh/api/search_api.rb +159 -0
- data/lib/faqieh/api/speakers_api.rb +192 -0
- data/lib/faqieh/api/transcripts_api.rb +280 -0
- data/lib/faqieh/api_client.rb +441 -0
- data/lib/faqieh/api_error.rb +58 -0
- data/lib/faqieh/api_model_base.rb +88 -0
- data/lib/faqieh/configuration.rb +385 -0
- data/lib/faqieh/models/channel.rb +340 -0
- data/lib/faqieh/models/download_transcript202_response.rb +188 -0
- data/lib/faqieh/models/download_urls.rb +216 -0
- data/lib/faqieh/models/error.rb +164 -0
- data/lib/faqieh/models/error_error.rb +243 -0
- data/lib/faqieh/models/facet_option.rb +216 -0
- data/lib/faqieh/models/get_channel200_response.rb +164 -0
- data/lib/faqieh/models/get_medium200_response.rb +164 -0
- data/lib/faqieh/models/get_playlist200_response.rb +164 -0
- data/lib/faqieh/models/get_speaker200_response.rb +164 -0
- data/lib/faqieh/models/get_transcript200_response.rb +173 -0
- data/lib/faqieh/models/list_channels200_response.rb +192 -0
- data/lib/faqieh/models/list_media200_response.rb +192 -0
- data/lib/faqieh/models/list_playlists200_response.rb +192 -0
- data/lib/faqieh/models/list_speakers200_response.rb +192 -0
- data/lib/faqieh/models/list_transcripts200_response.rb +166 -0
- data/lib/faqieh/models/medium.rb +412 -0
- data/lib/faqieh/models/pagination.rb +195 -0
- data/lib/faqieh/models/platform.rb +40 -0
- data/lib/faqieh/models/playlist.rb +361 -0
- data/lib/faqieh/models/search200_response.rb +192 -0
- data/lib/faqieh/models/search_section.rb +187 -0
- data/lib/faqieh/models/search_section_facets.rb +243 -0
- data/lib/faqieh/models/speaker.rb +275 -0
- data/lib/faqieh/models/speaker_countries_inner.rb +202 -0
- data/lib/faqieh/models/transcript_detail.rb +297 -0
- data/lib/faqieh/models/transcript_search_result.rb +396 -0
- data/lib/faqieh/models/transcript_segment.rb +222 -0
- data/lib/faqieh/models/transcript_summary.rb +226 -0
- data/lib/faqieh/version.rb +15 -0
- data/lib/faqieh.rb +75 -0
- data/spec/spec_helper.rb +111 -0
- metadata +191 -0
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Faqieh Public API
|
|
3
|
+
|
|
4
|
+
#Public, read-only JSON API for browsing Faqieh's catalog of speakers, channels, playlists, media, and transcripts. Resource responses are JSON wrapped in a `{ \"data\": ... }` envelope. Collections additionally include a `pagination` object and RFC 5988 `Link` headers. Transcript downloads return files, errors use an `{ \"error\": ... }` envelope, and a PDF that is still being prepared returns a JSON `status` object. No authentication is required. Requests are rate limited per IP address: 300 per minute per controller (list/detail share an allowance), with these additional operation limits: - 60 searches per minute, shared across `/search`, catalog `q` searches, transcript searches and the equivalent MCP tools. - 60 paginated transcript reads per minute, shared with MCP `get_transcript`. - 10 exports per minute, shared across `full=true` and TXT/SRT/PDF downloads, regardless of media ID, language or format. With `q`, transcript search takes precedence over `full=true` and uses the search/read allowances. Rate-limit responses include `Retry-After: 60`. ## Conventions - **Pagination:** `?page=` and `?per_page=` (max 100). Search-mode requests (any request with `q`) serve at most 100 pages: deeper `page` values are clamped to 100, and `next_page` / `Link rel=\"next\"` stop at that boundary. Iterate with `next_page` or the `Link` header rather than a self-incremented counter. - **Search:** `?q=` (minimum 3 characters) on each collection, plus the cross-type `/search` endpoint. - **Partial response:** `?fields=a,b` returns only the listed attributes (`id` is always included). - **Embedding:** `?embed=speakers,channels` inlines related resources. - **Resource URLs:** `url` links to the localized Faqieh webpage for speakers, channels, playlists, and media. Channels, playlists, and media also expose `source_url` for the original source; it equals `url` when `platform` is `faqieh`. Clients that used `url` for the source should use `source_url`. Transcript summaries and details include the recording's webpage `url`; transcript segments and transcript search hits include a timestamped `url` pointing to the recording at the segment's start time. - **Localization:** `?locale=ar|en` or the `Accept-Language` header (default `ar`); affects labels and webpage URLs, not search relevance.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.25.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Faqieh
|
|
16
|
+
class ChannelsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Get a channel
|
|
23
|
+
# @param id [Integer]
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @option opts [String] :fields Comma-separated attribute whitelist; `id` is always included.
|
|
26
|
+
# @option opts [String] :embed Comma-separated associations to inline (e.g. `speakers,channels`).
|
|
27
|
+
# @option opts [String] :locale
|
|
28
|
+
# @return [GetChannel200Response]
|
|
29
|
+
def get_channel(id, opts = {})
|
|
30
|
+
data, _status_code, _headers = get_channel_with_http_info(id, opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Get a channel
|
|
35
|
+
# @param id [Integer]
|
|
36
|
+
# @param [Hash] opts the optional parameters
|
|
37
|
+
# @option opts [String] :fields Comma-separated attribute whitelist; `id` is always included.
|
|
38
|
+
# @option opts [String] :embed Comma-separated associations to inline (e.g. `speakers,channels`).
|
|
39
|
+
# @option opts [String] :locale
|
|
40
|
+
# @return [Array<(GetChannel200Response, Integer, Hash)>] GetChannel200Response data, response status code and response headers
|
|
41
|
+
def get_channel_with_http_info(id, opts = {})
|
|
42
|
+
if @api_client.config.debugging
|
|
43
|
+
@api_client.config.logger.debug 'Calling API: ChannelsApi.get_channel ...'
|
|
44
|
+
end
|
|
45
|
+
# verify the required parameter 'id' is set
|
|
46
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ChannelsApi.get_channel"
|
|
48
|
+
end
|
|
49
|
+
allowable_values = ["ar", "en"]
|
|
50
|
+
if @api_client.config.client_side_validation && opts[:'locale'] && !allowable_values.include?(opts[:'locale'])
|
|
51
|
+
fail ArgumentError, "invalid value for \"locale\", must be one of #{allowable_values}"
|
|
52
|
+
end
|
|
53
|
+
# resource path
|
|
54
|
+
local_var_path = '/channels/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
55
|
+
|
|
56
|
+
# query parameters
|
|
57
|
+
query_params = opts[:query_params] || {}
|
|
58
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
59
|
+
query_params[:'embed'] = opts[:'embed'] if !opts[:'embed'].nil?
|
|
60
|
+
query_params[:'locale'] = opts[:'locale'] if !opts[:'locale'].nil?
|
|
61
|
+
|
|
62
|
+
# header parameters
|
|
63
|
+
header_params = opts[:header_params] || {}
|
|
64
|
+
# HTTP header 'Accept' (if needed)
|
|
65
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
66
|
+
|
|
67
|
+
# form parameters
|
|
68
|
+
form_params = opts[:form_params] || {}
|
|
69
|
+
|
|
70
|
+
# http body (model)
|
|
71
|
+
post_body = opts[:debug_body]
|
|
72
|
+
|
|
73
|
+
# return_type
|
|
74
|
+
return_type = opts[:debug_return_type] || 'GetChannel200Response'
|
|
75
|
+
|
|
76
|
+
# auth_names
|
|
77
|
+
auth_names = opts[:debug_auth_names] || []
|
|
78
|
+
|
|
79
|
+
new_options = opts.merge(
|
|
80
|
+
:operation => :"ChannelsApi.get_channel",
|
|
81
|
+
:header_params => header_params,
|
|
82
|
+
:query_params => query_params,
|
|
83
|
+
:form_params => form_params,
|
|
84
|
+
:body => post_body,
|
|
85
|
+
:auth_names => auth_names,
|
|
86
|
+
:return_type => return_type
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
90
|
+
if @api_client.config.debugging
|
|
91
|
+
@api_client.config.logger.debug "API called: ChannelsApi#get_channel\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
92
|
+
end
|
|
93
|
+
return data, status_code, headers
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# List channels
|
|
97
|
+
# @param [Hash] opts the optional parameters
|
|
98
|
+
# @option opts [String] :q Full-text query (minimum 3 searchable characters, maximum 500 characters including whitespace).
|
|
99
|
+
# @option opts [Integer] :page Page number. Search-mode requests (with `q`) are clamped to page 100; `current_page` in the response reflects the served page.
|
|
100
|
+
# @option opts [Integer] :per_page (default to 10)
|
|
101
|
+
# @option opts [String] :fields Comma-separated attribute whitelist; `id` is always included.
|
|
102
|
+
# @option opts [String] :embed Comma-separated associations to inline (e.g. `speakers,channels`).
|
|
103
|
+
# @option opts [String] :locale
|
|
104
|
+
# @option opts [Boolean] :include_empty Include speakers, channels, and playlists with no linked media. By default only records with media_count greater than zero are listed.
|
|
105
|
+
# @return [ListChannels200Response]
|
|
106
|
+
def list_channels(opts = {})
|
|
107
|
+
data, _status_code, _headers = list_channels_with_http_info(opts)
|
|
108
|
+
data
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# List channels
|
|
112
|
+
# @param [Hash] opts the optional parameters
|
|
113
|
+
# @option opts [String] :q Full-text query (minimum 3 searchable characters, maximum 500 characters including whitespace).
|
|
114
|
+
# @option opts [Integer] :page Page number. Search-mode requests (with `q`) are clamped to page 100; `current_page` in the response reflects the served page.
|
|
115
|
+
# @option opts [Integer] :per_page (default to 10)
|
|
116
|
+
# @option opts [String] :fields Comma-separated attribute whitelist; `id` is always included.
|
|
117
|
+
# @option opts [String] :embed Comma-separated associations to inline (e.g. `speakers,channels`).
|
|
118
|
+
# @option opts [String] :locale
|
|
119
|
+
# @option opts [Boolean] :include_empty Include speakers, channels, and playlists with no linked media. By default only records with media_count greater than zero are listed.
|
|
120
|
+
# @return [Array<(ListChannels200Response, Integer, Hash)>] ListChannels200Response data, response status code and response headers
|
|
121
|
+
def list_channels_with_http_info(opts = {})
|
|
122
|
+
if @api_client.config.debugging
|
|
123
|
+
@api_client.config.logger.debug 'Calling API: ChannelsApi.list_channels ...'
|
|
124
|
+
end
|
|
125
|
+
if @api_client.config.client_side_validation && !opts[:'q'].nil? && opts[:'q'].to_s.length > 500
|
|
126
|
+
fail ArgumentError, 'invalid value for "opts[:"q"]" when calling ChannelsApi.list_channels, the character length must be smaller than or equal to 500.'
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
130
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling ChannelsApi.list_channels, must be greater than or equal to 1.'
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] > 100
|
|
134
|
+
fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling ChannelsApi.list_channels, must be smaller than or equal to 100.'
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] < 1
|
|
138
|
+
fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling ChannelsApi.list_channels, must be greater than or equal to 1.'
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
allowable_values = ["ar", "en"]
|
|
142
|
+
if @api_client.config.client_side_validation && opts[:'locale'] && !allowable_values.include?(opts[:'locale'])
|
|
143
|
+
fail ArgumentError, "invalid value for \"locale\", must be one of #{allowable_values}"
|
|
144
|
+
end
|
|
145
|
+
# resource path
|
|
146
|
+
local_var_path = '/channels'
|
|
147
|
+
|
|
148
|
+
# query parameters
|
|
149
|
+
query_params = opts[:query_params] || {}
|
|
150
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
151
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
152
|
+
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
|
153
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
154
|
+
query_params[:'embed'] = opts[:'embed'] if !opts[:'embed'].nil?
|
|
155
|
+
query_params[:'locale'] = opts[:'locale'] if !opts[:'locale'].nil?
|
|
156
|
+
query_params[:'include_empty'] = opts[:'include_empty'] if !opts[:'include_empty'].nil?
|
|
157
|
+
|
|
158
|
+
# header parameters
|
|
159
|
+
header_params = opts[:header_params] || {}
|
|
160
|
+
# HTTP header 'Accept' (if needed)
|
|
161
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
162
|
+
|
|
163
|
+
# form parameters
|
|
164
|
+
form_params = opts[:form_params] || {}
|
|
165
|
+
|
|
166
|
+
# http body (model)
|
|
167
|
+
post_body = opts[:debug_body]
|
|
168
|
+
|
|
169
|
+
# return_type
|
|
170
|
+
return_type = opts[:debug_return_type] || 'ListChannels200Response'
|
|
171
|
+
|
|
172
|
+
# auth_names
|
|
173
|
+
auth_names = opts[:debug_auth_names] || []
|
|
174
|
+
|
|
175
|
+
new_options = opts.merge(
|
|
176
|
+
:operation => :"ChannelsApi.list_channels",
|
|
177
|
+
:header_params => header_params,
|
|
178
|
+
:query_params => query_params,
|
|
179
|
+
:form_params => form_params,
|
|
180
|
+
:body => post_body,
|
|
181
|
+
:auth_names => auth_names,
|
|
182
|
+
:return_type => return_type
|
|
183
|
+
)
|
|
184
|
+
|
|
185
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
186
|
+
if @api_client.config.debugging
|
|
187
|
+
@api_client.config.logger.debug "API called: ChannelsApi#list_channels\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
188
|
+
end
|
|
189
|
+
return data, status_code, headers
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
end
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Faqieh Public API
|
|
3
|
+
|
|
4
|
+
#Public, read-only JSON API for browsing Faqieh's catalog of speakers, channels, playlists, media, and transcripts. Resource responses are JSON wrapped in a `{ \"data\": ... }` envelope. Collections additionally include a `pagination` object and RFC 5988 `Link` headers. Transcript downloads return files, errors use an `{ \"error\": ... }` envelope, and a PDF that is still being prepared returns a JSON `status` object. No authentication is required. Requests are rate limited per IP address: 300 per minute per controller (list/detail share an allowance), with these additional operation limits: - 60 searches per minute, shared across `/search`, catalog `q` searches, transcript searches and the equivalent MCP tools. - 60 paginated transcript reads per minute, shared with MCP `get_transcript`. - 10 exports per minute, shared across `full=true` and TXT/SRT/PDF downloads, regardless of media ID, language or format. With `q`, transcript search takes precedence over `full=true` and uses the search/read allowances. Rate-limit responses include `Retry-After: 60`. ## Conventions - **Pagination:** `?page=` and `?per_page=` (max 100). Search-mode requests (any request with `q`) serve at most 100 pages: deeper `page` values are clamped to 100, and `next_page` / `Link rel=\"next\"` stop at that boundary. Iterate with `next_page` or the `Link` header rather than a self-incremented counter. - **Search:** `?q=` (minimum 3 characters) on each collection, plus the cross-type `/search` endpoint. - **Partial response:** `?fields=a,b` returns only the listed attributes (`id` is always included). - **Embedding:** `?embed=speakers,channels` inlines related resources. - **Resource URLs:** `url` links to the localized Faqieh webpage for speakers, channels, playlists, and media. Channels, playlists, and media also expose `source_url` for the original source; it equals `url` when `platform` is `faqieh`. Clients that used `url` for the source should use `source_url`. Transcript summaries and details include the recording's webpage `url`; transcript segments and transcript search hits include a timestamped `url` pointing to the recording at the segment's start time. - **Localization:** `?locale=ar|en` or the `Accept-Language` header (default `ar`); affects labels and webpage URLs, not search relevance.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.25.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Faqieh
|
|
16
|
+
class MediaApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Get a medium
|
|
23
|
+
# @param id [Integer]
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @option opts [String] :fields Comma-separated attribute whitelist; `id` is always included.
|
|
26
|
+
# @option opts [String] :embed Comma-separated associations to inline (e.g. `speakers,channels`).
|
|
27
|
+
# @option opts [String] :locale
|
|
28
|
+
# @return [GetMedium200Response]
|
|
29
|
+
def get_medium(id, opts = {})
|
|
30
|
+
data, _status_code, _headers = get_medium_with_http_info(id, opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Get a medium
|
|
35
|
+
# @param id [Integer]
|
|
36
|
+
# @param [Hash] opts the optional parameters
|
|
37
|
+
# @option opts [String] :fields Comma-separated attribute whitelist; `id` is always included.
|
|
38
|
+
# @option opts [String] :embed Comma-separated associations to inline (e.g. `speakers,channels`).
|
|
39
|
+
# @option opts [String] :locale
|
|
40
|
+
# @return [Array<(GetMedium200Response, Integer, Hash)>] GetMedium200Response data, response status code and response headers
|
|
41
|
+
def get_medium_with_http_info(id, opts = {})
|
|
42
|
+
if @api_client.config.debugging
|
|
43
|
+
@api_client.config.logger.debug 'Calling API: MediaApi.get_medium ...'
|
|
44
|
+
end
|
|
45
|
+
# verify the required parameter 'id' is set
|
|
46
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling MediaApi.get_medium"
|
|
48
|
+
end
|
|
49
|
+
allowable_values = ["ar", "en"]
|
|
50
|
+
if @api_client.config.client_side_validation && opts[:'locale'] && !allowable_values.include?(opts[:'locale'])
|
|
51
|
+
fail ArgumentError, "invalid value for \"locale\", must be one of #{allowable_values}"
|
|
52
|
+
end
|
|
53
|
+
# resource path
|
|
54
|
+
local_var_path = '/media/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
55
|
+
|
|
56
|
+
# query parameters
|
|
57
|
+
query_params = opts[:query_params] || {}
|
|
58
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
59
|
+
query_params[:'embed'] = opts[:'embed'] if !opts[:'embed'].nil?
|
|
60
|
+
query_params[:'locale'] = opts[:'locale'] if !opts[:'locale'].nil?
|
|
61
|
+
|
|
62
|
+
# header parameters
|
|
63
|
+
header_params = opts[:header_params] || {}
|
|
64
|
+
# HTTP header 'Accept' (if needed)
|
|
65
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
66
|
+
|
|
67
|
+
# form parameters
|
|
68
|
+
form_params = opts[:form_params] || {}
|
|
69
|
+
|
|
70
|
+
# http body (model)
|
|
71
|
+
post_body = opts[:debug_body]
|
|
72
|
+
|
|
73
|
+
# return_type
|
|
74
|
+
return_type = opts[:debug_return_type] || 'GetMedium200Response'
|
|
75
|
+
|
|
76
|
+
# auth_names
|
|
77
|
+
auth_names = opts[:debug_auth_names] || []
|
|
78
|
+
|
|
79
|
+
new_options = opts.merge(
|
|
80
|
+
:operation => :"MediaApi.get_medium",
|
|
81
|
+
:header_params => header_params,
|
|
82
|
+
:query_params => query_params,
|
|
83
|
+
:form_params => form_params,
|
|
84
|
+
:body => post_body,
|
|
85
|
+
:auth_names => auth_names,
|
|
86
|
+
:return_type => return_type
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
90
|
+
if @api_client.config.debugging
|
|
91
|
+
@api_client.config.logger.debug "API called: MediaApi#get_medium\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
92
|
+
end
|
|
93
|
+
return data, status_code, headers
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# List media
|
|
97
|
+
# Browse media by publication date, or search by relevance using q.
|
|
98
|
+
# @param [Hash] opts the optional parameters
|
|
99
|
+
# @option opts [String] :q Full-text query (minimum 3 searchable characters, maximum 500 characters including whitespace).
|
|
100
|
+
# @option opts [Integer] :page Page number. Search-mode requests (with `q`) are clamped to page 100; `current_page` in the response reflects the served page.
|
|
101
|
+
# @option opts [Integer] :per_page (default to 10)
|
|
102
|
+
# @option opts [String] :fields Comma-separated attribute whitelist; `id` is always included.
|
|
103
|
+
# @option opts [String] :embed Comma-separated associations to inline (e.g. `speakers,channels`).
|
|
104
|
+
# @option opts [String] :locale
|
|
105
|
+
# @option opts [Integer] :speaker_id Filter to media linked to this speaker. Takes precedence over `channel_id` and `playlist_id`. The selected (highest-priority) filter 404s on an unknown id; ignored lower-priority params are not validated.
|
|
106
|
+
# @option opts [Integer] :channel_id Filter to media linked to this channel. Takes precedence over `playlist_id`; ignored when `speaker_id` is present.
|
|
107
|
+
# @option opts [Integer] :playlist_id Filter to media linked to this playlist. Ignored when `speaker_id` or `channel_id` is present.
|
|
108
|
+
# @return [ListMedia200Response]
|
|
109
|
+
def list_media(opts = {})
|
|
110
|
+
data, _status_code, _headers = list_media_with_http_info(opts)
|
|
111
|
+
data
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# List media
|
|
115
|
+
# Browse media by publication date, or search by relevance using q.
|
|
116
|
+
# @param [Hash] opts the optional parameters
|
|
117
|
+
# @option opts [String] :q Full-text query (minimum 3 searchable characters, maximum 500 characters including whitespace).
|
|
118
|
+
# @option opts [Integer] :page Page number. Search-mode requests (with `q`) are clamped to page 100; `current_page` in the response reflects the served page.
|
|
119
|
+
# @option opts [Integer] :per_page (default to 10)
|
|
120
|
+
# @option opts [String] :fields Comma-separated attribute whitelist; `id` is always included.
|
|
121
|
+
# @option opts [String] :embed Comma-separated associations to inline (e.g. `speakers,channels`).
|
|
122
|
+
# @option opts [String] :locale
|
|
123
|
+
# @option opts [Integer] :speaker_id Filter to media linked to this speaker. Takes precedence over `channel_id` and `playlist_id`. The selected (highest-priority) filter 404s on an unknown id; ignored lower-priority params are not validated.
|
|
124
|
+
# @option opts [Integer] :channel_id Filter to media linked to this channel. Takes precedence over `playlist_id`; ignored when `speaker_id` is present.
|
|
125
|
+
# @option opts [Integer] :playlist_id Filter to media linked to this playlist. Ignored when `speaker_id` or `channel_id` is present.
|
|
126
|
+
# @return [Array<(ListMedia200Response, Integer, Hash)>] ListMedia200Response data, response status code and response headers
|
|
127
|
+
def list_media_with_http_info(opts = {})
|
|
128
|
+
if @api_client.config.debugging
|
|
129
|
+
@api_client.config.logger.debug 'Calling API: MediaApi.list_media ...'
|
|
130
|
+
end
|
|
131
|
+
if @api_client.config.client_side_validation && !opts[:'q'].nil? && opts[:'q'].to_s.length > 500
|
|
132
|
+
fail ArgumentError, 'invalid value for "opts[:"q"]" when calling MediaApi.list_media, the character length must be smaller than or equal to 500.'
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
136
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling MediaApi.list_media, must be greater than or equal to 1.'
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] > 100
|
|
140
|
+
fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling MediaApi.list_media, must be smaller than or equal to 100.'
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] < 1
|
|
144
|
+
fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling MediaApi.list_media, must be greater than or equal to 1.'
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
allowable_values = ["ar", "en"]
|
|
148
|
+
if @api_client.config.client_side_validation && opts[:'locale'] && !allowable_values.include?(opts[:'locale'])
|
|
149
|
+
fail ArgumentError, "invalid value for \"locale\", must be one of #{allowable_values}"
|
|
150
|
+
end
|
|
151
|
+
# resource path
|
|
152
|
+
local_var_path = '/media'
|
|
153
|
+
|
|
154
|
+
# query parameters
|
|
155
|
+
query_params = opts[:query_params] || {}
|
|
156
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
157
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
158
|
+
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
|
159
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
160
|
+
query_params[:'embed'] = opts[:'embed'] if !opts[:'embed'].nil?
|
|
161
|
+
query_params[:'locale'] = opts[:'locale'] if !opts[:'locale'].nil?
|
|
162
|
+
query_params[:'speaker_id'] = opts[:'speaker_id'] if !opts[:'speaker_id'].nil?
|
|
163
|
+
query_params[:'channel_id'] = opts[:'channel_id'] if !opts[:'channel_id'].nil?
|
|
164
|
+
query_params[:'playlist_id'] = opts[:'playlist_id'] if !opts[:'playlist_id'].nil?
|
|
165
|
+
|
|
166
|
+
# header parameters
|
|
167
|
+
header_params = opts[:header_params] || {}
|
|
168
|
+
# HTTP header 'Accept' (if needed)
|
|
169
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
170
|
+
|
|
171
|
+
# form parameters
|
|
172
|
+
form_params = opts[:form_params] || {}
|
|
173
|
+
|
|
174
|
+
# http body (model)
|
|
175
|
+
post_body = opts[:debug_body]
|
|
176
|
+
|
|
177
|
+
# return_type
|
|
178
|
+
return_type = opts[:debug_return_type] || 'ListMedia200Response'
|
|
179
|
+
|
|
180
|
+
# auth_names
|
|
181
|
+
auth_names = opts[:debug_auth_names] || []
|
|
182
|
+
|
|
183
|
+
new_options = opts.merge(
|
|
184
|
+
:operation => :"MediaApi.list_media",
|
|
185
|
+
:header_params => header_params,
|
|
186
|
+
:query_params => query_params,
|
|
187
|
+
:form_params => form_params,
|
|
188
|
+
:body => post_body,
|
|
189
|
+
:auth_names => auth_names,
|
|
190
|
+
:return_type => return_type
|
|
191
|
+
)
|
|
192
|
+
|
|
193
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
194
|
+
if @api_client.config.debugging
|
|
195
|
+
@api_client.config.logger.debug "API called: MediaApi#list_media\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
196
|
+
end
|
|
197
|
+
return data, status_code, headers
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
end
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Faqieh Public API
|
|
3
|
+
|
|
4
|
+
#Public, read-only JSON API for browsing Faqieh's catalog of speakers, channels, playlists, media, and transcripts. Resource responses are JSON wrapped in a `{ \"data\": ... }` envelope. Collections additionally include a `pagination` object and RFC 5988 `Link` headers. Transcript downloads return files, errors use an `{ \"error\": ... }` envelope, and a PDF that is still being prepared returns a JSON `status` object. No authentication is required. Requests are rate limited per IP address: 300 per minute per controller (list/detail share an allowance), with these additional operation limits: - 60 searches per minute, shared across `/search`, catalog `q` searches, transcript searches and the equivalent MCP tools. - 60 paginated transcript reads per minute, shared with MCP `get_transcript`. - 10 exports per minute, shared across `full=true` and TXT/SRT/PDF downloads, regardless of media ID, language or format. With `q`, transcript search takes precedence over `full=true` and uses the search/read allowances. Rate-limit responses include `Retry-After: 60`. ## Conventions - **Pagination:** `?page=` and `?per_page=` (max 100). Search-mode requests (any request with `q`) serve at most 100 pages: deeper `page` values are clamped to 100, and `next_page` / `Link rel=\"next\"` stop at that boundary. Iterate with `next_page` or the `Link` header rather than a self-incremented counter. - **Search:** `?q=` (minimum 3 characters) on each collection, plus the cross-type `/search` endpoint. - **Partial response:** `?fields=a,b` returns only the listed attributes (`id` is always included). - **Embedding:** `?embed=speakers,channels` inlines related resources. - **Resource URLs:** `url` links to the localized Faqieh webpage for speakers, channels, playlists, and media. Channels, playlists, and media also expose `source_url` for the original source; it equals `url` when `platform` is `faqieh`. Clients that used `url` for the source should use `source_url`. Transcript summaries and details include the recording's webpage `url`; transcript segments and transcript search hits include a timestamped `url` pointing to the recording at the segment's start time. - **Localization:** `?locale=ar|en` or the `Accept-Language` header (default `ar`); affects labels and webpage URLs, not search relevance.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.25.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Faqieh
|
|
16
|
+
class PlaylistsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Get a playlist
|
|
23
|
+
# @param id [Integer]
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @option opts [String] :fields Comma-separated attribute whitelist; `id` is always included.
|
|
26
|
+
# @option opts [String] :embed Comma-separated associations to inline (e.g. `speakers,channels`).
|
|
27
|
+
# @option opts [String] :locale
|
|
28
|
+
# @return [GetPlaylist200Response]
|
|
29
|
+
def get_playlist(id, opts = {})
|
|
30
|
+
data, _status_code, _headers = get_playlist_with_http_info(id, opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Get a playlist
|
|
35
|
+
# @param id [Integer]
|
|
36
|
+
# @param [Hash] opts the optional parameters
|
|
37
|
+
# @option opts [String] :fields Comma-separated attribute whitelist; `id` is always included.
|
|
38
|
+
# @option opts [String] :embed Comma-separated associations to inline (e.g. `speakers,channels`).
|
|
39
|
+
# @option opts [String] :locale
|
|
40
|
+
# @return [Array<(GetPlaylist200Response, Integer, Hash)>] GetPlaylist200Response data, response status code and response headers
|
|
41
|
+
def get_playlist_with_http_info(id, opts = {})
|
|
42
|
+
if @api_client.config.debugging
|
|
43
|
+
@api_client.config.logger.debug 'Calling API: PlaylistsApi.get_playlist ...'
|
|
44
|
+
end
|
|
45
|
+
# verify the required parameter 'id' is set
|
|
46
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PlaylistsApi.get_playlist"
|
|
48
|
+
end
|
|
49
|
+
allowable_values = ["ar", "en"]
|
|
50
|
+
if @api_client.config.client_side_validation && opts[:'locale'] && !allowable_values.include?(opts[:'locale'])
|
|
51
|
+
fail ArgumentError, "invalid value for \"locale\", must be one of #{allowable_values}"
|
|
52
|
+
end
|
|
53
|
+
# resource path
|
|
54
|
+
local_var_path = '/playlists/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
55
|
+
|
|
56
|
+
# query parameters
|
|
57
|
+
query_params = opts[:query_params] || {}
|
|
58
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
59
|
+
query_params[:'embed'] = opts[:'embed'] if !opts[:'embed'].nil?
|
|
60
|
+
query_params[:'locale'] = opts[:'locale'] if !opts[:'locale'].nil?
|
|
61
|
+
|
|
62
|
+
# header parameters
|
|
63
|
+
header_params = opts[:header_params] || {}
|
|
64
|
+
# HTTP header 'Accept' (if needed)
|
|
65
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
66
|
+
|
|
67
|
+
# form parameters
|
|
68
|
+
form_params = opts[:form_params] || {}
|
|
69
|
+
|
|
70
|
+
# http body (model)
|
|
71
|
+
post_body = opts[:debug_body]
|
|
72
|
+
|
|
73
|
+
# return_type
|
|
74
|
+
return_type = opts[:debug_return_type] || 'GetPlaylist200Response'
|
|
75
|
+
|
|
76
|
+
# auth_names
|
|
77
|
+
auth_names = opts[:debug_auth_names] || []
|
|
78
|
+
|
|
79
|
+
new_options = opts.merge(
|
|
80
|
+
:operation => :"PlaylistsApi.get_playlist",
|
|
81
|
+
:header_params => header_params,
|
|
82
|
+
:query_params => query_params,
|
|
83
|
+
:form_params => form_params,
|
|
84
|
+
:body => post_body,
|
|
85
|
+
:auth_names => auth_names,
|
|
86
|
+
:return_type => return_type
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
90
|
+
if @api_client.config.debugging
|
|
91
|
+
@api_client.config.logger.debug "API called: PlaylistsApi#get_playlist\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
92
|
+
end
|
|
93
|
+
return data, status_code, headers
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# List playlists
|
|
97
|
+
# @param [Hash] opts the optional parameters
|
|
98
|
+
# @option opts [String] :q Full-text query (minimum 3 searchable characters, maximum 500 characters including whitespace).
|
|
99
|
+
# @option opts [Integer] :page Page number. Search-mode requests (with `q`) are clamped to page 100; `current_page` in the response reflects the served page.
|
|
100
|
+
# @option opts [Integer] :per_page (default to 10)
|
|
101
|
+
# @option opts [String] :fields Comma-separated attribute whitelist; `id` is always included.
|
|
102
|
+
# @option opts [String] :embed Comma-separated associations to inline (e.g. `speakers,channels`).
|
|
103
|
+
# @option opts [String] :locale
|
|
104
|
+
# @option opts [Boolean] :include_empty Include speakers, channels, and playlists with no linked media. By default only records with media_count greater than zero are listed.
|
|
105
|
+
# @option opts [Integer] :speaker_id Filter to playlists linked to this speaker. Takes precedence over `channel_id`; an unknown id returns 404.
|
|
106
|
+
# @option opts [Integer] :channel_id Filter to playlists linked to this channel. Ignored when `speaker_id` is present; an unknown id returns 404.
|
|
107
|
+
# @return [ListPlaylists200Response]
|
|
108
|
+
def list_playlists(opts = {})
|
|
109
|
+
data, _status_code, _headers = list_playlists_with_http_info(opts)
|
|
110
|
+
data
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# List playlists
|
|
114
|
+
# @param [Hash] opts the optional parameters
|
|
115
|
+
# @option opts [String] :q Full-text query (minimum 3 searchable characters, maximum 500 characters including whitespace).
|
|
116
|
+
# @option opts [Integer] :page Page number. Search-mode requests (with `q`) are clamped to page 100; `current_page` in the response reflects the served page.
|
|
117
|
+
# @option opts [Integer] :per_page (default to 10)
|
|
118
|
+
# @option opts [String] :fields Comma-separated attribute whitelist; `id` is always included.
|
|
119
|
+
# @option opts [String] :embed Comma-separated associations to inline (e.g. `speakers,channels`).
|
|
120
|
+
# @option opts [String] :locale
|
|
121
|
+
# @option opts [Boolean] :include_empty Include speakers, channels, and playlists with no linked media. By default only records with media_count greater than zero are listed.
|
|
122
|
+
# @option opts [Integer] :speaker_id Filter to playlists linked to this speaker. Takes precedence over `channel_id`; an unknown id returns 404.
|
|
123
|
+
# @option opts [Integer] :channel_id Filter to playlists linked to this channel. Ignored when `speaker_id` is present; an unknown id returns 404.
|
|
124
|
+
# @return [Array<(ListPlaylists200Response, Integer, Hash)>] ListPlaylists200Response data, response status code and response headers
|
|
125
|
+
def list_playlists_with_http_info(opts = {})
|
|
126
|
+
if @api_client.config.debugging
|
|
127
|
+
@api_client.config.logger.debug 'Calling API: PlaylistsApi.list_playlists ...'
|
|
128
|
+
end
|
|
129
|
+
if @api_client.config.client_side_validation && !opts[:'q'].nil? && opts[:'q'].to_s.length > 500
|
|
130
|
+
fail ArgumentError, 'invalid value for "opts[:"q"]" when calling PlaylistsApi.list_playlists, the character length must be smaller than or equal to 500.'
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
134
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling PlaylistsApi.list_playlists, must be greater than or equal to 1.'
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] > 100
|
|
138
|
+
fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling PlaylistsApi.list_playlists, must be smaller than or equal to 100.'
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] < 1
|
|
142
|
+
fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling PlaylistsApi.list_playlists, must be greater than or equal to 1.'
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
allowable_values = ["ar", "en"]
|
|
146
|
+
if @api_client.config.client_side_validation && opts[:'locale'] && !allowable_values.include?(opts[:'locale'])
|
|
147
|
+
fail ArgumentError, "invalid value for \"locale\", must be one of #{allowable_values}"
|
|
148
|
+
end
|
|
149
|
+
# resource path
|
|
150
|
+
local_var_path = '/playlists'
|
|
151
|
+
|
|
152
|
+
# query parameters
|
|
153
|
+
query_params = opts[:query_params] || {}
|
|
154
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
155
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
156
|
+
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
|
157
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
158
|
+
query_params[:'embed'] = opts[:'embed'] if !opts[:'embed'].nil?
|
|
159
|
+
query_params[:'locale'] = opts[:'locale'] if !opts[:'locale'].nil?
|
|
160
|
+
query_params[:'include_empty'] = opts[:'include_empty'] if !opts[:'include_empty'].nil?
|
|
161
|
+
query_params[:'speaker_id'] = opts[:'speaker_id'] if !opts[:'speaker_id'].nil?
|
|
162
|
+
query_params[:'channel_id'] = opts[:'channel_id'] if !opts[:'channel_id'].nil?
|
|
163
|
+
|
|
164
|
+
# header parameters
|
|
165
|
+
header_params = opts[:header_params] || {}
|
|
166
|
+
# HTTP header 'Accept' (if needed)
|
|
167
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
168
|
+
|
|
169
|
+
# form parameters
|
|
170
|
+
form_params = opts[:form_params] || {}
|
|
171
|
+
|
|
172
|
+
# http body (model)
|
|
173
|
+
post_body = opts[:debug_body]
|
|
174
|
+
|
|
175
|
+
# return_type
|
|
176
|
+
return_type = opts[:debug_return_type] || 'ListPlaylists200Response'
|
|
177
|
+
|
|
178
|
+
# auth_names
|
|
179
|
+
auth_names = opts[:debug_auth_names] || []
|
|
180
|
+
|
|
181
|
+
new_options = opts.merge(
|
|
182
|
+
:operation => :"PlaylistsApi.list_playlists",
|
|
183
|
+
:header_params => header_params,
|
|
184
|
+
:query_params => query_params,
|
|
185
|
+
:form_params => form_params,
|
|
186
|
+
:body => post_body,
|
|
187
|
+
:auth_names => auth_names,
|
|
188
|
+
:return_type => return_type
|
|
189
|
+
)
|
|
190
|
+
|
|
191
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
192
|
+
if @api_client.config.debugging
|
|
193
|
+
@api_client.config.logger.debug "API called: PlaylistsApi#list_playlists\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
194
|
+
end
|
|
195
|
+
return data, status_code, headers
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
end
|