Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browse list Integration. #331

Open
nklerk opened this issue Nov 18, 2019 · 0 comments
Open

Browse list Integration. #331

nklerk opened this issue Nov 18, 2019 · 0 comments

Comments

@nklerk
Copy link
Member

@nklerk nklerk commented Nov 18, 2019

Browsing starting point.
/

Function => .getPath("/");

Example response from Integration root ("/"), including different (to be) supported features.

{
    "backPath": "/",
    "currentPath": "/",
    "homePath": "/",
    "list": [{
            "description": "Optional Banner description 1",
            "image": "http://www.example.com/icon.png",
            "imageType": "URL",
            "name": "Name of Banner",
            "type": "banner"
        }, {
            "description": "2nd line description 1",
            "image": "http://www.example.com/icon.png",
            "imageType": "URL",
            "name": "Name of item 1",
            "number": 1,
            "outline": "A full description of the item, this could be the lyrics, a story behind the artist or a full description of a movie title.",
            "target": "UniqueIdOfItem1",
            "type": "listItem"
        }, {
            "description": "2nd line description 2",
            "image": "iVBORw0KGgoAAAANSUhEUgAAAP8AAABfCAYAAAAnFBEkAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA+vSURBVHhe7Z27chvJFYa7QdaGFtfldAVQKldttmTmTNzM2VJPsFToSFToaK0nEPUEpDJnpCKXI1FPICl2iQK4iSMv6cilItE+f88ZcLpnBgQwt+7B+aq4mB6uTexM/31ufdFKEIQcw+Fwiz62NpXaMUqNtNFD+tzBPfyehGN/j2viCv+g3+PT/hhjPumBGtO/N/48mZzj96Eh4hcEAmL/hkR+q9SeMvonEsYOqSMVd3WMGtM/z5Q272+UOp9MJnbA6BL9+OHoFX0eJM0ZZ58vx8/4WmgAdLZNoz/QZbaDXVHneNaGpXg8HJGhuuPzBEZq/Xg8HFqx0+VBrWK/B2PUOXkH",
            "imageType": "base64",
            "name": "Name of item 2",
            "number": 2,
            "outline": "A full description of the item, this could be the lyrics, a story behind the artist or a full description of a movie title.",
            "target": "UniqueIdOfItem2",
            "type": "listItem"
        }, {
            "description": " 2nd line description ",
            "image": " http: //www.example.com/icon.png",
            "imageType": "URL",
            "name": " Albums ",
            "target": "/Albums/",
            "type": " listPath "
        }, {
            "description": " 2nd line description ",
            "image": "iVBORw0KGgoAAAANSUhEUgAAAP8AAABfCAYAAAAnFBEkAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA+vSURBVHhe7Z27chvJFYa7QdaGFtfldAVQKldttmTmTNzM2VJPsFToSFToaK0nEPUEpDJnpCKXI1FPICl2iQK4iSMv6cilItE+f88ZcLpnBgQwt+7B+aq4mB6uTexM/31ufdFKEIQcw+Fwiz62NpXaMUqNtNFD+tzBPfyehGN/j2viCv+g3+PT/hhjPumBGtO/N/48mZzj96Eh4hcEAmL/hkR+q9SeMvonEsYOqSMVd3WMGtM/z5Q272+UOp9MJnbA6BL9+OHoFX0eJM0ZZ58vx8/4WmgAdLZNoz/QZbaDXVHneNaGpXg8HJGhuuPzBEZq/Xg8HFqx0+VBrWK/B2PUOXkH",
            "imageType": "base64",
            "name": " Artists ",
            "target": "/Artists/",
            "type": " listPath "
        }
    ],
    "title": "Name of Shown List"
}

Response example of an imaginary path "/Artists/Armin van Buren/Imagine/"
Function => .getPath("/Artists/Armin van Buren/Imagine/");


{
    "backPath": "/Artists/Armin van Buren/",
    "currentPath": "/Artists/Armin van Buren/Imagine/",
    "homePath": "/Artists/",
    "list": [{
            "description": "Armin van Buren",
            "image": "http://www.example.com/icon.png",
            "imageType": "URL",
            "name": "Bla Bla Bla",
            "number": 1,
			"outline": "A full description of the item, this could be the lyrics, a story behind the artist or a full description of a movie title.",
            "target": "UniqueIdOfItem1",
            "type": "banner"
        }, {
            "description": "Armin van Buuren feat. Sam Martin",
            "image": "http://www.example.com/icon.png",
            "imageType": "URL",
            "name": "Wild Wild Son",
            "number": 2,
            "outline": "A full description of the item, this could be the lyrics, a story behind the artist or a full description of a movie title.",
            "target": "UniqueIdOfItem2",
            "type": "listItem"
        }
    ],
    "title": "Imagine, Armin van Buren"
}

Selecting an item function => .getItem("play", "UniqueIdOfItem2")
Supported buttons for Item:

  • play
  • queue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.