mirror of
https://github.com/IrosTheBeggar/mStream.git
synced 2025-10-27 07:31:02 +00:00
40 lines
644 B
Markdown
40 lines
644 B
Markdown
**Share a Playlist**
|
|
----
|
|
Generates an access token for a shared playlist and saves the token/playlist under a UUID for easy retrieval
|
|
|
|
* **URL**
|
|
|
|
/shared/make-shared
|
|
|
|
* **Method:**
|
|
|
|
`POST`
|
|
|
|
* **JSON Params**
|
|
|
|
**Required:**
|
|
|
|
`shareTimeInDays` - Token will expire after this period of time<br />
|
|
`playlist` - Playlist that will be shared
|
|
|
|
|
|
* **JSON Example**
|
|
|
|
```
|
|
{
|
|
'shareTimeInDays': 14,
|
|
'playlist': ['/path/to/song1.mp3', '/path/to/song2/mp3']
|
|
}
|
|
```
|
|
|
|
* **Success Response:**
|
|
|
|
* **Code:** 200 <br />
|
|
**Content:**
|
|
|
|
```
|
|
{
|
|
'playlist_id': 'UUID_SRING',
|
|
'token': 'TOKEN_STRING'
|
|
}
|
|
``` |