spotted 0.14.0 → 0.16.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 +17 -0
- data/README.md +1 -1
- data/lib/spotted/models/playlist_retrieve_response.rb +14 -12
- data/lib/spotted/models/playlist_update_params.rb +15 -13
- data/lib/spotted/models/playlists/follower_follow_params.rb +6 -4
- data/lib/spotted/models/simplified_playlist_object.rb +14 -12
- data/lib/spotted/models/users/playlist_create_params.rb +17 -15
- data/lib/spotted/models/users/playlist_create_response.rb +14 -12
- data/lib/spotted/resources/playlists/followers.rb +2 -2
- data/lib/spotted/resources/playlists.rb +3 -3
- data/lib/spotted/resources/users/playlists.rb +3 -3
- data/lib/spotted/version.rb +1 -1
- data/rbi/spotted/models/playlist_retrieve_response.rbi +17 -17
- data/rbi/spotted/models/playlist_update_params.rbi +26 -19
- data/rbi/spotted/models/playlists/follower_follow_params.rbi +16 -6
- data/rbi/spotted/models/simplified_playlist_object.rbi +17 -17
- data/rbi/spotted/models/users/playlist_create_params.rbi +30 -23
- data/rbi/spotted/models/users/playlist_create_response.rbi +17 -17
- data/rbi/spotted/resources/playlists/followers.rbi +3 -2
- data/rbi/spotted/resources/playlists.rbi +8 -7
- data/rbi/spotted/resources/users/playlists.rbi +10 -9
- data/sig/spotted/models/playlist_retrieve_response.rbs +7 -7
- data/sig/spotted/models/playlist_update_params.rbs +14 -7
- data/sig/spotted/models/playlists/follower_follow_params.rbs +10 -5
- data/sig/spotted/models/simplified_playlist_object.rbs +7 -7
- data/sig/spotted/models/users/playlist_create_params.rbs +14 -7
- data/sig/spotted/models/users/playlist_create_response.rbs +7 -7
- data/sig/spotted/resources/playlists/followers.rbs +1 -1
- data/sig/spotted/resources/playlists.rbs +1 -1
- data/sig/spotted/resources/users/playlists.rbs +1 -1
- metadata +1 -1
|
@@ -16,6 +16,16 @@ module Spotted
|
|
|
16
16
|
sig { params(id: String).void }
|
|
17
17
|
attr_writer :id
|
|
18
18
|
|
|
19
|
+
# The playlist's public/private status (if it is added to the user's profile):
|
|
20
|
+
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
21
|
+
# playlist status is not relevant. For more about public/private status, see
|
|
22
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
23
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
24
|
+
attr_reader :components_schemas_properties_published
|
|
25
|
+
|
|
26
|
+
sig { params(components_schemas_properties_published: T::Boolean).void }
|
|
27
|
+
attr_writer :components_schemas_properties_published
|
|
28
|
+
|
|
19
29
|
# `true` if the owner allows other users to modify the playlist.
|
|
20
30
|
sig { returns(T.nilable(T::Boolean)) }
|
|
21
31
|
attr_reader :collaborative
|
|
@@ -72,16 +82,6 @@ module Spotted
|
|
|
72
82
|
end
|
|
73
83
|
attr_writer :owner
|
|
74
84
|
|
|
75
|
-
# The playlist's public/private status (if it is added to the user's profile):
|
|
76
|
-
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
77
|
-
# playlist status is not relevant. For more about public/private status, see
|
|
78
|
-
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
79
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
80
|
-
attr_reader :public
|
|
81
|
-
|
|
82
|
-
sig { params(public: T::Boolean).void }
|
|
83
|
-
attr_writer :public
|
|
84
|
-
|
|
85
85
|
# The version identifier for the current playlist. Can be supplied in other
|
|
86
86
|
# requests to target a specific playlist version
|
|
87
87
|
sig { returns(T.nilable(String)) }
|
|
@@ -118,6 +118,7 @@ module Spotted
|
|
|
118
118
|
sig do
|
|
119
119
|
params(
|
|
120
120
|
id: String,
|
|
121
|
+
components_schemas_properties_published: T::Boolean,
|
|
121
122
|
collaborative: T::Boolean,
|
|
122
123
|
description: String,
|
|
123
124
|
external_urls: Spotted::ExternalURLObject::OrHash,
|
|
@@ -125,7 +126,6 @@ module Spotted
|
|
|
125
126
|
images: T::Array[Spotted::ImageObject::OrHash],
|
|
126
127
|
name: String,
|
|
127
128
|
owner: Spotted::SimplifiedPlaylistObject::Owner::OrHash,
|
|
128
|
-
public: T::Boolean,
|
|
129
129
|
snapshot_id: String,
|
|
130
130
|
tracks: Spotted::PlaylistTracksRefObject::OrHash,
|
|
131
131
|
type: String,
|
|
@@ -136,6 +136,11 @@ module Spotted
|
|
|
136
136
|
# The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
137
137
|
# playlist.
|
|
138
138
|
id: nil,
|
|
139
|
+
# The playlist's public/private status (if it is added to the user's profile):
|
|
140
|
+
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
141
|
+
# playlist status is not relevant. For more about public/private status, see
|
|
142
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
143
|
+
components_schemas_properties_published: nil,
|
|
139
144
|
# `true` if the owner allows other users to modify the playlist.
|
|
140
145
|
collaborative: nil,
|
|
141
146
|
# The playlist description. _Only returned for modified, verified playlists,
|
|
@@ -155,11 +160,6 @@ module Spotted
|
|
|
155
160
|
name: nil,
|
|
156
161
|
# The user who owns the playlist
|
|
157
162
|
owner: nil,
|
|
158
|
-
# The playlist's public/private status (if it is added to the user's profile):
|
|
159
|
-
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
160
|
-
# playlist status is not relevant. For more about public/private status, see
|
|
161
|
-
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
162
|
-
public: nil,
|
|
163
163
|
# The version identifier for the current playlist. Can be supplied in other
|
|
164
164
|
# requests to target a specific playlist version
|
|
165
165
|
snapshot_id: nil,
|
|
@@ -180,6 +180,7 @@ module Spotted
|
|
|
180
180
|
override.returns(
|
|
181
181
|
{
|
|
182
182
|
id: String,
|
|
183
|
+
components_schemas_properties_published: T::Boolean,
|
|
183
184
|
collaborative: T::Boolean,
|
|
184
185
|
description: String,
|
|
185
186
|
external_urls: Spotted::ExternalURLObject,
|
|
@@ -187,7 +188,6 @@ module Spotted
|
|
|
187
188
|
images: T::Array[Spotted::ImageObject],
|
|
188
189
|
name: String,
|
|
189
190
|
owner: Spotted::SimplifiedPlaylistObject::Owner,
|
|
190
|
-
public: T::Boolean,
|
|
191
191
|
snapshot_id: String,
|
|
192
192
|
tracks: Spotted::PlaylistTracksRefObject,
|
|
193
193
|
type: String,
|
|
@@ -21,6 +21,24 @@ module Spotted
|
|
|
21
21
|
sig { returns(String) }
|
|
22
22
|
attr_accessor :name
|
|
23
23
|
|
|
24
|
+
# Defaults to `true`. The playlist's public/private status (if it should be added
|
|
25
|
+
# to the user's profile or not): `true` the playlist will be public, `false` the
|
|
26
|
+
# playlist will be private. To be able to create private playlists, the user must
|
|
27
|
+
# have granted the `playlist-modify-private`
|
|
28
|
+
# [scope](/documentation/web-api/concepts/scopes/#list-of-scopes). For more about
|
|
29
|
+
# public/private status, see
|
|
30
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
31
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
32
|
+
attr_reader :paths_request_body_content_application_json_schema_properties_published
|
|
33
|
+
|
|
34
|
+
sig do
|
|
35
|
+
params(
|
|
36
|
+
paths_request_body_content_application_json_schema_properties_published:
|
|
37
|
+
T::Boolean
|
|
38
|
+
).void
|
|
39
|
+
end
|
|
40
|
+
attr_writer :paths_request_body_content_application_json_schema_properties_published
|
|
41
|
+
|
|
24
42
|
# Defaults to `false`. If `true` the playlist will be collaborative. _**Note**: to
|
|
25
43
|
# create a collaborative playlist you must also set `public` to `false`. To create
|
|
26
44
|
# collaborative playlists you must have granted `playlist-modify-private` and
|
|
@@ -40,25 +58,13 @@ module Spotted
|
|
|
40
58
|
sig { params(description: String).void }
|
|
41
59
|
attr_writer :description
|
|
42
60
|
|
|
43
|
-
# Defaults to `true`. The playlist's public/private status (if it should be added
|
|
44
|
-
# to the user's profile or not): `true` the playlist will be public, `false` the
|
|
45
|
-
# playlist will be private. To be able to create private playlists, the user must
|
|
46
|
-
# have granted the `playlist-modify-private`
|
|
47
|
-
# [scope](/documentation/web-api/concepts/scopes/#list-of-scopes). For more about
|
|
48
|
-
# public/private status, see
|
|
49
|
-
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
50
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
51
|
-
attr_reader :public
|
|
52
|
-
|
|
53
|
-
sig { params(public: T::Boolean).void }
|
|
54
|
-
attr_writer :public
|
|
55
|
-
|
|
56
61
|
sig do
|
|
57
62
|
params(
|
|
58
63
|
name: String,
|
|
64
|
+
paths_request_body_content_application_json_schema_properties_published:
|
|
65
|
+
T::Boolean,
|
|
59
66
|
collaborative: T::Boolean,
|
|
60
67
|
description: String,
|
|
61
|
-
public: T::Boolean,
|
|
62
68
|
request_options: Spotted::RequestOptions::OrHash
|
|
63
69
|
).returns(T.attached_class)
|
|
64
70
|
end
|
|
@@ -67,6 +73,14 @@ module Spotted
|
|
|
67
73
|
# does not need to be unique; a user may have several playlists with the same
|
|
68
74
|
# name.
|
|
69
75
|
name:,
|
|
76
|
+
# Defaults to `true`. The playlist's public/private status (if it should be added
|
|
77
|
+
# to the user's profile or not): `true` the playlist will be public, `false` the
|
|
78
|
+
# playlist will be private. To be able to create private playlists, the user must
|
|
79
|
+
# have granted the `playlist-modify-private`
|
|
80
|
+
# [scope](/documentation/web-api/concepts/scopes/#list-of-scopes). For more about
|
|
81
|
+
# public/private status, see
|
|
82
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
83
|
+
paths_request_body_content_application_json_schema_properties_published: nil,
|
|
70
84
|
# Defaults to `false`. If `true` the playlist will be collaborative. _**Note**: to
|
|
71
85
|
# create a collaborative playlist you must also set `public` to `false`. To create
|
|
72
86
|
# collaborative playlists you must have granted `playlist-modify-private` and
|
|
@@ -76,14 +90,6 @@ module Spotted
|
|
|
76
90
|
# value for playlist description as displayed in Spotify Clients and in the Web
|
|
77
91
|
# API.
|
|
78
92
|
description: nil,
|
|
79
|
-
# Defaults to `true`. The playlist's public/private status (if it should be added
|
|
80
|
-
# to the user's profile or not): `true` the playlist will be public, `false` the
|
|
81
|
-
# playlist will be private. To be able to create private playlists, the user must
|
|
82
|
-
# have granted the `playlist-modify-private`
|
|
83
|
-
# [scope](/documentation/web-api/concepts/scopes/#list-of-scopes). For more about
|
|
84
|
-
# public/private status, see
|
|
85
|
-
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
86
|
-
public: nil,
|
|
87
93
|
request_options: {}
|
|
88
94
|
)
|
|
89
95
|
end
|
|
@@ -92,9 +98,10 @@ module Spotted
|
|
|
92
98
|
override.returns(
|
|
93
99
|
{
|
|
94
100
|
name: String,
|
|
101
|
+
paths_request_body_content_application_json_schema_properties_published:
|
|
102
|
+
T::Boolean,
|
|
95
103
|
collaborative: T::Boolean,
|
|
96
104
|
description: String,
|
|
97
|
-
public: T::Boolean,
|
|
98
105
|
request_options: Spotted::RequestOptions
|
|
99
106
|
}
|
|
100
107
|
)
|
|
@@ -20,6 +20,16 @@ module Spotted
|
|
|
20
20
|
sig { params(id: String).void }
|
|
21
21
|
attr_writer :id
|
|
22
22
|
|
|
23
|
+
# The playlist's public/private status (if it is added to the user's profile):
|
|
24
|
+
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
25
|
+
# playlist status is not relevant. For more about public/private status, see
|
|
26
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
27
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
28
|
+
attr_reader :components_schemas_properties_published
|
|
29
|
+
|
|
30
|
+
sig { params(components_schemas_properties_published: T::Boolean).void }
|
|
31
|
+
attr_writer :components_schemas_properties_published
|
|
32
|
+
|
|
23
33
|
# `true` if the owner allows other users to modify the playlist.
|
|
24
34
|
sig { returns(T.nilable(T::Boolean)) }
|
|
25
35
|
attr_reader :collaborative
|
|
@@ -86,16 +96,6 @@ module Spotted
|
|
|
86
96
|
end
|
|
87
97
|
attr_writer :owner
|
|
88
98
|
|
|
89
|
-
# The playlist's public/private status (if it is added to the user's profile):
|
|
90
|
-
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
91
|
-
# playlist status is not relevant. For more about public/private status, see
|
|
92
|
-
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
93
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
94
|
-
attr_reader :public
|
|
95
|
-
|
|
96
|
-
sig { params(public: T::Boolean).void }
|
|
97
|
-
attr_writer :public
|
|
98
|
-
|
|
99
99
|
# The version identifier for the current playlist. Can be supplied in other
|
|
100
100
|
# requests to target a specific playlist version
|
|
101
101
|
sig { returns(T.nilable(String)) }
|
|
@@ -138,6 +138,7 @@ module Spotted
|
|
|
138
138
|
sig do
|
|
139
139
|
params(
|
|
140
140
|
id: String,
|
|
141
|
+
components_schemas_properties_published: T::Boolean,
|
|
141
142
|
collaborative: T::Boolean,
|
|
142
143
|
description: T.nilable(String),
|
|
143
144
|
external_urls: Spotted::ExternalURLObject::OrHash,
|
|
@@ -147,7 +148,6 @@ module Spotted
|
|
|
147
148
|
name: String,
|
|
148
149
|
owner:
|
|
149
150
|
Spotted::Models::Users::PlaylistCreateResponse::Owner::OrHash,
|
|
150
|
-
public: T::Boolean,
|
|
151
151
|
snapshot_id: String,
|
|
152
152
|
tracks:
|
|
153
153
|
Spotted::Models::Users::PlaylistCreateResponse::Tracks::OrHash,
|
|
@@ -159,6 +159,11 @@ module Spotted
|
|
|
159
159
|
# The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the
|
|
160
160
|
# playlist.
|
|
161
161
|
id: nil,
|
|
162
|
+
# The playlist's public/private status (if it is added to the user's profile):
|
|
163
|
+
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
164
|
+
# playlist status is not relevant. For more about public/private status, see
|
|
165
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
166
|
+
components_schemas_properties_published: nil,
|
|
162
167
|
# `true` if the owner allows other users to modify the playlist.
|
|
163
168
|
collaborative: nil,
|
|
164
169
|
# The playlist description. _Only returned for modified, verified playlists,
|
|
@@ -180,11 +185,6 @@ module Spotted
|
|
|
180
185
|
name: nil,
|
|
181
186
|
# The user who owns the playlist
|
|
182
187
|
owner: nil,
|
|
183
|
-
# The playlist's public/private status (if it is added to the user's profile):
|
|
184
|
-
# `true` the playlist is public, `false` the playlist is private, `null` the
|
|
185
|
-
# playlist status is not relevant. For more about public/private status, see
|
|
186
|
-
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
187
|
-
public: nil,
|
|
188
188
|
# The version identifier for the current playlist. Can be supplied in other
|
|
189
189
|
# requests to target a specific playlist version
|
|
190
190
|
snapshot_id: nil,
|
|
@@ -202,6 +202,7 @@ module Spotted
|
|
|
202
202
|
override.returns(
|
|
203
203
|
{
|
|
204
204
|
id: String,
|
|
205
|
+
components_schemas_properties_published: T::Boolean,
|
|
205
206
|
collaborative: T::Boolean,
|
|
206
207
|
description: T.nilable(String),
|
|
207
208
|
external_urls: Spotted::ExternalURLObject,
|
|
@@ -210,7 +211,6 @@ module Spotted
|
|
|
210
211
|
images: T::Array[Spotted::ImageObject],
|
|
211
212
|
name: String,
|
|
212
213
|
owner: Spotted::Models::Users::PlaylistCreateResponse::Owner,
|
|
213
|
-
public: T::Boolean,
|
|
214
214
|
snapshot_id: String,
|
|
215
215
|
tracks: Spotted::Models::Users::PlaylistCreateResponse::Tracks,
|
|
216
216
|
type: String,
|
|
@@ -28,7 +28,8 @@ module Spotted
|
|
|
28
28
|
sig do
|
|
29
29
|
params(
|
|
30
30
|
playlist_id: String,
|
|
31
|
-
|
|
31
|
+
paths_request_body_content_application_json_schema_properties_published:
|
|
32
|
+
T::Boolean,
|
|
32
33
|
request_options: Spotted::RequestOptions::OrHash
|
|
33
34
|
).void
|
|
34
35
|
end
|
|
@@ -40,7 +41,7 @@ module Spotted
|
|
|
40
41
|
# playlists (added to profile), if `false` it will remain private. For more about
|
|
41
42
|
# public/private status, see
|
|
42
43
|
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
43
|
-
|
|
44
|
+
paths_request_body_content_application_json_schema_properties_published: nil,
|
|
44
45
|
request_options: {}
|
|
45
46
|
)
|
|
46
47
|
end
|
|
@@ -63,10 +63,11 @@ module Spotted
|
|
|
63
63
|
sig do
|
|
64
64
|
params(
|
|
65
65
|
playlist_id: String,
|
|
66
|
+
paths_request_body_content_application_json_schema_properties_published:
|
|
67
|
+
T::Boolean,
|
|
66
68
|
collaborative: T::Boolean,
|
|
67
69
|
description: String,
|
|
68
70
|
name: String,
|
|
69
|
-
public: T::Boolean,
|
|
70
71
|
request_options: Spotted::RequestOptions::OrHash
|
|
71
72
|
).void
|
|
72
73
|
end
|
|
@@ -74,6 +75,12 @@ module Spotted
|
|
|
74
75
|
# The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) of the
|
|
75
76
|
# playlist.
|
|
76
77
|
playlist_id,
|
|
78
|
+
# The playlist's public/private status (if it should be added to the user's
|
|
79
|
+
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
80
|
+
# be private, `null` the playlist status is not relevant. For more about
|
|
81
|
+
# public/private status, see
|
|
82
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
83
|
+
paths_request_body_content_application_json_schema_properties_published: nil,
|
|
77
84
|
# If `true`, the playlist will become collaborative and other users will be able
|
|
78
85
|
# to modify the playlist in their Spotify client. <br/> _**Note**: You can only
|
|
79
86
|
# set `collaborative` to `true` on non-public playlists._
|
|
@@ -83,12 +90,6 @@ module Spotted
|
|
|
83
90
|
description: nil,
|
|
84
91
|
# The new name for the playlist, for example `"My New Playlist Title"`
|
|
85
92
|
name: nil,
|
|
86
|
-
# The playlist's public/private status (if it should be added to the user's
|
|
87
|
-
# profile or not): `true` the playlist will be public, `false` the playlist will
|
|
88
|
-
# be private, `null` the playlist status is not relevant. For more about
|
|
89
|
-
# public/private status, see
|
|
90
|
-
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
91
|
-
public: nil,
|
|
92
93
|
request_options: {}
|
|
93
94
|
)
|
|
94
95
|
end
|
|
@@ -11,9 +11,10 @@ module Spotted
|
|
|
11
11
|
params(
|
|
12
12
|
user_id: String,
|
|
13
13
|
name: String,
|
|
14
|
+
paths_request_body_content_application_json_schema_properties_published:
|
|
15
|
+
T::Boolean,
|
|
14
16
|
collaborative: T::Boolean,
|
|
15
17
|
description: String,
|
|
16
|
-
public: T::Boolean,
|
|
17
18
|
request_options: Spotted::RequestOptions::OrHash
|
|
18
19
|
).returns(Spotted::Models::Users::PlaylistCreateResponse)
|
|
19
20
|
end
|
|
@@ -24,6 +25,14 @@ module Spotted
|
|
|
24
25
|
# does not need to be unique; a user may have several playlists with the same
|
|
25
26
|
# name.
|
|
26
27
|
name:,
|
|
28
|
+
# Defaults to `true`. The playlist's public/private status (if it should be added
|
|
29
|
+
# to the user's profile or not): `true` the playlist will be public, `false` the
|
|
30
|
+
# playlist will be private. To be able to create private playlists, the user must
|
|
31
|
+
# have granted the `playlist-modify-private`
|
|
32
|
+
# [scope](/documentation/web-api/concepts/scopes/#list-of-scopes). For more about
|
|
33
|
+
# public/private status, see
|
|
34
|
+
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
35
|
+
paths_request_body_content_application_json_schema_properties_published: nil,
|
|
27
36
|
# Defaults to `false`. If `true` the playlist will be collaborative. _**Note**: to
|
|
28
37
|
# create a collaborative playlist you must also set `public` to `false`. To create
|
|
29
38
|
# collaborative playlists you must have granted `playlist-modify-private` and
|
|
@@ -33,14 +42,6 @@ module Spotted
|
|
|
33
42
|
# value for playlist description as displayed in Spotify Clients and in the Web
|
|
34
43
|
# API.
|
|
35
44
|
description: nil,
|
|
36
|
-
# Defaults to `true`. The playlist's public/private status (if it should be added
|
|
37
|
-
# to the user's profile or not): `true` the playlist will be public, `false` the
|
|
38
|
-
# playlist will be private. To be able to create private playlists, the user must
|
|
39
|
-
# have granted the `playlist-modify-private`
|
|
40
|
-
# [scope](/documentation/web-api/concepts/scopes/#list-of-scopes). For more about
|
|
41
|
-
# public/private status, see
|
|
42
|
-
# [Working with Playlists](/documentation/web-api/concepts/playlists)
|
|
43
|
-
public: nil,
|
|
44
45
|
request_options: {}
|
|
45
46
|
)
|
|
46
47
|
end
|
|
@@ -3,6 +3,7 @@ module Spotted
|
|
|
3
3
|
type playlist_retrieve_response =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
+
components_schemas_properties_published: bool,
|
|
6
7
|
collaborative: bool,
|
|
7
8
|
description: String?,
|
|
8
9
|
external_urls: Spotted::ExternalURLObject,
|
|
@@ -11,7 +12,6 @@ module Spotted
|
|
|
11
12
|
images: ::Array[Spotted::ImageObject],
|
|
12
13
|
name: String,
|
|
13
14
|
owner: Spotted::Models::PlaylistRetrieveResponse::Owner,
|
|
14
|
-
public: bool,
|
|
15
15
|
snapshot_id: String,
|
|
16
16
|
tracks: Spotted::Models::PlaylistRetrieveResponse::Tracks,
|
|
17
17
|
type: String,
|
|
@@ -23,6 +23,10 @@ module Spotted
|
|
|
23
23
|
|
|
24
24
|
def id=: (String) -> String
|
|
25
25
|
|
|
26
|
+
attr_reader components_schemas_properties_published: bool?
|
|
27
|
+
|
|
28
|
+
def components_schemas_properties_published=: (bool) -> bool
|
|
29
|
+
|
|
26
30
|
attr_reader collaborative: bool?
|
|
27
31
|
|
|
28
32
|
def collaborative=: (bool) -> bool
|
|
@@ -59,10 +63,6 @@ module Spotted
|
|
|
59
63
|
Spotted::Models::PlaylistRetrieveResponse::Owner
|
|
60
64
|
) -> Spotted::Models::PlaylistRetrieveResponse::Owner
|
|
61
65
|
|
|
62
|
-
attr_reader public: bool?
|
|
63
|
-
|
|
64
|
-
def public=: (bool) -> bool
|
|
65
|
-
|
|
66
66
|
attr_reader snapshot_id: String?
|
|
67
67
|
|
|
68
68
|
def snapshot_id=: (String) -> String
|
|
@@ -83,6 +83,7 @@ module Spotted
|
|
|
83
83
|
|
|
84
84
|
def initialize: (
|
|
85
85
|
?id: String,
|
|
86
|
+
?components_schemas_properties_published: bool,
|
|
86
87
|
?collaborative: bool,
|
|
87
88
|
?description: String?,
|
|
88
89
|
?external_urls: Spotted::ExternalURLObject,
|
|
@@ -91,7 +92,6 @@ module Spotted
|
|
|
91
92
|
?images: ::Array[Spotted::ImageObject],
|
|
92
93
|
?name: String,
|
|
93
94
|
?owner: Spotted::Models::PlaylistRetrieveResponse::Owner,
|
|
94
|
-
?public: bool,
|
|
95
95
|
?snapshot_id: String,
|
|
96
96
|
?tracks: Spotted::Models::PlaylistRetrieveResponse::Tracks,
|
|
97
97
|
?type: String,
|
|
@@ -100,6 +100,7 @@ module Spotted
|
|
|
100
100
|
|
|
101
101
|
def to_hash: -> {
|
|
102
102
|
id: String,
|
|
103
|
+
components_schemas_properties_published: bool,
|
|
103
104
|
collaborative: bool,
|
|
104
105
|
description: String?,
|
|
105
106
|
external_urls: Spotted::ExternalURLObject,
|
|
@@ -108,7 +109,6 @@ module Spotted
|
|
|
108
109
|
images: ::Array[Spotted::ImageObject],
|
|
109
110
|
name: String,
|
|
110
111
|
owner: Spotted::Models::PlaylistRetrieveResponse::Owner,
|
|
111
|
-
public: bool,
|
|
112
112
|
snapshot_id: String,
|
|
113
113
|
tracks: Spotted::Models::PlaylistRetrieveResponse::Tracks,
|
|
114
114
|
type: String,
|
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
module Spotted
|
|
2
2
|
module Models
|
|
3
3
|
type playlist_update_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
paths_request_body_content_application_json_schema_properties_published: bool,
|
|
6
|
+
collaborative: bool,
|
|
7
|
+
description: String,
|
|
8
|
+
name: String
|
|
9
|
+
}
|
|
5
10
|
& Spotted::Internal::Type::request_parameters
|
|
6
11
|
|
|
7
12
|
class PlaylistUpdateParams < Spotted::Internal::Type::BaseModel
|
|
8
13
|
extend Spotted::Internal::Type::RequestParameters::Converter
|
|
9
14
|
include Spotted::Internal::Type::RequestParameters
|
|
10
15
|
|
|
16
|
+
attr_reader paths_request_body_content_application_json_schema_properties_published: bool?
|
|
17
|
+
|
|
18
|
+
def paths_request_body_content_application_json_schema_properties_published=: (
|
|
19
|
+
bool
|
|
20
|
+
) -> bool
|
|
21
|
+
|
|
11
22
|
attr_reader collaborative: bool?
|
|
12
23
|
|
|
13
24
|
def collaborative=: (bool) -> bool
|
|
@@ -20,23 +31,19 @@ module Spotted
|
|
|
20
31
|
|
|
21
32
|
def name=: (String) -> String
|
|
22
33
|
|
|
23
|
-
attr_reader public: bool?
|
|
24
|
-
|
|
25
|
-
def public=: (bool) -> bool
|
|
26
|
-
|
|
27
34
|
def initialize: (
|
|
35
|
+
?paths_request_body_content_application_json_schema_properties_published: bool,
|
|
28
36
|
?collaborative: bool,
|
|
29
37
|
?description: String,
|
|
30
38
|
?name: String,
|
|
31
|
-
?public: bool,
|
|
32
39
|
?request_options: Spotted::request_opts
|
|
33
40
|
) -> void
|
|
34
41
|
|
|
35
42
|
def to_hash: -> {
|
|
43
|
+
paths_request_body_content_application_json_schema_properties_published: bool,
|
|
36
44
|
collaborative: bool,
|
|
37
45
|
description: String,
|
|
38
46
|
name: String,
|
|
39
|
-
public: bool,
|
|
40
47
|
request_options: Spotted::RequestOptions
|
|
41
48
|
}
|
|
42
49
|
end
|
|
@@ -2,23 +2,28 @@ module Spotted
|
|
|
2
2
|
module Models
|
|
3
3
|
module Playlists
|
|
4
4
|
type follower_follow_params =
|
|
5
|
-
{
|
|
5
|
+
{
|
|
6
|
+
paths_request_body_content_application_json_schema_properties_published: bool
|
|
7
|
+
}
|
|
8
|
+
& Spotted::Internal::Type::request_parameters
|
|
6
9
|
|
|
7
10
|
class FollowerFollowParams < Spotted::Internal::Type::BaseModel
|
|
8
11
|
extend Spotted::Internal::Type::RequestParameters::Converter
|
|
9
12
|
include Spotted::Internal::Type::RequestParameters
|
|
10
13
|
|
|
11
|
-
attr_reader
|
|
14
|
+
attr_reader paths_request_body_content_application_json_schema_properties_published: bool?
|
|
12
15
|
|
|
13
|
-
def
|
|
16
|
+
def paths_request_body_content_application_json_schema_properties_published=: (
|
|
17
|
+
bool
|
|
18
|
+
) -> bool
|
|
14
19
|
|
|
15
20
|
def initialize: (
|
|
16
|
-
?
|
|
21
|
+
?paths_request_body_content_application_json_schema_properties_published: bool,
|
|
17
22
|
?request_options: Spotted::request_opts
|
|
18
23
|
) -> void
|
|
19
24
|
|
|
20
25
|
def to_hash: -> {
|
|
21
|
-
|
|
26
|
+
paths_request_body_content_application_json_schema_properties_published: bool,
|
|
22
27
|
request_options: Spotted::RequestOptions
|
|
23
28
|
}
|
|
24
29
|
end
|
|
@@ -3,6 +3,7 @@ module Spotted
|
|
|
3
3
|
type simplified_playlist_object =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
+
components_schemas_properties_published: bool,
|
|
6
7
|
collaborative: bool,
|
|
7
8
|
description: String,
|
|
8
9
|
external_urls: Spotted::ExternalURLObject,
|
|
@@ -10,7 +11,6 @@ module Spotted
|
|
|
10
11
|
images: ::Array[Spotted::ImageObject],
|
|
11
12
|
name: String,
|
|
12
13
|
owner: Spotted::SimplifiedPlaylistObject::Owner,
|
|
13
|
-
public: bool,
|
|
14
14
|
snapshot_id: String,
|
|
15
15
|
tracks: Spotted::PlaylistTracksRefObject,
|
|
16
16
|
type: String,
|
|
@@ -22,6 +22,10 @@ module Spotted
|
|
|
22
22
|
|
|
23
23
|
def id=: (String) -> String
|
|
24
24
|
|
|
25
|
+
attr_reader components_schemas_properties_published: bool?
|
|
26
|
+
|
|
27
|
+
def components_schemas_properties_published=: (bool) -> bool
|
|
28
|
+
|
|
25
29
|
attr_reader collaborative: bool?
|
|
26
30
|
|
|
27
31
|
def collaborative=: (bool) -> bool
|
|
@@ -56,10 +60,6 @@ module Spotted
|
|
|
56
60
|
Spotted::SimplifiedPlaylistObject::Owner
|
|
57
61
|
) -> Spotted::SimplifiedPlaylistObject::Owner
|
|
58
62
|
|
|
59
|
-
attr_reader public: bool?
|
|
60
|
-
|
|
61
|
-
def public=: (bool) -> bool
|
|
62
|
-
|
|
63
63
|
attr_reader snapshot_id: String?
|
|
64
64
|
|
|
65
65
|
def snapshot_id=: (String) -> String
|
|
@@ -80,6 +80,7 @@ module Spotted
|
|
|
80
80
|
|
|
81
81
|
def initialize: (
|
|
82
82
|
?id: String,
|
|
83
|
+
?components_schemas_properties_published: bool,
|
|
83
84
|
?collaborative: bool,
|
|
84
85
|
?description: String,
|
|
85
86
|
?external_urls: Spotted::ExternalURLObject,
|
|
@@ -87,7 +88,6 @@ module Spotted
|
|
|
87
88
|
?images: ::Array[Spotted::ImageObject],
|
|
88
89
|
?name: String,
|
|
89
90
|
?owner: Spotted::SimplifiedPlaylistObject::Owner,
|
|
90
|
-
?public: bool,
|
|
91
91
|
?snapshot_id: String,
|
|
92
92
|
?tracks: Spotted::PlaylistTracksRefObject,
|
|
93
93
|
?type: String,
|
|
@@ -96,6 +96,7 @@ module Spotted
|
|
|
96
96
|
|
|
97
97
|
def to_hash: -> {
|
|
98
98
|
id: String,
|
|
99
|
+
components_schemas_properties_published: bool,
|
|
99
100
|
collaborative: bool,
|
|
100
101
|
description: String,
|
|
101
102
|
external_urls: Spotted::ExternalURLObject,
|
|
@@ -103,7 +104,6 @@ module Spotted
|
|
|
103
104
|
images: ::Array[Spotted::ImageObject],
|
|
104
105
|
name: String,
|
|
105
106
|
owner: Spotted::SimplifiedPlaylistObject::Owner,
|
|
106
|
-
public: bool,
|
|
107
107
|
snapshot_id: String,
|
|
108
108
|
tracks: Spotted::PlaylistTracksRefObject,
|
|
109
109
|
type: String,
|
|
@@ -2,7 +2,12 @@ module Spotted
|
|
|
2
2
|
module Models
|
|
3
3
|
module Users
|
|
4
4
|
type playlist_create_params =
|
|
5
|
-
{
|
|
5
|
+
{
|
|
6
|
+
name: String,
|
|
7
|
+
paths_request_body_content_application_json_schema_properties_published: bool,
|
|
8
|
+
collaborative: bool,
|
|
9
|
+
description: String
|
|
10
|
+
}
|
|
6
11
|
& Spotted::Internal::Type::request_parameters
|
|
7
12
|
|
|
8
13
|
class PlaylistCreateParams < Spotted::Internal::Type::BaseModel
|
|
@@ -11,6 +16,12 @@ module Spotted
|
|
|
11
16
|
|
|
12
17
|
attr_accessor name: String
|
|
13
18
|
|
|
19
|
+
attr_reader paths_request_body_content_application_json_schema_properties_published: bool?
|
|
20
|
+
|
|
21
|
+
def paths_request_body_content_application_json_schema_properties_published=: (
|
|
22
|
+
bool
|
|
23
|
+
) -> bool
|
|
24
|
+
|
|
14
25
|
attr_reader collaborative: bool?
|
|
15
26
|
|
|
16
27
|
def collaborative=: (bool) -> bool
|
|
@@ -19,23 +30,19 @@ module Spotted
|
|
|
19
30
|
|
|
20
31
|
def description=: (String) -> String
|
|
21
32
|
|
|
22
|
-
attr_reader public: bool?
|
|
23
|
-
|
|
24
|
-
def public=: (bool) -> bool
|
|
25
|
-
|
|
26
33
|
def initialize: (
|
|
27
34
|
name: String,
|
|
35
|
+
?paths_request_body_content_application_json_schema_properties_published: bool,
|
|
28
36
|
?collaborative: bool,
|
|
29
37
|
?description: String,
|
|
30
|
-
?public: bool,
|
|
31
38
|
?request_options: Spotted::request_opts
|
|
32
39
|
) -> void
|
|
33
40
|
|
|
34
41
|
def to_hash: -> {
|
|
35
42
|
name: String,
|
|
43
|
+
paths_request_body_content_application_json_schema_properties_published: bool,
|
|
36
44
|
collaborative: bool,
|
|
37
45
|
description: String,
|
|
38
|
-
public: bool,
|
|
39
46
|
request_options: Spotted::RequestOptions
|
|
40
47
|
}
|
|
41
48
|
end
|