i can’t get around using json to insert data into an api call.
I tried some simple code but it just doesn’t work
import json
import requests
url = "https://presence.roblox.com/v1/presence/users"
body = json.dumps({"userIds": [1]})
response = requests.post(url, data=body)
presence = response.json()
print(presence)
im trying to set a parameter “userIds” so i can list the ids i want to check with the API, but im just confused.
New contributor
Pop Bob is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1