import "pkg:/source/api/baseRequest.bs"
' V1 user endpoint shims — covers Jellyfin 10.7.x and 10.8.x
' All paths use the /Users/{userId}/ prefix that was removed in 10.9.
' Do NOT call these functions directly. Use the ApiClient class via GetApi().
namespace sdkV1
namespace users
' Get user profile image URL.
function GetImageURL(id as string, imagetype = "primary" as string, imageindex = 0 as integer, params = {} as object) as dynamic
return buildURL(Substitute("/users/{0}/images/{1}/{2}", id, imagetype, imageindex.toStr()), params)
end function
end namespace
end namespace