Class: Spotted::Resources::Shows
- Inherits:
-
Object
- Object
- Spotted::Resources::Shows
- Defined in:
- lib/spotted/resources/shows.rb
Instance Method Summary collapse
-
#bulk_retrieve(ids:, market: nil, request_options: {}) ⇒ Spotted::Models::ShowBulkRetrieveResponse
Some parameter documentations has been truncated, see Models::ShowBulkRetrieveParams for more details.
-
#initialize(client:) ⇒ Shows
constructor
private
A new instance of Shows.
-
#list_episodes(id, limit: nil, market: nil, offset: nil, request_options: {}) ⇒ Spotted::Internal::CursorURLPage<Spotted::Models::SimplifiedEpisodeObject>
Some parameter documentations has been truncated, see Models::ShowListEpisodesParams for more details.
-
#retrieve(id, market: nil, request_options: {}) ⇒ Spotted::Models::ShowRetrieveResponse
Some parameter documentations has been truncated, see Models::ShowRetrieveParams for more details.
Constructor Details
#initialize(client:) ⇒ Shows
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Shows.
97 98 99 |
# File 'lib/spotted/resources/shows.rb', line 97 def initialize(client:) @client = client end |
Instance Method Details
#bulk_retrieve(ids:, market: nil, request_options: {}) ⇒ Spotted::Models::ShowBulkRetrieveResponse
Some parameter documentations has been truncated, see Models::ShowBulkRetrieveParams for more details.
Get Spotify catalog information for several shows based on their Spotify IDs.
50 51 52 53 54 55 56 57 58 59 |
# File 'lib/spotted/resources/shows.rb', line 50 def bulk_retrieve(params) parsed, = Spotted::ShowBulkRetrieveParams.dump_request(params) @client.request( method: :get, path: "shows", query: parsed, model: Spotted::Models::ShowBulkRetrieveResponse, options: ) end |
#list_episodes(id, limit: nil, market: nil, offset: nil, request_options: {}) ⇒ Spotted::Internal::CursorURLPage<Spotted::Models::SimplifiedEpisodeObject>
Some parameter documentations has been truncated, see Models::ShowListEpisodesParams for more details.
Get Spotify catalog information about an show’s episodes. Optional parameters can be used to limit the number of episodes returned.
82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/spotted/resources/shows.rb', line 82 def list_episodes(id, params = {}) parsed, = Spotted::ShowListEpisodesParams.dump_request(params) @client.request( method: :get, path: ["shows/%1$s/episodes", id], query: parsed, page: Spotted::Internal::CursorURLPage, model: Spotted::SimplifiedEpisodeObject, options: ) end |
#retrieve(id, market: nil, request_options: {}) ⇒ Spotted::Models::ShowRetrieveResponse
Some parameter documentations has been truncated, see Models::ShowRetrieveParams for more details.
Get Spotify catalog information for a single show identified by its unique Spotify ID.
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/spotted/resources/shows.rb', line 23 def retrieve(id, params = {}) parsed, = Spotted::ShowRetrieveParams.dump_request(params) @client.request( method: :get, path: ["shows/%1$s", id], query: parsed, model: Spotted::Models::ShowRetrieveResponse, options: ) end |