View on GitHub

ickstream-docs

Public documentation about the ickStream Music Platform

Create or update a favorite

Request:

{
    "jsonrpc": 2.0,
    "id": < A unique number used to correlate requests with responses, see JSON-RPC specification for more information >,
    "method": "saveFavorite",
    "params": {
        "id": <Optional, the globally unique identity, maximum 36 characters>,
        "parentId": <Optional, the identity of the parent favorite, if any>
        "text": <Textual name of favorite to display to user>,
        "image": <Optional, Image representation of favorite>,
        "type": <Type of item or "local">
        "serviceId": <identity of service which the favorite refers to, might be omitted if type=local>
        "params": { <Parameter value pairs which is used to execute/browse to the favorite>
                "attr1":"value1",
                "attr2":42,
                "attr3":false,
                ...
        }
    }
}

Response:

{
    "jsonrpc": 2.0,
    "id": < The request identity >,
    "result": {
        "id": <The globally unique identity, maximum 36 characters>,
        "parentId": <Optional, the identity of the parent favorite, if any>
        "text": <Textual name of favorite to display to user>,
        "image": <Optional, Image representation of favorite>,
        "type": <Type of item or "local">
        "serviceId": <identity of service which the favorite refers to, might be omitted if type=local>
        "params": { <Parameter value pairs which is used to execute/browse to the favorite>
                "attr1":"value1",
                "attr2":42,
                "attr3":false,
                ...
        }
    }
}

Specific information:

Category:Favorites Protocol