spotted 0.1.0 → 0.2.0
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/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/spotted/models/audiobook_base.rb +182 -0
- data/lib/spotted/models/audiobook_list_response.rb +2 -174
- data/lib/spotted/models/audiobook_retrieve_response.rb +2 -174
- data/lib/spotted/models/chapter_list_response.rb +3 -183
- data/lib/spotted/models/chapter_retrieve_response.rb +3 -183
- data/lib/spotted/models/episode_object.rb +3 -166
- data/lib/spotted/models/me/audiobook_list_response.rb +2 -174
- data/lib/spotted/models/me/show_list_response.rb +3 -166
- data/lib/spotted/models/search_retrieve_response.rb +6 -345
- data/lib/spotted/models/show_base.rb +165 -0
- data/lib/spotted/models/show_list_response.rb +3 -163
- data/lib/spotted/models/show_retrieve_response.rb +2 -157
- data/lib/spotted/models.rb +4 -0
- data/lib/spotted/version.rb +1 -1
- data/lib/spotted.rb +2 -0
- data/rbi/spotted/models/audiobook_base.rbi +219 -0
- data/rbi/spotted/models/audiobook_list_response.rbi +4 -212
- data/rbi/spotted/models/audiobook_retrieve_response.rbi +4 -209
- data/rbi/spotted/models/chapter_list_response.rbi +4 -249
- data/rbi/spotted/models/chapter_retrieve_response.rbi +4 -245
- data/rbi/spotted/models/episode_object.rbi +4 -199
- data/rbi/spotted/models/me/audiobook_list_response.rbi +4 -212
- data/rbi/spotted/models/me/show_list_response.rbi +6 -227
- data/rbi/spotted/models/search_retrieve_response.rbi +6 -473
- data/rbi/spotted/models/show_base.rbi +194 -0
- data/rbi/spotted/models/show_list_response.rbi +5 -216
- data/rbi/spotted/models/show_retrieve_response.rbi +4 -182
- data/rbi/spotted/models.rbi +4 -0
- data/sig/spotted/models/audiobook_base.rbs +122 -0
- data/sig/spotted/models/audiobook_list_response.rbs +8 -111
- data/sig/spotted/models/audiobook_retrieve_response.rbs +8 -113
- data/sig/spotted/models/chapter_list_response.rbs +4 -123
- data/sig/spotted/models/chapter_retrieve_response.rbs +4 -123
- data/sig/spotted/models/episode_object.rbs +4 -111
- data/sig/spotted/models/me/audiobook_list_response.rbs +8 -111
- data/sig/spotted/models/me/show_list_response.rbs +5 -121
- data/sig/spotted/models/search_retrieve_response.rbs +8 -234
- data/sig/spotted/models/show_base.rbs +110 -0
- data/sig/spotted/models/show_list_response.rbs +4 -116
- data/sig/spotted/models/show_retrieve_response.rbs +8 -101
- data/sig/spotted/models.rbs +4 -0
- metadata +7 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 91530c48ebb30c600d7d752cd7bd8af576c61ecbf7fc96e75e711bdd6c0140ae
|
|
4
|
+
data.tar.gz: 490542cb593197ae9b549cf1d90aa86f92a7dde031f98674d7cf0e8e729115e3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5a6b5967c6a30d9087ef75f03a3bf79fe668e6499488c23ef43d508ea179882025b71e9b442d98fdea7fb3c22e8ca97d2cce542f5a5fe2236c6ac81c65f7334a
|
|
7
|
+
data.tar.gz: 8fcfd021416b668b3de6b3311a7ad456ce0279d4f696cd391450702959003fcb95a9f27ba2d804eb6c3f7aa13937a12ad056db410dd87e3f172b880a63323d1f
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.0 (2025-10-24)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0...v0.2.0](https://github.com/cjavdev/spotted/compare/v0.1.0...v0.2.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([1dd209e](https://github.com/cjavdev/spotted/commit/1dd209e8c3d1f609d7d3cee090e0663a3c790a02))
|
|
10
|
+
|
|
3
11
|
## 0.1.0 (2025-10-24)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.0.1...v0.1.0](https://github.com/cjavdev/spotted/compare/v0.0.1...v0.1.0)
|
data/README.md
CHANGED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Spotted
|
|
4
|
+
module Models
|
|
5
|
+
class AudiobookBase < Spotted::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id
|
|
7
|
+
# The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
8
|
+
# audiobook.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute authors
|
|
14
|
+
# The author(s) for the audiobook.
|
|
15
|
+
#
|
|
16
|
+
# @return [Array<Spotted::Models::AuthorObject>]
|
|
17
|
+
required :authors, -> { Spotted::Internal::Type::ArrayOf[Spotted::AuthorObject] }
|
|
18
|
+
|
|
19
|
+
# @!attribute available_markets
|
|
20
|
+
# A list of the countries in which the audiobook can be played, identified by
|
|
21
|
+
# their [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
|
|
22
|
+
# code.
|
|
23
|
+
#
|
|
24
|
+
# @return [Array<String>]
|
|
25
|
+
required :available_markets, Spotted::Internal::Type::ArrayOf[String]
|
|
26
|
+
|
|
27
|
+
# @!attribute copyrights
|
|
28
|
+
# The copyright statements of the audiobook.
|
|
29
|
+
#
|
|
30
|
+
# @return [Array<Spotted::Models::CopyrightObject>]
|
|
31
|
+
required :copyrights, -> { Spotted::Internal::Type::ArrayOf[Spotted::CopyrightObject] }
|
|
32
|
+
|
|
33
|
+
# @!attribute description
|
|
34
|
+
# A description of the audiobook. HTML tags are stripped away from this field, use
|
|
35
|
+
# `html_description` field in case HTML tags are needed.
|
|
36
|
+
#
|
|
37
|
+
# @return [String]
|
|
38
|
+
required :description, String
|
|
39
|
+
|
|
40
|
+
# @!attribute explicit
|
|
41
|
+
# Whether or not the audiobook has explicit content (true = yes it does; false =
|
|
42
|
+
# no it does not OR unknown).
|
|
43
|
+
#
|
|
44
|
+
# @return [Boolean]
|
|
45
|
+
required :explicit, Spotted::Internal::Type::Boolean
|
|
46
|
+
|
|
47
|
+
# @!attribute external_urls
|
|
48
|
+
# External URLs for this audiobook.
|
|
49
|
+
#
|
|
50
|
+
# @return [Spotted::Models::ExternalURLObject]
|
|
51
|
+
required :external_urls, -> { Spotted::ExternalURLObject }
|
|
52
|
+
|
|
53
|
+
# @!attribute href
|
|
54
|
+
# A link to the Web API endpoint providing full details of the audiobook.
|
|
55
|
+
#
|
|
56
|
+
# @return [String]
|
|
57
|
+
required :href, String
|
|
58
|
+
|
|
59
|
+
# @!attribute html_description
|
|
60
|
+
# A description of the audiobook. This field may contain HTML tags.
|
|
61
|
+
#
|
|
62
|
+
# @return [String]
|
|
63
|
+
required :html_description, String
|
|
64
|
+
|
|
65
|
+
# @!attribute images
|
|
66
|
+
# The cover art for the audiobook in various sizes, widest first.
|
|
67
|
+
#
|
|
68
|
+
# @return [Array<Spotted::Models::ImageObject>]
|
|
69
|
+
required :images, -> { Spotted::Internal::Type::ArrayOf[Spotted::ImageObject] }
|
|
70
|
+
|
|
71
|
+
# @!attribute languages
|
|
72
|
+
# A list of the languages used in the audiobook, identified by their
|
|
73
|
+
# [ISO 639](https://en.wikipedia.org/wiki/ISO_639) code.
|
|
74
|
+
#
|
|
75
|
+
# @return [Array<String>]
|
|
76
|
+
required :languages, Spotted::Internal::Type::ArrayOf[String]
|
|
77
|
+
|
|
78
|
+
# @!attribute media_type
|
|
79
|
+
# The media type of the audiobook.
|
|
80
|
+
#
|
|
81
|
+
# @return [String]
|
|
82
|
+
required :media_type, String
|
|
83
|
+
|
|
84
|
+
# @!attribute name
|
|
85
|
+
# The name of the audiobook.
|
|
86
|
+
#
|
|
87
|
+
# @return [String]
|
|
88
|
+
required :name, String
|
|
89
|
+
|
|
90
|
+
# @!attribute narrators
|
|
91
|
+
# The narrator(s) for the audiobook.
|
|
92
|
+
#
|
|
93
|
+
# @return [Array<Spotted::Models::NarratorObject>]
|
|
94
|
+
required :narrators, -> { Spotted::Internal::Type::ArrayOf[Spotted::NarratorObject] }
|
|
95
|
+
|
|
96
|
+
# @!attribute publisher
|
|
97
|
+
# The publisher of the audiobook.
|
|
98
|
+
#
|
|
99
|
+
# @return [String]
|
|
100
|
+
required :publisher, String
|
|
101
|
+
|
|
102
|
+
# @!attribute total_chapters
|
|
103
|
+
# The number of chapters in this audiobook.
|
|
104
|
+
#
|
|
105
|
+
# @return [Integer]
|
|
106
|
+
required :total_chapters, Integer
|
|
107
|
+
|
|
108
|
+
# @!attribute type
|
|
109
|
+
# The object type.
|
|
110
|
+
#
|
|
111
|
+
# @return [Symbol, Spotted::Models::AudiobookBase::Type]
|
|
112
|
+
required :type, enum: -> { Spotted::AudiobookBase::Type }
|
|
113
|
+
|
|
114
|
+
# @!attribute uri
|
|
115
|
+
# The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
116
|
+
# audiobook.
|
|
117
|
+
#
|
|
118
|
+
# @return [String]
|
|
119
|
+
required :uri, String
|
|
120
|
+
|
|
121
|
+
# @!attribute edition
|
|
122
|
+
# The edition of the audiobook.
|
|
123
|
+
#
|
|
124
|
+
# @return [String, nil]
|
|
125
|
+
optional :edition, String
|
|
126
|
+
|
|
127
|
+
# @!method initialize(id:, authors:, available_markets:, copyrights:, description:, explicit:, external_urls:, href:, html_description:, images:, languages:, media_type:, name:, narrators:, publisher:, total_chapters:, type:, uri:, edition: nil)
|
|
128
|
+
# Some parameter documentations has been truncated, see
|
|
129
|
+
# {Spotted::Models::AudiobookBase} for more details.
|
|
130
|
+
#
|
|
131
|
+
# @param id [String] The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the audio
|
|
132
|
+
#
|
|
133
|
+
# @param authors [Array<Spotted::Models::AuthorObject>] The author(s) for the audiobook.
|
|
134
|
+
#
|
|
135
|
+
# @param available_markets [Array<String>] A list of the countries in which the audiobook can be played, identified by thei
|
|
136
|
+
#
|
|
137
|
+
# @param copyrights [Array<Spotted::Models::CopyrightObject>] The copyright statements of the audiobook.
|
|
138
|
+
#
|
|
139
|
+
# @param description [String] A description of the audiobook. HTML tags are stripped away from this field, use
|
|
140
|
+
#
|
|
141
|
+
# @param explicit [Boolean] Whether or not the audiobook has explicit content (true = yes it does; false = n
|
|
142
|
+
#
|
|
143
|
+
# @param external_urls [Spotted::Models::ExternalURLObject] External URLs for this audiobook.
|
|
144
|
+
#
|
|
145
|
+
# @param href [String] A link to the Web API endpoint providing full details of the audiobook.
|
|
146
|
+
#
|
|
147
|
+
# @param html_description [String] A description of the audiobook. This field may contain HTML tags.
|
|
148
|
+
#
|
|
149
|
+
# @param images [Array<Spotted::Models::ImageObject>] The cover art for the audiobook in various sizes, widest first.
|
|
150
|
+
#
|
|
151
|
+
# @param languages [Array<String>] A list of the languages used in the audiobook, identified by their [ISO 639](htt
|
|
152
|
+
#
|
|
153
|
+
# @param media_type [String] The media type of the audiobook.
|
|
154
|
+
#
|
|
155
|
+
# @param name [String] The name of the audiobook.
|
|
156
|
+
#
|
|
157
|
+
# @param narrators [Array<Spotted::Models::NarratorObject>] The narrator(s) for the audiobook.
|
|
158
|
+
#
|
|
159
|
+
# @param publisher [String] The publisher of the audiobook.
|
|
160
|
+
#
|
|
161
|
+
# @param total_chapters [Integer] The number of chapters in this audiobook.
|
|
162
|
+
#
|
|
163
|
+
# @param type [Symbol, Spotted::Models::AudiobookBase::Type] The object type.
|
|
164
|
+
#
|
|
165
|
+
# @param uri [String] The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the audi
|
|
166
|
+
#
|
|
167
|
+
# @param edition [String] The edition of the audiobook.
|
|
168
|
+
|
|
169
|
+
# The object type.
|
|
170
|
+
#
|
|
171
|
+
# @see Spotted::Models::AudiobookBase#type
|
|
172
|
+
module Type
|
|
173
|
+
extend Spotted::Internal::Type::Enum
|
|
174
|
+
|
|
175
|
+
AUDIOBOOK = :audiobook
|
|
176
|
+
|
|
177
|
+
# @!method self.values
|
|
178
|
+
# @return [Array<Symbol>]
|
|
179
|
+
end
|
|
180
|
+
end
|
|
181
|
+
end
|
|
182
|
+
end
|
|
@@ -13,179 +13,19 @@ module Spotted
|
|
|
13
13
|
# @!method initialize(audiobooks:)
|
|
14
14
|
# @param audiobooks [Array<Spotted::Models::AudiobookListResponse::Audiobook>]
|
|
15
15
|
|
|
16
|
-
class Audiobook < Spotted::
|
|
17
|
-
# @!attribute id
|
|
18
|
-
# The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
19
|
-
# audiobook.
|
|
20
|
-
#
|
|
21
|
-
# @return [String]
|
|
22
|
-
required :id, String
|
|
23
|
-
|
|
24
|
-
# @!attribute authors
|
|
25
|
-
# The author(s) for the audiobook.
|
|
26
|
-
#
|
|
27
|
-
# @return [Array<Spotted::Models::AuthorObject>]
|
|
28
|
-
required :authors, -> { Spotted::Internal::Type::ArrayOf[Spotted::AuthorObject] }
|
|
29
|
-
|
|
30
|
-
# @!attribute available_markets
|
|
31
|
-
# A list of the countries in which the audiobook can be played, identified by
|
|
32
|
-
# their [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
|
|
33
|
-
# code.
|
|
34
|
-
#
|
|
35
|
-
# @return [Array<String>]
|
|
36
|
-
required :available_markets, Spotted::Internal::Type::ArrayOf[String]
|
|
37
|
-
|
|
16
|
+
class Audiobook < Spotted::Models::AudiobookBase
|
|
38
17
|
# @!attribute chapters
|
|
39
18
|
# The chapters of the audiobook.
|
|
40
19
|
#
|
|
41
20
|
# @return [Spotted::Models::AudiobookListResponse::Audiobook::Chapters]
|
|
42
21
|
required :chapters, -> { Spotted::Models::AudiobookListResponse::Audiobook::Chapters }
|
|
43
22
|
|
|
44
|
-
# @!
|
|
45
|
-
# The copyright statements of the audiobook.
|
|
46
|
-
#
|
|
47
|
-
# @return [Array<Spotted::Models::CopyrightObject>]
|
|
48
|
-
required :copyrights, -> { Spotted::Internal::Type::ArrayOf[Spotted::CopyrightObject] }
|
|
49
|
-
|
|
50
|
-
# @!attribute description
|
|
51
|
-
# A description of the audiobook. HTML tags are stripped away from this field, use
|
|
52
|
-
# `html_description` field in case HTML tags are needed.
|
|
53
|
-
#
|
|
54
|
-
# @return [String]
|
|
55
|
-
required :description, String
|
|
56
|
-
|
|
57
|
-
# @!attribute explicit
|
|
58
|
-
# Whether or not the audiobook has explicit content (true = yes it does; false =
|
|
59
|
-
# no it does not OR unknown).
|
|
60
|
-
#
|
|
61
|
-
# @return [Boolean]
|
|
62
|
-
required :explicit, Spotted::Internal::Type::Boolean
|
|
63
|
-
|
|
64
|
-
# @!attribute external_urls
|
|
65
|
-
# External URLs for this audiobook.
|
|
66
|
-
#
|
|
67
|
-
# @return [Spotted::Models::ExternalURLObject]
|
|
68
|
-
required :external_urls, -> { Spotted::ExternalURLObject }
|
|
69
|
-
|
|
70
|
-
# @!attribute href
|
|
71
|
-
# A link to the Web API endpoint providing full details of the audiobook.
|
|
72
|
-
#
|
|
73
|
-
# @return [String]
|
|
74
|
-
required :href, String
|
|
75
|
-
|
|
76
|
-
# @!attribute html_description
|
|
77
|
-
# A description of the audiobook. This field may contain HTML tags.
|
|
78
|
-
#
|
|
79
|
-
# @return [String]
|
|
80
|
-
required :html_description, String
|
|
81
|
-
|
|
82
|
-
# @!attribute images
|
|
83
|
-
# The cover art for the audiobook in various sizes, widest first.
|
|
84
|
-
#
|
|
85
|
-
# @return [Array<Spotted::Models::ImageObject>]
|
|
86
|
-
required :images, -> { Spotted::Internal::Type::ArrayOf[Spotted::ImageObject] }
|
|
87
|
-
|
|
88
|
-
# @!attribute languages
|
|
89
|
-
# A list of the languages used in the audiobook, identified by their
|
|
90
|
-
# [ISO 639](https://en.wikipedia.org/wiki/ISO_639) code.
|
|
91
|
-
#
|
|
92
|
-
# @return [Array<String>]
|
|
93
|
-
required :languages, Spotted::Internal::Type::ArrayOf[String]
|
|
94
|
-
|
|
95
|
-
# @!attribute media_type
|
|
96
|
-
# The media type of the audiobook.
|
|
97
|
-
#
|
|
98
|
-
# @return [String]
|
|
99
|
-
required :media_type, String
|
|
100
|
-
|
|
101
|
-
# @!attribute name
|
|
102
|
-
# The name of the audiobook.
|
|
103
|
-
#
|
|
104
|
-
# @return [String]
|
|
105
|
-
required :name, String
|
|
106
|
-
|
|
107
|
-
# @!attribute narrators
|
|
108
|
-
# The narrator(s) for the audiobook.
|
|
109
|
-
#
|
|
110
|
-
# @return [Array<Spotted::Models::NarratorObject>]
|
|
111
|
-
required :narrators, -> { Spotted::Internal::Type::ArrayOf[Spotted::NarratorObject] }
|
|
112
|
-
|
|
113
|
-
# @!attribute publisher
|
|
114
|
-
# The publisher of the audiobook.
|
|
115
|
-
#
|
|
116
|
-
# @return [String]
|
|
117
|
-
required :publisher, String
|
|
118
|
-
|
|
119
|
-
# @!attribute total_chapters
|
|
120
|
-
# The number of chapters in this audiobook.
|
|
121
|
-
#
|
|
122
|
-
# @return [Integer]
|
|
123
|
-
required :total_chapters, Integer
|
|
124
|
-
|
|
125
|
-
# @!attribute type
|
|
126
|
-
# The object type.
|
|
127
|
-
#
|
|
128
|
-
# @return [Symbol, Spotted::Models::AudiobookListResponse::Audiobook::Type]
|
|
129
|
-
required :type, enum: -> { Spotted::Models::AudiobookListResponse::Audiobook::Type }
|
|
130
|
-
|
|
131
|
-
# @!attribute uri
|
|
132
|
-
# The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
133
|
-
# audiobook.
|
|
134
|
-
#
|
|
135
|
-
# @return [String]
|
|
136
|
-
required :uri, String
|
|
137
|
-
|
|
138
|
-
# @!attribute edition
|
|
139
|
-
# The edition of the audiobook.
|
|
140
|
-
#
|
|
141
|
-
# @return [String, nil]
|
|
142
|
-
optional :edition, String
|
|
143
|
-
|
|
144
|
-
# @!method initialize(id:, authors:, available_markets:, chapters:, copyrights:, description:, explicit:, external_urls:, href:, html_description:, images:, languages:, media_type:, name:, narrators:, publisher:, total_chapters:, type:, uri:, edition: nil)
|
|
23
|
+
# @!method initialize(chapters:)
|
|
145
24
|
# Some parameter documentations has been truncated, see
|
|
146
25
|
# {Spotted::Models::AudiobookListResponse::Audiobook} for more details.
|
|
147
26
|
#
|
|
148
|
-
# @param id [String] The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the audio
|
|
149
|
-
#
|
|
150
|
-
# @param authors [Array<Spotted::Models::AuthorObject>] The author(s) for the audiobook.
|
|
151
|
-
#
|
|
152
|
-
# @param available_markets [Array<String>] A list of the countries in which the audiobook can be played, identified by thei
|
|
153
|
-
#
|
|
154
27
|
# @param chapters [Spotted::Models::AudiobookListResponse::Audiobook::Chapters] The chapters of the audiobook.
|
|
155
|
-
#
|
|
156
|
-
# @param copyrights [Array<Spotted::Models::CopyrightObject>] The copyright statements of the audiobook.
|
|
157
|
-
#
|
|
158
|
-
# @param description [String] A description of the audiobook. HTML tags are stripped away from this field, use
|
|
159
|
-
#
|
|
160
|
-
# @param explicit [Boolean] Whether or not the audiobook has explicit content (true = yes it does; false = n
|
|
161
|
-
#
|
|
162
|
-
# @param external_urls [Spotted::Models::ExternalURLObject] External URLs for this audiobook.
|
|
163
|
-
#
|
|
164
|
-
# @param href [String] A link to the Web API endpoint providing full details of the audiobook.
|
|
165
|
-
#
|
|
166
|
-
# @param html_description [String] A description of the audiobook. This field may contain HTML tags.
|
|
167
|
-
#
|
|
168
|
-
# @param images [Array<Spotted::Models::ImageObject>] The cover art for the audiobook in various sizes, widest first.
|
|
169
|
-
#
|
|
170
|
-
# @param languages [Array<String>] A list of the languages used in the audiobook, identified by their [ISO 639](htt
|
|
171
|
-
#
|
|
172
|
-
# @param media_type [String] The media type of the audiobook.
|
|
173
|
-
#
|
|
174
|
-
# @param name [String] The name of the audiobook.
|
|
175
|
-
#
|
|
176
|
-
# @param narrators [Array<Spotted::Models::NarratorObject>] The narrator(s) for the audiobook.
|
|
177
|
-
#
|
|
178
|
-
# @param publisher [String] The publisher of the audiobook.
|
|
179
|
-
#
|
|
180
|
-
# @param total_chapters [Integer] The number of chapters in this audiobook.
|
|
181
|
-
#
|
|
182
|
-
# @param type [Symbol, Spotted::Models::AudiobookListResponse::Audiobook::Type] The object type.
|
|
183
|
-
#
|
|
184
|
-
# @param uri [String] The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the audi
|
|
185
|
-
#
|
|
186
|
-
# @param edition [String] The edition of the audiobook.
|
|
187
28
|
|
|
188
|
-
# @see Spotted::Models::AudiobookListResponse::Audiobook#chapters
|
|
189
29
|
class Chapters < Spotted::Internal::Type::BaseModel
|
|
190
30
|
# @!attribute href
|
|
191
31
|
# A link to the Web API endpoint returning the full result of the request
|
|
@@ -248,18 +88,6 @@ module Spotted
|
|
|
248
88
|
#
|
|
249
89
|
# @param total [Integer] The total number of items available to return.
|
|
250
90
|
end
|
|
251
|
-
|
|
252
|
-
# The object type.
|
|
253
|
-
#
|
|
254
|
-
# @see Spotted::Models::AudiobookListResponse::Audiobook#type
|
|
255
|
-
module Type
|
|
256
|
-
extend Spotted::Internal::Type::Enum
|
|
257
|
-
|
|
258
|
-
AUDIOBOOK = :audiobook
|
|
259
|
-
|
|
260
|
-
# @!method self.values
|
|
261
|
-
# @return [Array<Symbol>]
|
|
262
|
-
end
|
|
263
91
|
end
|
|
264
92
|
end
|
|
265
93
|
end
|
|
@@ -3,179 +3,19 @@
|
|
|
3
3
|
module Spotted
|
|
4
4
|
module Models
|
|
5
5
|
# @see Spotted::Resources::Audiobooks#retrieve
|
|
6
|
-
class AudiobookRetrieveResponse < Spotted::
|
|
7
|
-
# @!attribute id
|
|
8
|
-
# The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
9
|
-
# audiobook.
|
|
10
|
-
#
|
|
11
|
-
# @return [String]
|
|
12
|
-
required :id, String
|
|
13
|
-
|
|
14
|
-
# @!attribute authors
|
|
15
|
-
# The author(s) for the audiobook.
|
|
16
|
-
#
|
|
17
|
-
# @return [Array<Spotted::Models::AuthorObject>]
|
|
18
|
-
required :authors, -> { Spotted::Internal::Type::ArrayOf[Spotted::AuthorObject] }
|
|
19
|
-
|
|
20
|
-
# @!attribute available_markets
|
|
21
|
-
# A list of the countries in which the audiobook can be played, identified by
|
|
22
|
-
# their [ISO 3166-1 alpha-2](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
|
|
23
|
-
# code.
|
|
24
|
-
#
|
|
25
|
-
# @return [Array<String>]
|
|
26
|
-
required :available_markets, Spotted::Internal::Type::ArrayOf[String]
|
|
27
|
-
|
|
6
|
+
class AudiobookRetrieveResponse < Spotted::Models::AudiobookBase
|
|
28
7
|
# @!attribute chapters
|
|
29
8
|
# The chapters of the audiobook.
|
|
30
9
|
#
|
|
31
10
|
# @return [Spotted::Models::AudiobookRetrieveResponse::Chapters]
|
|
32
11
|
required :chapters, -> { Spotted::Models::AudiobookRetrieveResponse::Chapters }
|
|
33
12
|
|
|
34
|
-
# @!
|
|
35
|
-
# The copyright statements of the audiobook.
|
|
36
|
-
#
|
|
37
|
-
# @return [Array<Spotted::Models::CopyrightObject>]
|
|
38
|
-
required :copyrights, -> { Spotted::Internal::Type::ArrayOf[Spotted::CopyrightObject] }
|
|
39
|
-
|
|
40
|
-
# @!attribute description
|
|
41
|
-
# A description of the audiobook. HTML tags are stripped away from this field, use
|
|
42
|
-
# `html_description` field in case HTML tags are needed.
|
|
43
|
-
#
|
|
44
|
-
# @return [String]
|
|
45
|
-
required :description, String
|
|
46
|
-
|
|
47
|
-
# @!attribute explicit
|
|
48
|
-
# Whether or not the audiobook has explicit content (true = yes it does; false =
|
|
49
|
-
# no it does not OR unknown).
|
|
50
|
-
#
|
|
51
|
-
# @return [Boolean]
|
|
52
|
-
required :explicit, Spotted::Internal::Type::Boolean
|
|
53
|
-
|
|
54
|
-
# @!attribute external_urls
|
|
55
|
-
# External URLs for this audiobook.
|
|
56
|
-
#
|
|
57
|
-
# @return [Spotted::Models::ExternalURLObject]
|
|
58
|
-
required :external_urls, -> { Spotted::ExternalURLObject }
|
|
59
|
-
|
|
60
|
-
# @!attribute href
|
|
61
|
-
# A link to the Web API endpoint providing full details of the audiobook.
|
|
62
|
-
#
|
|
63
|
-
# @return [String]
|
|
64
|
-
required :href, String
|
|
65
|
-
|
|
66
|
-
# @!attribute html_description
|
|
67
|
-
# A description of the audiobook. This field may contain HTML tags.
|
|
68
|
-
#
|
|
69
|
-
# @return [String]
|
|
70
|
-
required :html_description, String
|
|
71
|
-
|
|
72
|
-
# @!attribute images
|
|
73
|
-
# The cover art for the audiobook in various sizes, widest first.
|
|
74
|
-
#
|
|
75
|
-
# @return [Array<Spotted::Models::ImageObject>]
|
|
76
|
-
required :images, -> { Spotted::Internal::Type::ArrayOf[Spotted::ImageObject] }
|
|
77
|
-
|
|
78
|
-
# @!attribute languages
|
|
79
|
-
# A list of the languages used in the audiobook, identified by their
|
|
80
|
-
# [ISO 639](https://en.wikipedia.org/wiki/ISO_639) code.
|
|
81
|
-
#
|
|
82
|
-
# @return [Array<String>]
|
|
83
|
-
required :languages, Spotted::Internal::Type::ArrayOf[String]
|
|
84
|
-
|
|
85
|
-
# @!attribute media_type
|
|
86
|
-
# The media type of the audiobook.
|
|
87
|
-
#
|
|
88
|
-
# @return [String]
|
|
89
|
-
required :media_type, String
|
|
90
|
-
|
|
91
|
-
# @!attribute name
|
|
92
|
-
# The name of the audiobook.
|
|
93
|
-
#
|
|
94
|
-
# @return [String]
|
|
95
|
-
required :name, String
|
|
96
|
-
|
|
97
|
-
# @!attribute narrators
|
|
98
|
-
# The narrator(s) for the audiobook.
|
|
99
|
-
#
|
|
100
|
-
# @return [Array<Spotted::Models::NarratorObject>]
|
|
101
|
-
required :narrators, -> { Spotted::Internal::Type::ArrayOf[Spotted::NarratorObject] }
|
|
102
|
-
|
|
103
|
-
# @!attribute publisher
|
|
104
|
-
# The publisher of the audiobook.
|
|
105
|
-
#
|
|
106
|
-
# @return [String]
|
|
107
|
-
required :publisher, String
|
|
108
|
-
|
|
109
|
-
# @!attribute total_chapters
|
|
110
|
-
# The number of chapters in this audiobook.
|
|
111
|
-
#
|
|
112
|
-
# @return [Integer]
|
|
113
|
-
required :total_chapters, Integer
|
|
114
|
-
|
|
115
|
-
# @!attribute type
|
|
116
|
-
# The object type.
|
|
117
|
-
#
|
|
118
|
-
# @return [Symbol, Spotted::Models::AudiobookRetrieveResponse::Type]
|
|
119
|
-
required :type, enum: -> { Spotted::Models::AudiobookRetrieveResponse::Type }
|
|
120
|
-
|
|
121
|
-
# @!attribute uri
|
|
122
|
-
# The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
123
|
-
# audiobook.
|
|
124
|
-
#
|
|
125
|
-
# @return [String]
|
|
126
|
-
required :uri, String
|
|
127
|
-
|
|
128
|
-
# @!attribute edition
|
|
129
|
-
# The edition of the audiobook.
|
|
130
|
-
#
|
|
131
|
-
# @return [String, nil]
|
|
132
|
-
optional :edition, String
|
|
133
|
-
|
|
134
|
-
# @!method initialize(id:, authors:, available_markets:, chapters:, copyrights:, description:, explicit:, external_urls:, href:, html_description:, images:, languages:, media_type:, name:, narrators:, publisher:, total_chapters:, type:, uri:, edition: nil)
|
|
13
|
+
# @!method initialize(chapters:)
|
|
135
14
|
# Some parameter documentations has been truncated, see
|
|
136
15
|
# {Spotted::Models::AudiobookRetrieveResponse} for more details.
|
|
137
16
|
#
|
|
138
|
-
# @param id [String] The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the audio
|
|
139
|
-
#
|
|
140
|
-
# @param authors [Array<Spotted::Models::AuthorObject>] The author(s) for the audiobook.
|
|
141
|
-
#
|
|
142
|
-
# @param available_markets [Array<String>] A list of the countries in which the audiobook can be played, identified by thei
|
|
143
|
-
#
|
|
144
17
|
# @param chapters [Spotted::Models::AudiobookRetrieveResponse::Chapters] The chapters of the audiobook.
|
|
145
|
-
#
|
|
146
|
-
# @param copyrights [Array<Spotted::Models::CopyrightObject>] The copyright statements of the audiobook.
|
|
147
|
-
#
|
|
148
|
-
# @param description [String] A description of the audiobook. HTML tags are stripped away from this field, use
|
|
149
|
-
#
|
|
150
|
-
# @param explicit [Boolean] Whether or not the audiobook has explicit content (true = yes it does; false = n
|
|
151
|
-
#
|
|
152
|
-
# @param external_urls [Spotted::Models::ExternalURLObject] External URLs for this audiobook.
|
|
153
|
-
#
|
|
154
|
-
# @param href [String] A link to the Web API endpoint providing full details of the audiobook.
|
|
155
|
-
#
|
|
156
|
-
# @param html_description [String] A description of the audiobook. This field may contain HTML tags.
|
|
157
|
-
#
|
|
158
|
-
# @param images [Array<Spotted::Models::ImageObject>] The cover art for the audiobook in various sizes, widest first.
|
|
159
|
-
#
|
|
160
|
-
# @param languages [Array<String>] A list of the languages used in the audiobook, identified by their [ISO 639](htt
|
|
161
|
-
#
|
|
162
|
-
# @param media_type [String] The media type of the audiobook.
|
|
163
|
-
#
|
|
164
|
-
# @param name [String] The name of the audiobook.
|
|
165
|
-
#
|
|
166
|
-
# @param narrators [Array<Spotted::Models::NarratorObject>] The narrator(s) for the audiobook.
|
|
167
|
-
#
|
|
168
|
-
# @param publisher [String] The publisher of the audiobook.
|
|
169
|
-
#
|
|
170
|
-
# @param total_chapters [Integer] The number of chapters in this audiobook.
|
|
171
|
-
#
|
|
172
|
-
# @param type [Symbol, Spotted::Models::AudiobookRetrieveResponse::Type] The object type.
|
|
173
|
-
#
|
|
174
|
-
# @param uri [String] The [Spotify URI](/documentation/web-api/concepts/spotify-uris-ids) for the audi
|
|
175
|
-
#
|
|
176
|
-
# @param edition [String] The edition of the audiobook.
|
|
177
18
|
|
|
178
|
-
# @see Spotted::Models::AudiobookRetrieveResponse#chapters
|
|
179
19
|
class Chapters < Spotted::Internal::Type::BaseModel
|
|
180
20
|
# @!attribute href
|
|
181
21
|
# A link to the Web API endpoint returning the full result of the request
|
|
@@ -238,18 +78,6 @@ module Spotted
|
|
|
238
78
|
#
|
|
239
79
|
# @param total [Integer] The total number of items available to return.
|
|
240
80
|
end
|
|
241
|
-
|
|
242
|
-
# The object type.
|
|
243
|
-
#
|
|
244
|
-
# @see Spotted::Models::AudiobookRetrieveResponse#type
|
|
245
|
-
module Type
|
|
246
|
-
extend Spotted::Internal::Type::Enum
|
|
247
|
-
|
|
248
|
-
AUDIOBOOK = :audiobook
|
|
249
|
-
|
|
250
|
-
# @!method self.values
|
|
251
|
-
# @return [Array<Symbol>]
|
|
252
|
-
end
|
|
253
81
|
end
|
|
254
82
|
end
|
|
255
83
|
end
|