Roblox Developer Packages
Easy-to-integrate modules for your Roblox game, built on the Ranking API
BloxTech API Client
This package contains the core fundamentals to interact with the Ranking API, featuring auto-retries, a request queue, Promises and type-safety ✨
To install this package, follow these steps:
1
Generate a BloxTech API Key
Follow the steps in Ranking API to generate an API key, then continue with this guide.
2
3
4
6
7
🎉 You did it!
Now that BloxTech's API is installed, you can use it in your other Scripts.
To do this, add the following two lines at the top of your Script:
local BloxTech = require(game.ServerStorage.BloxTechAPI)
local BloxTechClient = BloxTech.new()
Now you can interact with BloxTechClient
directly to manage your group members:
Update member rank
BloxTechClient:setRank(8460964972, 1)
:andThen(function(response)
-- Runs when the rank has been updated successfully
print("Success", response)
end)
:catch(function(response)
-- Runs when the rank couldn't be updated
-- eg. because they already have this rank
warn("Error", response)
end)
Accept Join Request
BloxTechClient:acceptJoinRequest(8460964972)
:andThen(function(response)
-- Runs when the join request has been accepted successfully
print("Success", response)
end)
:catch(function(response)
-- Runs when the request couldn't be accepted
-- eg. because they haven't sent any request yet
warn("Error", response)
end)
Reject Join Request
BloxTechClient:rejectJoinRequest(8460964972)
:andThen(function(response)
-- Runs when the join request has been rejected successfully
print("Success", response)
end)
:catch(function(response)
-- Runs when the request couldn't be rejected
-- eg. because they haven't sent any request yet
warn("Error", response)
end)
Last updated
Was this helpful?