Derrick Gold

  • Home
  • Albums
    • Alberta
    • Arizona
    • Berlin
    • Blink-182
    • Cambodia
    • Default
    • Indiana Jones
    • Italy
    • Japan
    • New York
    • Nova Scotia
    • Peru
    • Quebec
    • Shanghai
    • South Korea
    • Vancouver
  • Projects
    • AlexaSkillNodeLambdaSkeleton
    • Arkanoid-SCDS2
    • Atari-Boxing-NDS
    • BAGASMI
    • BAGPlug-SCDS2
    • Botty-McBotFace
    • BrainFuck-2600
    • Brickfall-NDS
    • CLinkedListExample
    • CMPT491Proj1
    • Cpgsql
    • CPUMemStats
    • CStuff
    • DeerFactValidator
    • DiskUsageDisplay
    • Dividends-2-Year-Trend
    • DownFall
    • DSTwoPong
    • Etch-NDS
    • fdshooter
    • MacEwanTeenyPascal
    • MarioPaintComposer-NDS
    • OpenPlugClientPy
    • OpenPlugServer
    • petulant-octo-spice
    • Pi-Doodle-Board
    • PyBot
    • Remote-Image-Browser
    • Remote-Music-Player
    • RemoteIndicator
    • Simple-File-Transfer
    • Simple-Virtual-Machine-Assembler
    • SmartReflectServer
    • SnowWars
    • SpaceInvaders-SCDS2
    • StaticWebpage
    • SysInfo
    • Tiny-Maze-Solver
    • UAPaint-NDS
    • XKCDComic
    • YoutubePlaylist
  • Music

OpenPlugServer

This page was programmatically generated from GitHub

ReadMe.md

API Documentation:

Creating playlists: route: {host}/playlists

action:
    post

parameters:
    playlist_name -> "some string"

Getting the current song from playlist: Current song field refers to a song id. route: {host}/playlists/{playlist name}

action:
    get

parameters:
    none

Getting all songs in playlist: route: {host}/playlists/{playlist name}/songs

action:
    get

parameters:
    page -> page of results to get
    limit -> number of results to return per page, default 15, max 150

sample response for: host/playlists/someplaylist/songs

{
  "total": 2,
  "per_page": 15,
  "current_page": 1,
  "last_page": 1,
  "next_page_url": null,
  "prev_page_url": null,
  "from": 1,
  "to": 2,
  "data": [
    {
      "id": 22,
      "playlist_id": 11,
      "priority": 22,
      "youtube_url": "https://www.youtube.com/watch?v=ANO7pshrZ3s",
      "title": "L.A. GUNS - Revolution (  Lyrics)",
      "artist": "unknown",
      "length": 208,
      "filesize": 3135242
    },
    {
      "id": 23,
      "playlist_id": 11,
      "priority": 23,
      "youtube_url": "https://www.youtube.com/watch?v=rZOpDoeVWBg",
      "title": "L.A. GUNS - Don't Look At Me That Way (  Lyrics)",
      "artist": "unknown",
      "length": 241,
      "filesize": 3785359
    }
  ]
}

Add song to playlist: route: {host}/playlists/{playlist name}/songs

action:
    post

parameters:
    youtube_url -> full youtube link
    title -> track title
    artist -> band name
    length -> in seconds

Get Song information from playlist: route: {host}/playlists/{playlist name}/songs/{song id}

action:
    get

parameters:
    none

sample response for: host/playlists/someplaylist/songs/22

{
  "id": 22,
  "playlist_id": 11,
  "priority": 22,
  "youtube_url": "https://www.youtube.com/watch?v=ANO7pshrZ3s",
  "title": "L.A. GUNS - Revolution (  Lyrics)",
  "artist": "unknown",
  "length": 208,
  "filesize": 3135242
}

Features to be added: Skipping tracks Reordering tracks

Project information

  • Project URL Github
© Copyright Derrick Gold. All Rights Reserved
Designed by BootstrapMade