Populate home screen a bit

This commit is contained in:
Brahim Hadriche committed 2022-11-05 14:46:01 -04:00
1 parent 201388bd27
commit 28b294dd3b
3 files changed
+28 -8

No files matched your search

+8 -2
View File
@@ -24,9 +24,15 @@ namespace RokuYoutube.Services.Invidious
end if
end function
function GetTrending()
function GetTrending(trendingType = invalid as string)
url = `${API_URL}${TRENDING_ENDPOINT}`
response = Requests().get(url)
args = { params: {} }
if trendingType <> invalid
args.params.type = trendingType
end if
response = Requests().get(url, args)
if response.statuscode = 200
return response.json