How to use ROBLOXSECURTY cookie when using POST (API)?

Hello!
I’m making some things with API and I’m wondering how would I do some stuff without the actual module (Python) using just Roblox’s API.
I’m making a bot that makes group wall posts. The module that I’m using doesn’t have that feature so I’m wondering how would I do that on my own.
How would I include that cookie (aka. Roblox account) with this:
https://api.roblox.com/v1/groups/1/wall/posts

Thank you!

5 posts were split to a new topic: Roblox User API

Thank you!
So roblox has the same cookie thing so I just specify it with (url, cookie=“abcd”)?

There are already full sets of APIs developed for Python, and many other languages. GitHub & BitBucket HTML Preview

I would link the discord, but I’m not sure if I’m allowed to.

I’m using the module you sent, but it doesn’t have an option to send group wall posts.

1 Like

If I do that:
robloxCookie = {"cookies"="abc123"}
dataToSend = {"body":"testing"}
data = requests.post(url, data=dataToSend, cookies=robloxCookie),
I get error 401

1 Like

My bad, I thought you were trying to shout, not post on the wall. What’s the need to post to the wall? Just curious.

For things, that you want to stay there for longer (as a changelog for example and a channel on Discord at the same time) as shout is removed as soon as there’s another one.

That’s true. 30 chararctersssss

because im a pro at python :sunglasses: I can help you easily

import requests

cookie = "yourrobloxcookiehere"
groupid = idofyourrobloxgrouphere

session = requests.Session()
self.session.cookies[".ROBLOSECURITY"] = cookie

session.post(
    url = "https://api.roblox.com/v1/groups/{groupId}/wall/posts".format(groupId = groupId)
    headers = {any headers if it needs i am not sure}
    data = {"body": "what you want to post"}
    allow_redirects = False
)

Thank you for that code, but it doesn’t seem to be working (even if I added commas and fixed .ROBLOXSECURITY). I also added csrf token in headers.
Second thing, how would I make it show me response (401,403,…)?

How wait. Doesn’t Roblox require users to complete captcha before making a wall post? Does that count for bots too?

oh yeah you’d need some kind of funcaptcha solver or something i’m not sure

If I use a cookie for logging into a ranking bot, will the cookie get reset if it’s used every day? Or will I need to log into the bot and get a new token every so often?

Please do not bump topics with off-topic questions.

.ROBLOSECURITY token is valid for a long time. Can’t really specify how long exactly, but for sure longer than few months. It is possible that it doesn’t even expire unless you enter the bot account manually and log out.

1 Like

Oof.

You can use this