[OPEN SOURCE] HttpProxyService | Easily Send HTTP Requests to Roblox API/Discord Webhooks

HttpProxyService

Send HTTP requests to Roblox APIs or Discord Webhooks in-game.

7 Likes

Heroku is great, but repl.it is better!
I think you can just post the serverside web code and just let people use their own Host or their favorite host instead of just showing us the deploy button of heroku.

Also, you can list popular API endpoints like groups, games etc… in your exemples!
(Like how to get number of people in a group or in a game)

1 Like

Thanks for your suggestion! I appreciate it

Heroku is actually better in many ways, rep.lit restarts itself every 4-6 hours while heroku rarely restarts unless its run into an error.

2 Likes

I added more features

HttpProxyService:FormatParams

Parameters

Name Type Default Required
url string true
params dictionary {} false

Example

local HttpProxyService = require(game:GetService("ServerStorage"):WaitForChild("HttpProxyService"))

local FormattedData = HttpProxyService:FormatParams("https://catalog.roblox.com/v1/search/items/details", {
	Category = 3,
	Keyword = "Pants"
})

print(FormattedData) --> https://catalog.roblox.com/v1/search/items/details?Category=3&Keyword=Pants
1 Like

I had many issues with heroku, like the 25th day of the month, heroku stop my app because I need to pay :confused:

1 Like

Is your dyno type worker or web? web dyno goes to sleep automatically when not in-use and wakes up when called. worker dyno always online so you will need to pay to keep it up after you’ve run out of free worker dyno months.

I’m not sure tho but that’s what I think

i’m not sure too lol, been a long time I didn’t launched heroku. I just remember bad things happened and makes me rage quit heroku and hosting my own apps

1 Like

Added authentication and password feature
You do not need to provide X-CSRF-TOKEN/Cookie on the headers, as it is on the Heroku side.

I added multiple user support for using Roblox API with different credentials.

Get the friend count for User1

local HttpProxyService = require(game:GetService("ServerStorage"):WaitForChild("HttpProxyService"))

local Data = HttpProxyService:GetAsync("https://friends.roblox.com/v1/my/friends/count", true, {
	currentuser = "User1" --Replace with the user you added in the config var (Case sensitive)
}) --> { count: number_of_friends }

print(Data.count) --> 4 (Number of friends on the first user)

Get the friend count for User2

local HttpProxyService = require(game:GetService("ServerStorage"):WaitForChild("HttpProxyService"))

local Data = HttpProxyService:GetAsync("https://friends.roblox.com/v1/my/friends/count", true, {
	currentuser = "User2" --Replace with the user you added in the config var (Case sensitive)
}) --> { count: number_of_friends }

print(Data.count) --> 90 (Number of friends on the second user)

For full tutorial on how to add users, read my GitHub page :smiley:

I added PatchAsync and DeleteAsync, also fixed some bugs.

sorry for bumping this but i don’t want this project to die so if you have any suggestions feel free to message me and if theres any issues you can create a issue in github

For some reason when I use this to do :GetAsync I get error that I’m not allowed to interact with ROBLOX Services

1 Like

Can you show the error in the output?