prawn 0.0.3

Rust Client for the Tidal API providing comprehensive API coverag, and easy OAuth management
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
# \AlbumsApi

All URIs are relative to *https://openapi.tidal.com/v2*

Method | HTTP request | Description
------------- | ------------- | -------------
[**create_album**]AlbumsApi.md#create_album | **POST** /albums | Create single album.
[**delete_album**]AlbumsApi.md#delete_album | **DELETE** /albums/{id} | Delete single album.
[**get_album**]AlbumsApi.md#get_album | **GET** /albums/{id} | Get single album.
[**get_album_artists**]AlbumsApi.md#get_album_artists | **GET** /albums/{id}/relationships/artists | Get artists relationship (\"to-many\").
[**get_album_cover_art**]AlbumsApi.md#get_album_cover_art | **GET** /albums/{id}/relationships/coverArt | Get coverArt relationship (\"to-many\").
[**get_album_genres**]AlbumsApi.md#get_album_genres | **GET** /albums/{id}/relationships/genres | Get genres relationship (\"to-many\").
[**get_album_items**]AlbumsApi.md#get_album_items | **GET** /albums/{id}/relationships/items | Get items relationship (\"to-many\").
[**get_album_owners**]AlbumsApi.md#get_album_owners | **GET** /albums/{id}/relationships/owners | Get owners relationship (\"to-many\").
[**get_album_providers**]AlbumsApi.md#get_album_providers | **GET** /albums/{id}/relationships/providers | Get providers relationship (\"to-many\").
[**get_album_replacement_replationship**]AlbumsApi.md#get_album_replacement_replationship | **GET** /albums/{id}/relationships/replacement | Get replacement relationship (\"to-one\").
[**get_album_suggested_cover_arts**]AlbumsApi.md#get_album_suggested_cover_arts | **GET** /albums/{id}/relationships/suggestedCoverArts | Get suggestedCoverArts relationship (\"to-many\").
[**get_albums**]AlbumsApi.md#get_albums | **GET** /albums | Get multiple albums.
[**get_similar_albums**]AlbumsApi.md#get_similar_albums | **GET** /albums/{id}/relationships/similarAlbums | Get similarAlbums relationship (\"to-many\").
[**patch_a_lbum_items**]AlbumsApi.md#patch_a_lbum_items | **PATCH** /albums/{id}/relationships/items | Update items relationship (\"to-many\").
[**patch_album**]AlbumsApi.md#patch_album | **PATCH** /albums/{id} | Update single album.
[**patch_album_cover_art**]AlbumsApi.md#patch_album_cover_art | **PATCH** /albums/{id}/relationships/coverArt | Update coverArt relationship (\"to-many\").



## create_album

> models::AlbumsSingleResourceDataDocument create_album(album_create_operation_payload)
Create single album.

Creates a new album.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**album_create_operation_payload** | Option<[**AlbumCreateOperationPayload**]AlbumCreateOperationPayload.md> |  |  |

### Return type

[**models::AlbumsSingleResourceDataDocument**](Albums_Single_Resource_Data_Document.md)

### Authorization

[Authorization_Code_PKCE](../README.md#Authorization_Code_PKCE)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## delete_album

> delete_album(id)
Delete single album.

Deletes existing album.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | Album id | [required] |

### Return type

 (empty response body)

### Authorization

[Authorization_Code_PKCE](../README.md#Authorization_Code_PKCE)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_album

> models::AlbumsSingleResourceDataDocument get_album(id, country_code, include, share_code)
Get single album.

Retrieves single album by id.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | Album id | [required] |
**country_code** | Option<**String**> | ISO 3166-1 alpha-2 country code |  |
**include** | Option<[**Vec<String>**]String.md> | Allows the client to customize which related resources should be returned. Available options: artists, coverArt, genres, items, owners, providers, replacement, similarAlbums, suggestedCoverArts |  |
**share_code** | Option<**String**> | Share code that grants access to UNLISTED resources. When provided, allows non-owners to access resources that would otherwise be restricted. |  |

### Return type

[**models::AlbumsSingleResourceDataDocument**](Albums_Single_Resource_Data_Document.md)

### Authorization

[Authorization_Code_PKCE](../README.md#Authorization_Code_PKCE), [Client_Credentials](../README.md#Client_Credentials)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_album_artists

> models::AlbumsMultiRelationshipDataDocument get_album_artists(id, page_cursor, country_code, include, share_code)
Get artists relationship (\"to-many\").

Retrieves artists relationship.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | Album id | [required] |
**page_cursor** | Option<**String**> | Server-generated cursor value pointing a certain page of items. Optional, targets first page if not specified |  |
**country_code** | Option<**String**> | ISO 3166-1 alpha-2 country code |  |
**include** | Option<[**Vec<String>**]String.md> | Allows the client to customize which related resources should be returned. Available options: artists |  |
**share_code** | Option<**String**> | Share code that grants access to UNLISTED resources. When provided, allows non-owners to access resources that would otherwise be restricted. |  |

### Return type

[**models::AlbumsMultiRelationshipDataDocument**](Albums_Multi_Relationship_Data_Document.md)

### Authorization

[Authorization_Code_PKCE](../README.md#Authorization_Code_PKCE), [Client_Credentials](../README.md#Client_Credentials)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_album_cover_art

> models::AlbumsMultiRelationshipDataDocument get_album_cover_art(id, page_cursor, country_code, include, share_code)
Get coverArt relationship (\"to-many\").

Retrieves coverArt relationship.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | Album id | [required] |
**page_cursor** | Option<**String**> | Server-generated cursor value pointing a certain page of items. Optional, targets first page if not specified |  |
**country_code** | Option<**String**> | ISO 3166-1 alpha-2 country code |  |
**include** | Option<[**Vec<String>**]String.md> | Allows the client to customize which related resources should be returned. Available options: coverArt |  |
**share_code** | Option<**String**> | Share code that grants access to UNLISTED resources. When provided, allows non-owners to access resources that would otherwise be restricted. |  |

### Return type

[**models::AlbumsMultiRelationshipDataDocument**](Albums_Multi_Relationship_Data_Document.md)

### Authorization

[Authorization_Code_PKCE](../README.md#Authorization_Code_PKCE), [Client_Credentials](../README.md#Client_Credentials)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_album_genres

> models::AlbumsMultiRelationshipDataDocument get_album_genres(id, page_cursor, country_code, include, share_code)
Get genres relationship (\"to-many\").

Retrieves genres relationship.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | Album id | [required] |
**page_cursor** | Option<**String**> | Server-generated cursor value pointing a certain page of items. Optional, targets first page if not specified |  |
**country_code** | Option<**String**> | ISO 3166-1 alpha-2 country code |  |
**include** | Option<[**Vec<String>**]String.md> | Allows the client to customize which related resources should be returned. Available options: genres |  |
**share_code** | Option<**String**> | Share code that grants access to UNLISTED resources. When provided, allows non-owners to access resources that would otherwise be restricted. |  |

### Return type

[**models::AlbumsMultiRelationshipDataDocument**](Albums_Multi_Relationship_Data_Document.md)

### Authorization

[Authorization_Code_PKCE](../README.md#Authorization_Code_PKCE), [Client_Credentials](../README.md#Client_Credentials)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_album_items

> models::AlbumsItemsMultiRelationshipDataDocument get_album_items(id, page_cursor, country_code, include, share_code)
Get items relationship (\"to-many\").

Retrieves items relationship.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | Album id | [required] |
**page_cursor** | Option<**String**> | Server-generated cursor value pointing a certain page of items. Optional, targets first page if not specified |  |
**country_code** | Option<**String**> | ISO 3166-1 alpha-2 country code |  |
**include** | Option<[**Vec<String>**]String.md> | Allows the client to customize which related resources should be returned. Available options: items |  |
**share_code** | Option<**String**> | Share code that grants access to UNLISTED resources. When provided, allows non-owners to access resources that would otherwise be restricted. |  |

### Return type

[**models::AlbumsItemsMultiRelationshipDataDocument**](Albums_Items_Multi_Relationship_Data_Document.md)

### Authorization

[Authorization_Code_PKCE](../README.md#Authorization_Code_PKCE), [Client_Credentials](../README.md#Client_Credentials)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_album_owners

> models::AlbumsMultiRelationshipDataDocument get_album_owners(id, include, page_cursor, share_code)
Get owners relationship (\"to-many\").

Retrieves owners relationship.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | Album id | [required] |
**include** | Option<[**Vec<String>**]String.md> | Allows the client to customize which related resources should be returned. Available options: owners |  |
**page_cursor** | Option<**String**> | Server-generated cursor value pointing a certain page of items. Optional, targets first page if not specified |  |
**share_code** | Option<**String**> | Share code that grants access to UNLISTED resources. When provided, allows non-owners to access resources that would otherwise be restricted. |  |

### Return type

[**models::AlbumsMultiRelationshipDataDocument**](Albums_Multi_Relationship_Data_Document.md)

### Authorization

[Authorization_Code_PKCE](../README.md#Authorization_Code_PKCE), [Client_Credentials](../README.md#Client_Credentials)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_album_providers

> models::AlbumsMultiRelationshipDataDocument get_album_providers(id, country_code, include, page_cursor, share_code)
Get providers relationship (\"to-many\").

Retrieves providers relationship.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | Album id | [required] |
**country_code** | Option<**String**> | ISO 3166-1 alpha-2 country code |  |
**include** | Option<[**Vec<String>**]String.md> | Allows the client to customize which related resources should be returned. Available options: providers |  |
**page_cursor** | Option<**String**> | Server-generated cursor value pointing a certain page of items. Optional, targets first page if not specified |  |
**share_code** | Option<**String**> | Share code that grants access to UNLISTED resources. When provided, allows non-owners to access resources that would otherwise be restricted. |  |

### Return type

[**models::AlbumsMultiRelationshipDataDocument**](Albums_Multi_Relationship_Data_Document.md)

### Authorization

[Authorization_Code_PKCE](../README.md#Authorization_Code_PKCE), [Client_Credentials](../README.md#Client_Credentials)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_album_replacement_replationship

> models::AlbumsSingleRelationshipDataDocument get_album_replacement_replationship(id, country_code, include, share_code)
Get replacement relationship (\"to-one\").

Retrieves replacement relationship.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | Album id | [required] |
**country_code** | Option<**String**> | ISO 3166-1 alpha-2 country code |  |
**include** | Option<[**Vec<String>**]String.md> | Allows the client to customize which related resources should be returned. Available options: replacement |  |
**share_code** | Option<**String**> | Share code that grants access to UNLISTED resources. When provided, allows non-owners to access resources that would otherwise be restricted. |  |

### Return type

[**models::AlbumsSingleRelationshipDataDocument**](Albums_Single_Relationship_Data_Document.md)

### Authorization

[Authorization_Code_PKCE](../README.md#Authorization_Code_PKCE), [Client_Credentials](../README.md#Client_Credentials)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_album_suggested_cover_arts

> models::AlbumsSuggestedCoverArtsMultiRelationshipDataDocument get_album_suggested_cover_arts(id, include, page_cursor, share_code)
Get suggestedCoverArts relationship (\"to-many\").

Retrieves suggestedCoverArts relationship.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | Album id | [required] |
**include** | Option<[**Vec<String>**]String.md> | Allows the client to customize which related resources should be returned. Available options: suggestedCoverArts |  |
**page_cursor** | Option<**String**> | Server-generated cursor value pointing a certain page of items. Optional, targets first page if not specified |  |
**share_code** | Option<**String**> | Share code that grants access to UNLISTED resources. When provided, allows non-owners to access resources that would otherwise be restricted. |  |

### Return type

[**models::AlbumsSuggestedCoverArtsMultiRelationshipDataDocument**](Albums_SuggestedCoverArts_Multi_Relationship_Data_Document.md)

### Authorization

[Authorization_Code_PKCE](../README.md#Authorization_Code_PKCE)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_albums

> models::AlbumsMultiResourceDataDocument get_albums(page_cursor, country_code, include, filter_left_square_bracket_barcode_id_right_square_bracket, filter_left_square_bracket_id_right_square_bracket, filter_left_square_bracket_owners_id_right_square_bracket, share_code)
Get multiple albums.

Retrieves multiple albums by available filters, or without if applicable.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**page_cursor** | Option<**String**> | Server-generated cursor value pointing a certain page of items. Optional, targets first page if not specified |  |
**country_code** | Option<**String**> | ISO 3166-1 alpha-2 country code |  |
**include** | Option<[**Vec<String>**]String.md> | Allows the client to customize which related resources should be returned. Available options: artists, coverArt, genres, items, owners, providers, replacement, similarAlbums, suggestedCoverArts |  |
**filter_left_square_bracket_barcode_id_right_square_bracket** | Option<[**Vec<String>**]String.md> | Barcode Id |  |
**filter_left_square_bracket_id_right_square_bracket** | Option<[**Vec<String>**]String.md> | Album id |  |
**filter_left_square_bracket_owners_id_right_square_bracket** | Option<[**Vec<String>**]String.md> | User id |  |
**share_code** | Option<**String**> | Share code that grants access to UNLISTED resources. When provided, allows non-owners to access resources that would otherwise be restricted. |  |

### Return type

[**models::AlbumsMultiResourceDataDocument**](Albums_Multi_Resource_Data_Document.md)

### Authorization

[Authorization_Code_PKCE](../README.md#Authorization_Code_PKCE), [Client_Credentials](../README.md#Client_Credentials)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_similar_albums

> models::AlbumsMultiRelationshipDataDocument get_similar_albums(id, page_cursor, country_code, include, share_code)
Get similarAlbums relationship (\"to-many\").

Retrieves similarAlbums relationship.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | Album id | [required] |
**page_cursor** | Option<**String**> | Server-generated cursor value pointing a certain page of items. Optional, targets first page if not specified |  |
**country_code** | Option<**String**> | ISO 3166-1 alpha-2 country code |  |
**include** | Option<[**Vec<String>**]String.md> | Allows the client to customize which related resources should be returned. Available options: similarAlbums |  |
**share_code** | Option<**String**> | Share code that grants access to UNLISTED resources. When provided, allows non-owners to access resources that would otherwise be restricted. |  |

### Return type

[**models::AlbumsMultiRelationshipDataDocument**](Albums_Multi_Relationship_Data_Document.md)

### Authorization

[Authorization_Code_PKCE](../README.md#Authorization_Code_PKCE), [Client_Credentials](../README.md#Client_Credentials)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## patch_a_lbum_items

> patch_a_lbum_items(id, album_items_relationship_update_operation_payload)
Update items relationship (\"to-many\").

Updates items relationship.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | Album id | [required] |
**album_items_relationship_update_operation_payload** | Option<[**AlbumItemsRelationshipUpdateOperationPayload**]AlbumItemsRelationshipUpdateOperationPayload.md> |  |  |

### Return type

 (empty response body)

### Authorization

[Authorization_Code_PKCE](../README.md#Authorization_Code_PKCE)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## patch_album

> patch_album(id, album_update_operation_payload)
Update single album.

Updates existing album.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | Album id | [required] |
**album_update_operation_payload** | Option<[**AlbumUpdateOperationPayload**]AlbumUpdateOperationPayload.md> |  |  |

### Return type

 (empty response body)

### Authorization

[Authorization_Code_PKCE](../README.md#Authorization_Code_PKCE)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## patch_album_cover_art

> patch_album_cover_art(id, album_cover_art_relationship_update_operation_payload)
Update coverArt relationship (\"to-many\").

Updates coverArt relationship.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | Album id | [required] |
**album_cover_art_relationship_update_operation_payload** | Option<[**AlbumCoverArtRelationshipUpdateOperationPayload**]AlbumCoverArtRelationshipUpdateOperationPayload.md> |  |  |

### Return type

 (empty response body)

### Authorization

[Authorization_Code_PKCE](../README.md#Authorization_Code_PKCE)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)