-
Notifications
You must be signed in to change notification settings - Fork 2
Usage
Insanerst edited this page Dec 6, 2024
·
3 revisions
Before we get started, the main url is https://roproxy-api.onrender.com
There are multiple endpoints in RoProxy which are the following:
Getting the game Id's of all the games the user made using the userId
Type: Number
Example: 12345678
Type: JSON
Example: {success:true, response: [12345678,87654321]}
local function fetchUserGames()
local apiUrl = "https://roproxy-api.onrender.com/api/user_games/123456789"
local success, response = pcall(function()
return HttpService:GetAsync(apiUrl)
end)
if success then
local data = HttpService:JSONDecode(response)
return data.response
end
end
Getting the game passes of a specific game using the Universe Id
Type: Number
Example: 98765432
Type:JSON
Example:{success:true, response:[16481863,51781934]}
local function fetchPasses()
local apiUrl = "https://roproxy-api.onrender.com/api/game_passes/98765432"
local success, response = pcall(function()
return HttpService:GetAsync(apiUrl)
end)
if success then
local data = HttpService:JSONDecode(response)
return data.response
end
end