jellyfin-roku/source/api_userlibrary.brs
2019-03-12 22:15:24 -05:00

13 lines
398 B
Plaintext

function MarkItemFavorite(id as String)
url = Substitute("Users/{0}/FavoriteItems/{1}", get_setting("active_user"), id)
resp = APIRequest(url)
return postJson(resp)
end function
function UnmarkItemFavorite(id as String)
url = Substitute("Users/{0}/FavoriteItems/{1}", get_setting("active_user"), id)
resp = APIRequest(url)
resp.setRequest("DELETE")
return getJson(resp)
end function