You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# @attr [Array<String>] available_markets A list of the countries in which the show can be played, identified by their ISO 3166-1 alpha-2 code.
4
+
# @attr [Array<Hash>] copyrights The copyright statements of the show.
5
+
# @attr [String] description A description of the show. HTML tags are stripped away from this field, use html_description field in case HTML tags are needed.
6
+
# @attr [Boolean] explicit Whether or not the show has explicit content (true = yes it does; false = no it does not OR unknown).
7
+
# @attr [String] html_description A description of the show. This field may contain HTML tags.
8
+
# @attr [Array<Hash>] images The cover art for the show in various sizes, widest first.
9
+
# @attr [Boolean] is_externally_hosted True if all of the show’s episodes are hosted outside of Spotify’s CDN. This field might be null in some cases.
10
+
# @attr [Array<String>] languages A list of the languages used in the show, identified by their ISO 639 code.
11
+
# @attr [String] media_type The media type of the show.
12
+
# @attr [String] name The name of the show.
13
+
# @attr [String] publisher The publisher of the show.
14
+
classShow < Base
15
+
16
+
# Returns Show object(s) with id(s) provided
17
+
#
18
+
# @param id [String, Array] Maximum: 50 IDs
19
+
# @param market [String] An {https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 ISO 3166-1 alpha-2 country code}.
20
+
# @return [Show, Array<Show>]
21
+
#
22
+
# @example
23
+
# show = RSpotify::Show.find('3Z6JdCS2d0eFEpXHKI6WqH')
24
+
# show.class #=> RSpotify::Show
25
+
# show.name #=> "Consider This from NPR"
26
+
defself.find(ids,market: nil)
27
+
super(ids,'show',market: market)
28
+
end
29
+
30
+
# Returns array of Show objects matching the query. It's also possible to find the total number of search results for the query
31
+
#
32
+
# @param query [String] The search query's keywords. See the q description in {https://developer.spotify.com/web-api/search-item here} for details.
33
+
# @param limit [Integer] Maximum number of shows to return. Maximum: 50. Default: 20.
34
+
# @param offset [Integer] The index of the first show to return. Use with limit to get the next set of shows. Default: 0.
35
+
# @param market [String] An {https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 ISO 3166-1 alpha-2 country code}.
expect(@show.description).toeq'Candid conversations with entrepreneurs, artists, athletes, visionaries of all kinds—about their successes, and their failures, and what they learned from both. Hosted by Alex Blumberg, from Gimlet Media.'
15
+
expect(@show.explicit).toeqtrue
16
+
expect(@show.html_description).toeq'<p>Candid conversations with entrepreneurs, artists, athletes, visionaries of all kinds—about their successes, and their failures, and what they learned from both. Hosted by Alex Blumberg, from Gimlet Media.</p>'
0 commit comments