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.
Files changed (84) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +21 -0
  4. data/README.md +173 -0
  5. data/Rakefile +10 -0
  6. data/docs/Channel.md +50 -0
  7. data/docs/ChannelsApi.md +155 -0
  8. data/docs/DownloadTranscript202Response.md +18 -0
  9. data/docs/DownloadUrls.md +22 -0
  10. data/docs/Error.md +18 -0
  11. data/docs/ErrorError.md +24 -0
  12. data/docs/FacetOption.md +22 -0
  13. data/docs/GetChannel200Response.md +18 -0
  14. data/docs/GetMedium200Response.md +18 -0
  15. data/docs/GetPlaylist200Response.md +18 -0
  16. data/docs/GetSpeaker200Response.md +18 -0
  17. data/docs/GetTranscript200Response.md +20 -0
  18. data/docs/ListChannels200Response.md +20 -0
  19. data/docs/ListMedia200Response.md +20 -0
  20. data/docs/ListPlaylists200Response.md +20 -0
  21. data/docs/ListSpeakers200Response.md +20 -0
  22. data/docs/ListTranscripts200Response.md +18 -0
  23. data/docs/MediaApi.md +161 -0
  24. data/docs/Medium.md +64 -0
  25. data/docs/Pagination.md +28 -0
  26. data/docs/Platform.md +15 -0
  27. data/docs/Playlist.md +54 -0
  28. data/docs/PlaylistsApi.md +159 -0
  29. data/docs/Search200Response.md +20 -0
  30. data/docs/SearchApi.md +96 -0
  31. data/docs/SearchSection.md +22 -0
  32. data/docs/SearchSectionFacets.md +22 -0
  33. data/docs/Speaker.md +40 -0
  34. data/docs/SpeakerCountriesInner.md +20 -0
  35. data/docs/SpeakersApi.md +155 -0
  36. data/docs/TranscriptDetail.md +28 -0
  37. data/docs/TranscriptSearchResult.md +42 -0
  38. data/docs/TranscriptSegment.md +30 -0
  39. data/docs/TranscriptSummary.md +24 -0
  40. data/docs/TranscriptsApi.md +222 -0
  41. data/faqieh.gemspec +41 -0
  42. data/lib/faqieh/api/channels_api.rb +192 -0
  43. data/lib/faqieh/api/media_api.rb +200 -0
  44. data/lib/faqieh/api/playlists_api.rb +198 -0
  45. data/lib/faqieh/api/search_api.rb +159 -0
  46. data/lib/faqieh/api/speakers_api.rb +192 -0
  47. data/lib/faqieh/api/transcripts_api.rb +280 -0
  48. data/lib/faqieh/api_client.rb +441 -0
  49. data/lib/faqieh/api_error.rb +58 -0
  50. data/lib/faqieh/api_model_base.rb +88 -0
  51. data/lib/faqieh/configuration.rb +385 -0
  52. data/lib/faqieh/models/channel.rb +340 -0
  53. data/lib/faqieh/models/download_transcript202_response.rb +188 -0
  54. data/lib/faqieh/models/download_urls.rb +216 -0
  55. data/lib/faqieh/models/error.rb +164 -0
  56. data/lib/faqieh/models/error_error.rb +243 -0
  57. data/lib/faqieh/models/facet_option.rb +216 -0
  58. data/lib/faqieh/models/get_channel200_response.rb +164 -0
  59. data/lib/faqieh/models/get_medium200_response.rb +164 -0
  60. data/lib/faqieh/models/get_playlist200_response.rb +164 -0
  61. data/lib/faqieh/models/get_speaker200_response.rb +164 -0
  62. data/lib/faqieh/models/get_transcript200_response.rb +173 -0
  63. data/lib/faqieh/models/list_channels200_response.rb +192 -0
  64. data/lib/faqieh/models/list_media200_response.rb +192 -0
  65. data/lib/faqieh/models/list_playlists200_response.rb +192 -0
  66. data/lib/faqieh/models/list_speakers200_response.rb +192 -0
  67. data/lib/faqieh/models/list_transcripts200_response.rb +166 -0
  68. data/lib/faqieh/models/medium.rb +412 -0
  69. data/lib/faqieh/models/pagination.rb +195 -0
  70. data/lib/faqieh/models/platform.rb +40 -0
  71. data/lib/faqieh/models/playlist.rb +361 -0
  72. data/lib/faqieh/models/search200_response.rb +192 -0
  73. data/lib/faqieh/models/search_section.rb +187 -0
  74. data/lib/faqieh/models/search_section_facets.rb +243 -0
  75. data/lib/faqieh/models/speaker.rb +275 -0
  76. data/lib/faqieh/models/speaker_countries_inner.rb +202 -0
  77. data/lib/faqieh/models/transcript_detail.rb +297 -0
  78. data/lib/faqieh/models/transcript_search_result.rb +396 -0
  79. data/lib/faqieh/models/transcript_segment.rb +222 -0
  80. data/lib/faqieh/models/transcript_summary.rb +226 -0
  81. data/lib/faqieh/version.rb +15 -0
  82. data/lib/faqieh.rb +75 -0
  83. data/spec/spec_helper.rb +111 -0
  84. metadata +191 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 76d61af0bb0822388d31388b6a208ddd8c89e9e115d7d47732d70d270b33e9c9
4
+ data.tar.gz: 78c7c849efe31d914999de85c959af7ac3cc61a52c372b33ad245cabbe0f9aa1
5
+ SHA512:
6
+ metadata.gz: d246206bb481ffd4920dde1a0fe263f1f15fc2915150884808841c3d8f8b2694ad72da6901afa542abea1069099d01cf360815460e3aab3ce0b5cc153f578252
7
+ data.tar.gz: 94573785e28cf4b1b37226d788e7a5f8a94bd96468f4fde5e4cb563974467c3352dd52a867c508fad8ccabf4bb796414a4cfc9db4bb9674e0f9d89d760196a81
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 13.0.1'
7
+ gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+ end
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 iEasyBooks
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,173 @@
1
+ # faqieh
2
+
3
+ Faqieh - the Ruby gem for the Faqieh Public API
4
+
5
+ Public, read-only JSON API for browsing Faqieh's catalog of speakers,
6
+ channels, playlists, media, and transcripts.
7
+
8
+ Resource responses are JSON wrapped in a `{ \"data\": ... }` envelope. Collections
9
+ additionally include a `pagination` object and RFC 5988 `Link` headers.
10
+ Transcript downloads return files, errors use an `{ \"error\": ... }` envelope,
11
+ and a PDF that is still being prepared returns a JSON `status` object.
12
+
13
+ No authentication is required. Requests are rate limited per IP address:
14
+ 300 per minute per controller (list/detail share an allowance), with these
15
+ additional operation limits:
16
+ - 60 searches per minute, shared across `/search`, catalog `q` searches,
17
+ transcript searches and the equivalent MCP tools.
18
+ - 60 paginated transcript reads per minute, shared with MCP `get_transcript`.
19
+ - 10 exports per minute, shared across `full=true` and TXT/SRT/PDF downloads,
20
+ regardless of media ID, language or format. With `q`, transcript search
21
+ takes precedence over `full=true` and uses the search/read allowances.
22
+ Rate-limit responses include `Retry-After: 60`.
23
+
24
+ ## Conventions
25
+ - **Pagination:** `?page=` and `?per_page=` (max 100). Search-mode
26
+ requests (any request with `q`) serve at most 100 pages: deeper
27
+ `page` values are clamped to 100, and `next_page` / `Link
28
+ rel=\"next\"` stop at that boundary. Iterate with `next_page` or the
29
+ `Link` header rather than a self-incremented counter.
30
+ - **Search:** `?q=` (minimum 3 characters) on each collection, plus the
31
+ cross-type `/search` endpoint.
32
+ - **Partial response:** `?fields=a,b` returns only the listed attributes
33
+ (`id` is always included).
34
+ - **Embedding:** `?embed=speakers,channels` inlines related resources.
35
+ - **Resource URLs:** `url` links to the localized Faqieh webpage for speakers,
36
+ channels, playlists, and media. Channels, playlists, and media also expose
37
+ `source_url` for the original source; it equals `url` when `platform` is
38
+ `faqieh`. Clients that used `url` for the source should use `source_url`.
39
+ Transcript summaries and details include the recording's webpage `url`;
40
+ transcript segments and transcript search hits include a timestamped `url`
41
+ pointing to the recording at the segment's start time.
42
+ - **Localization:** `?locale=ar|en` or the `Accept-Language` header
43
+ (default `ar`); affects labels and webpage URLs, not search relevance.
44
+
45
+
46
+ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
47
+
48
+ - API version: 1.0.0
49
+ - Package version: 0.0.1
50
+ - Generator version: 7.25.0
51
+ - Build package: org.openapitools.codegen.languages.RubyClientCodegen
52
+
53
+ ## Installation
54
+
55
+ ### Build a gem
56
+
57
+ To build the Ruby code into a gem:
58
+
59
+ ```shell
60
+ gem build faqieh.gemspec
61
+ ```
62
+
63
+ Then either install the gem locally:
64
+
65
+ ```shell
66
+ gem install ./faqieh-0.0.1.gem
67
+ ```
68
+
69
+ (for development, run `gem install --dev ./faqieh-0.0.1.gem` to install the development dependencies)
70
+
71
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
72
+
73
+ Finally add this to the Gemfile:
74
+
75
+ gem 'faqieh', '~> 0.0.1'
76
+
77
+ ### Install from Git
78
+
79
+ If the Ruby gem is hosted at a git repository: https://github.com/ieasybooks/faqieh-sdks, then add the following in the Gemfile:
80
+
81
+ gem 'faqieh', :git => 'https://github.com/ieasybooks/faqieh-sdks.git'
82
+
83
+ ### Include the Ruby code directly
84
+
85
+ Include the Ruby code directly using `-I` as follows:
86
+
87
+ ```shell
88
+ ruby -Ilib script.rb
89
+ ```
90
+
91
+ ## Getting Started
92
+
93
+ Please follow the [installation](#installation) procedure and then run the following code:
94
+
95
+ ```ruby
96
+ # Load the gem
97
+ require 'faqieh'
98
+
99
+ api_instance = Faqieh::ChannelsApi.new
100
+ id = 789 # Integer |
101
+ opts = {
102
+ fields: 'fields_example', # String | Comma-separated attribute whitelist; `id` is always included.
103
+ embed: 'embed_example', # String | Comma-separated associations to inline (e.g. `speakers,channels`).
104
+ locale: 'ar' # String |
105
+ }
106
+
107
+ begin
108
+ #Get a channel
109
+ result = api_instance.get_channel(id, opts)
110
+ p result
111
+ rescue Faqieh::ApiError => e
112
+ puts "Exception when calling ChannelsApi->get_channel: #{e}"
113
+ end
114
+
115
+ ```
116
+
117
+ ## Documentation for API Endpoints
118
+
119
+ All URIs are relative to *https://faqieh.com/api/v1*
120
+
121
+ Class | Method | HTTP request | Description
122
+ ------------ | ------------- | ------------- | -------------
123
+ *Faqieh::ChannelsApi* | [**get_channel**](docs/ChannelsApi.md#get_channel) | **GET** /channels/{id} | Get a channel
124
+ *Faqieh::ChannelsApi* | [**list_channels**](docs/ChannelsApi.md#list_channels) | **GET** /channels | List channels
125
+ *Faqieh::MediaApi* | [**get_medium**](docs/MediaApi.md#get_medium) | **GET** /media/{id} | Get a medium
126
+ *Faqieh::MediaApi* | [**list_media**](docs/MediaApi.md#list_media) | **GET** /media | List media
127
+ *Faqieh::PlaylistsApi* | [**get_playlist**](docs/PlaylistsApi.md#get_playlist) | **GET** /playlists/{id} | Get a playlist
128
+ *Faqieh::PlaylistsApi* | [**list_playlists**](docs/PlaylistsApi.md#list_playlists) | **GET** /playlists | List playlists
129
+ *Faqieh::SearchApi* | [**search**](docs/SearchApi.md#search) | **GET** /search | Cross-type search preview
130
+ *Faqieh::SpeakersApi* | [**get_speaker**](docs/SpeakersApi.md#get_speaker) | **GET** /speakers/{id} | Get a speaker
131
+ *Faqieh::SpeakersApi* | [**list_speakers**](docs/SpeakersApi.md#list_speakers) | **GET** /speakers | List speakers
132
+ *Faqieh::TranscriptsApi* | [**download_transcript**](docs/TranscriptsApi.md#download_transcript) | **GET** /media/{medium_id}/transcripts/{language}/download.{format} | Download a transcript as text, SRT, or PDF
133
+ *Faqieh::TranscriptsApi* | [**get_transcript**](docs/TranscriptsApi.md#get_transcript) | **GET** /media/{medium_id}/transcripts/{language} | Get a transcript with its segments
134
+ *Faqieh::TranscriptsApi* | [**list_transcripts**](docs/TranscriptsApi.md#list_transcripts) | **GET** /media/{medium_id}/transcripts | List a medium's transcripts
135
+
136
+
137
+ ## Documentation for Models
138
+
139
+ - [Faqieh::Channel](docs/Channel.md)
140
+ - [Faqieh::DownloadTranscript202Response](docs/DownloadTranscript202Response.md)
141
+ - [Faqieh::DownloadUrls](docs/DownloadUrls.md)
142
+ - [Faqieh::Error](docs/Error.md)
143
+ - [Faqieh::ErrorError](docs/ErrorError.md)
144
+ - [Faqieh::FacetOption](docs/FacetOption.md)
145
+ - [Faqieh::GetChannel200Response](docs/GetChannel200Response.md)
146
+ - [Faqieh::GetMedium200Response](docs/GetMedium200Response.md)
147
+ - [Faqieh::GetPlaylist200Response](docs/GetPlaylist200Response.md)
148
+ - [Faqieh::GetSpeaker200Response](docs/GetSpeaker200Response.md)
149
+ - [Faqieh::GetTranscript200Response](docs/GetTranscript200Response.md)
150
+ - [Faqieh::ListChannels200Response](docs/ListChannels200Response.md)
151
+ - [Faqieh::ListMedia200Response](docs/ListMedia200Response.md)
152
+ - [Faqieh::ListPlaylists200Response](docs/ListPlaylists200Response.md)
153
+ - [Faqieh::ListSpeakers200Response](docs/ListSpeakers200Response.md)
154
+ - [Faqieh::ListTranscripts200Response](docs/ListTranscripts200Response.md)
155
+ - [Faqieh::Medium](docs/Medium.md)
156
+ - [Faqieh::Pagination](docs/Pagination.md)
157
+ - [Faqieh::Platform](docs/Platform.md)
158
+ - [Faqieh::Playlist](docs/Playlist.md)
159
+ - [Faqieh::Search200Response](docs/Search200Response.md)
160
+ - [Faqieh::SearchSection](docs/SearchSection.md)
161
+ - [Faqieh::SearchSectionFacets](docs/SearchSectionFacets.md)
162
+ - [Faqieh::Speaker](docs/Speaker.md)
163
+ - [Faqieh::SpeakerCountriesInner](docs/SpeakerCountriesInner.md)
164
+ - [Faqieh::TranscriptDetail](docs/TranscriptDetail.md)
165
+ - [Faqieh::TranscriptSearchResult](docs/TranscriptSearchResult.md)
166
+ - [Faqieh::TranscriptSegment](docs/TranscriptSegment.md)
167
+ - [Faqieh::TranscriptSummary](docs/TranscriptSummary.md)
168
+
169
+
170
+ ## Documentation for Authorization
171
+
172
+ Endpoints do not require authorization.
173
+
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
data/docs/Channel.md ADDED
@@ -0,0 +1,50 @@
1
+ # Faqieh::Channel
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **Integer** | | |
8
+ | **name** | **String** | | [optional] |
9
+ | **description** | **String** | | [optional] |
10
+ | **platform** | [**Platform**](Platform.md) | | [optional] |
11
+ | **platform_id** | **String** | | [optional] |
12
+ | **source_available** | **Boolean** | | [optional] |
13
+ | **source_unavailable_at** | **Time** | | [optional] |
14
+ | **media_count** | **Integer** | | [optional] |
15
+ | **hours_count** | **Integer** | | [optional] |
16
+ | **playlists_count** | **Integer** | | [optional] |
17
+ | **speakers_count** | **Integer** | | [optional] |
18
+ | **platform_label** | **String** | | [optional] |
19
+ | **url** | **String** | Localized Faqieh webpage URL for this channel. | [optional] |
20
+ | **source_url** | **String** | Original source URL; equals url when platform is faqieh. | [optional] |
21
+ | **profile_urls** | **Hash<String, String>** | | [optional] |
22
+ | **cover_url** | **String** | | [optional] |
23
+ | **speakers** | [**Array<Speaker>**](Speaker.md) | | [optional] |
24
+
25
+ ## Example
26
+
27
+ ```ruby
28
+ require 'faqieh'
29
+
30
+ instance = Faqieh::Channel.new(
31
+ id: null,
32
+ name: null,
33
+ description: null,
34
+ platform: null,
35
+ platform_id: null,
36
+ source_available: null,
37
+ source_unavailable_at: null,
38
+ media_count: null,
39
+ hours_count: null,
40
+ playlists_count: null,
41
+ speakers_count: null,
42
+ platform_label: null,
43
+ url: null,
44
+ source_url: null,
45
+ profile_urls: null,
46
+ cover_url: null,
47
+ speakers: null
48
+ )
49
+ ```
50
+
@@ -0,0 +1,155 @@
1
+ # Faqieh::ChannelsApi
2
+
3
+ All URIs are relative to *https://faqieh.com/api/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_channel**](ChannelsApi.md#get_channel) | **GET** /channels/{id} | Get a channel |
8
+ | [**list_channels**](ChannelsApi.md#list_channels) | **GET** /channels | List channels |
9
+
10
+
11
+ ## get_channel
12
+
13
+ > <GetChannel200Response> get_channel(id, opts)
14
+
15
+ Get a channel
16
+
17
+ ### Examples
18
+
19
+ ```ruby
20
+ require 'time'
21
+ require 'faqieh'
22
+
23
+ api_instance = Faqieh::ChannelsApi.new
24
+ id = 789 # Integer |
25
+ opts = {
26
+ fields: 'fields_example', # String | Comma-separated attribute whitelist; `id` is always included.
27
+ embed: 'embed_example', # String | Comma-separated associations to inline (e.g. `speakers,channels`).
28
+ locale: 'ar' # String |
29
+ }
30
+
31
+ begin
32
+ # Get a channel
33
+ result = api_instance.get_channel(id, opts)
34
+ p result
35
+ rescue Faqieh::ApiError => e
36
+ puts "Error when calling ChannelsApi->get_channel: #{e}"
37
+ end
38
+ ```
39
+
40
+ #### Using the get_channel_with_http_info variant
41
+
42
+ This returns an Array which contains the response data, status code and headers.
43
+
44
+ > <Array(<GetChannel200Response>, Integer, Hash)> get_channel_with_http_info(id, opts)
45
+
46
+ ```ruby
47
+ begin
48
+ # Get a channel
49
+ data, status_code, headers = api_instance.get_channel_with_http_info(id, opts)
50
+ p status_code # => 2xx
51
+ p headers # => { ... }
52
+ p data # => <GetChannel200Response>
53
+ rescue Faqieh::ApiError => e
54
+ puts "Error when calling ChannelsApi->get_channel_with_http_info: #{e}"
55
+ end
56
+ ```
57
+
58
+ ### Parameters
59
+
60
+ | Name | Type | Description | Notes |
61
+ | ---- | ---- | ----------- | ----- |
62
+ | **id** | **Integer** | | |
63
+ | **fields** | **String** | Comma-separated attribute whitelist; &#x60;id&#x60; is always included. | [optional] |
64
+ | **embed** | **String** | Comma-separated associations to inline (e.g. &#x60;speakers,channels&#x60;). | [optional] |
65
+ | **locale** | **String** | | [optional] |
66
+
67
+ ### Return type
68
+
69
+ [**GetChannel200Response**](GetChannel200Response.md)
70
+
71
+ ### Authorization
72
+
73
+ No authorization required
74
+
75
+ ### HTTP request headers
76
+
77
+ - **Content-Type**: Not defined
78
+ - **Accept**: application/json
79
+
80
+
81
+ ## list_channels
82
+
83
+ > <ListChannels200Response> list_channels(opts)
84
+
85
+ List channels
86
+
87
+ ### Examples
88
+
89
+ ```ruby
90
+ require 'time'
91
+ require 'faqieh'
92
+
93
+ api_instance = Faqieh::ChannelsApi.new
94
+ opts = {
95
+ q: 'q_example', # String | Full-text query (minimum 3 searchable characters, maximum 500 characters including whitespace).
96
+ page: 789, # Integer | Page number. Search-mode requests (with `q`) are clamped to page 100; `current_page` in the response reflects the served page.
97
+ per_page: 789, # Integer |
98
+ fields: 'fields_example', # String | Comma-separated attribute whitelist; `id` is always included.
99
+ embed: 'embed_example', # String | Comma-separated associations to inline (e.g. `speakers,channels`).
100
+ locale: 'ar', # String |
101
+ include_empty: true # Boolean | Include speakers, channels, and playlists with no linked media. By default only records with media_count greater than zero are listed.
102
+ }
103
+
104
+ begin
105
+ # List channels
106
+ result = api_instance.list_channels(opts)
107
+ p result
108
+ rescue Faqieh::ApiError => e
109
+ puts "Error when calling ChannelsApi->list_channels: #{e}"
110
+ end
111
+ ```
112
+
113
+ #### Using the list_channels_with_http_info variant
114
+
115
+ This returns an Array which contains the response data, status code and headers.
116
+
117
+ > <Array(<ListChannels200Response>, Integer, Hash)> list_channels_with_http_info(opts)
118
+
119
+ ```ruby
120
+ begin
121
+ # List channels
122
+ data, status_code, headers = api_instance.list_channels_with_http_info(opts)
123
+ p status_code # => 2xx
124
+ p headers # => { ... }
125
+ p data # => <ListChannels200Response>
126
+ rescue Faqieh::ApiError => e
127
+ puts "Error when calling ChannelsApi->list_channels_with_http_info: #{e}"
128
+ end
129
+ ```
130
+
131
+ ### Parameters
132
+
133
+ | Name | Type | Description | Notes |
134
+ | ---- | ---- | ----------- | ----- |
135
+ | **q** | **String** | Full-text query (minimum 3 searchable characters, maximum 500 characters including whitespace). | [optional] |
136
+ | **page** | **Integer** | Page number. Search-mode requests (with &#x60;q&#x60;) are clamped to page 100; &#x60;current_page&#x60; in the response reflects the served page. | [optional] |
137
+ | **per_page** | **Integer** | | [optional][default to 10] |
138
+ | **fields** | **String** | Comma-separated attribute whitelist; &#x60;id&#x60; is always included. | [optional] |
139
+ | **embed** | **String** | Comma-separated associations to inline (e.g. &#x60;speakers,channels&#x60;). | [optional] |
140
+ | **locale** | **String** | | [optional] |
141
+ | **include_empty** | **Boolean** | Include speakers, channels, and playlists with no linked media. By default only records with media_count greater than zero are listed. | [optional] |
142
+
143
+ ### Return type
144
+
145
+ [**ListChannels200Response**](ListChannels200Response.md)
146
+
147
+ ### Authorization
148
+
149
+ No authorization required
150
+
151
+ ### HTTP request headers
152
+
153
+ - **Content-Type**: Not defined
154
+ - **Accept**: application/json
155
+
@@ -0,0 +1,18 @@
1
+ # Faqieh::DownloadTranscript202Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **status** | **String** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'faqieh'
13
+
14
+ instance = Faqieh::DownloadTranscript202Response.new(
15
+ status: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,22 @@
1
+ # Faqieh::DownloadUrls
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **txt** | **String** | | |
8
+ | **srt** | **String** | | |
9
+ | **pdf** | **String** | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'faqieh'
15
+
16
+ instance = Faqieh::DownloadUrls.new(
17
+ txt: null,
18
+ srt: null,
19
+ pdf: null
20
+ )
21
+ ```
22
+
data/docs/Error.md ADDED
@@ -0,0 +1,18 @@
1
+ # Faqieh::Error
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **error** | [**ErrorError**](ErrorError.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'faqieh'
13
+
14
+ instance = Faqieh::Error.new(
15
+ error: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,24 @@
1
+ # Faqieh::ErrorError
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **status** | **Integer** | | |
8
+ | **code** | **String** | | |
9
+ | **message** | **String** | | |
10
+ | **documentation_url** | **String** | Link to the API reference. | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'faqieh'
16
+
17
+ instance = Faqieh::ErrorError.new(
18
+ status: null,
19
+ code: null,
20
+ message: null,
21
+ documentation_url: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,22 @@
1
+ # Faqieh::FacetOption
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **Integer** | | |
8
+ | **name** | **String** | | |
9
+ | **count** | **Integer** | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'faqieh'
15
+
16
+ instance = Faqieh::FacetOption.new(
17
+ id: null,
18
+ name: null,
19
+ count: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,18 @@
1
+ # Faqieh::GetChannel200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Channel**](Channel.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'faqieh'
13
+
14
+ instance = Faqieh::GetChannel200Response.new(
15
+ data: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # Faqieh::GetMedium200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Medium**](Medium.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'faqieh'
13
+
14
+ instance = Faqieh::GetMedium200Response.new(
15
+ data: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # Faqieh::GetPlaylist200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Playlist**](Playlist.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'faqieh'
13
+
14
+ instance = Faqieh::GetPlaylist200Response.new(
15
+ data: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # Faqieh::GetSpeaker200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Speaker**](Speaker.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'faqieh'
13
+
14
+ instance = Faqieh::GetSpeaker200Response.new(
15
+ data: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,20 @@
1
+ # Faqieh::GetTranscript200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**TranscriptDetail**](TranscriptDetail.md) | | |
8
+ | **pagination** | [**Pagination**](Pagination.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'faqieh'
14
+
15
+ instance = Faqieh::GetTranscript200Response.new(
16
+ data: null,
17
+ pagination: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # Faqieh::ListChannels200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array&lt;Channel&gt;**](Channel.md) | | |
8
+ | **pagination** | [**Pagination**](Pagination.md) | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'faqieh'
14
+
15
+ instance = Faqieh::ListChannels200Response.new(
16
+ data: null,
17
+ pagination: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # Faqieh::ListMedia200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array&lt;Medium&gt;**](Medium.md) | | |
8
+ | **pagination** | [**Pagination**](Pagination.md) | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'faqieh'
14
+
15
+ instance = Faqieh::ListMedia200Response.new(
16
+ data: null,
17
+ pagination: null
18
+ )
19
+ ```
20
+