mStream/docs/API/shared_make-shared.md
2017-03-03 15:43:43 -05:00

780 B

**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
    playlist - Playlist that will be shared

  • JSON Example

    {
      'shareTimeInDays': 14,
      'playlist': ['/path/to/song1.mp3', '/path/to/song2/mp3']
    }
    
  • Success Response:

    • Code: 200
      Content:

      {
        'id': 'UUID_SRING',
        'token': 'TOKEN_STRING',
        'experiationdate':'TODO'
      }
      
  • NOTE:

    I got lazy and haven't included the expiration date yet. That's why the value is set to 'TODO'