Hi I dont know if im allowed to put roblox API to python stuff on site, but I cant find any solution to my issue.
Anyways what im trying to acheive is username to user ID using requests module in python, allthough it spits out function like this: <function GetRBLXId at 0x0000014825903DC0>
Here is python source code:
def GetRBLXId():
r = requests.get(f"https://api.roblox.com/users/get-by-username?username=fepv").json()
return r
You probably did print(GetRBLXId) didn’t you?
EDIT:
Just for context in case anyone happens across this: You need to call functions, in python (the programming language above), and most languages, you call functions using parentheses (), so the correct way to call that function would be this: GetRBLXId()
1 Like
I actually did pprint(GetRBLXId) but yeah thanks
Is pprint a new variable or is just a typo? Just curious.
its a better version of print, like makes json tables more clear to read