How would you make an http request to Roblox?

Thank you for your answer, and especially for going into that much detail. I will attempt to do this and report back if it works :smile:.

edit: I went to glitch.com and then just did “New Project --> Clone from Git Repo” and then inserted the noblox.js link into it. Would that work? When I click on “Show” this is the link that pops up https://torstcafe-app.glitch.me/

Please follow these guidelines before making a thread to ensure your question can be answered correctly, and that your thread is structured better.

From my reading of this thread, I do not quite understand what you are attempting to achieve. It would help if you were more specific and described what exactly you wanted to do.

In general - yes, you can send HTTP requests to the various Roblox API’s. Reading the documentation page for each one will provide you with detailed information on what is required to send a request successfully, this includes the HTTP Method, required or optional parameters, and whether or not you need to be logged into an authenticated user.

Take the fetch group wall posts API for example, it does not require you to be logged in, requires the method to be GET, the only required parameter (in bold) is the groupId, and the rest of the parameters, such as sortOrder are optional. It also provides you with the request URL so you can try it out for yourself.


EDIT If you would like a program to send requests from for testing purposes, or for experimentation in general I highly reccomend Postman. You can use it to send HTTP requests with different methods.

4 Likes

So why are you making a request to roblox? Could you get by with existing services provided?

1 Like

To explain, I am trying to make it so that I can create a function which allows me to change someone’s rank in a group, like API:promote(groupId, userId, rankId), and there is a url used by Roblox to do such a thing, which is
'//www.roblox.com/groups/api/change-member-rank?groupId=GROUPID&newRoleSetId=NEWROLESET&targetUserId=USERID'
and since HttpService doesn’t let you make requests to Roblox I have to use a proxy – but the problem is you need the login cookie and the XCRF token just to do that.

Damn there are so much baggage that comes along with that

1 Like

Check out noblox.js. Its a library written in Node.js which allows you to execute web functions easily. There’s also a noblox.js-server which you can easily deploy for use as a proxy. It will handle logging in and cookie refreshing for you.

2 Likes

Noblox says that I’m supposed to use Heroku, but it doesn’t work with Heroku anymore, so I’ve been using glitch.com but I’m not sure how to apply Noblox to glitch

I know this isnt the question, but are you sure you want to tangle up your account permissions with your game? Why are you even handling that meta data within the game

Since there’s currently no such function as “GroupService:SetRank()” this is my only option :confused:

No why are you setting group rank within the game and not just creating your own group system in game. It will become easier once cross server messaging is live as well i think.

You can pretty much literally copy paste all of the scripts over. It will install all library dependencies for you if you list them in your package.json

.Oh okay. I’ll see if that works :slight_smile: . Quick question though - which one do I use, noblox.js or noblox.js-server?

By reading your recent post, since you wish to set up a proxy server to handle user promotion requests, just use noblox.js-server and deploy it directly to glitch, rather than using the library to write your own server.

1 Like

I’m wondering if maybe using Trello would be easier, as in, making my own ranking system instead of using Roblox’s.

Trello is a task management suite tho

I don’t know what that means.

Like Bob has to do X, Y, and Z this week. Move his task from Todo, to InProgress, to Shipped.
What are you even ranking? Could it be handled by an https://en.wikipedia.org/wiki/Elo_rating_system keyed to playerId within a datastore?

Please refrain from going off topic. If one of the replies on this thread has answered your original question, mark it solved. A new thread should be created for other discussion or a different question.

4 Likes

I’m attempting to answer his real question, which is creating a ranking system as painlessly as possible. Creating a client to interface with roblox is needless work when he coudl do a single line of datastore code.

Upon reading the thread more carefully you will realise that OP wants to create a proxy server to handle HTTP requests in order to promote members of a group. This is unrelated to DataStores, or a matchmaking style ranking system like you are thinking of.