how the absolute hell does the wasteof api work?? 😭

comments (single view)

If you know python… rip

heck i use only python lmao

import requests

data = {"username":user, "password":passw} #put ur credentials 
token = requests.post("https://api.wasteof.money/session", json=data).json()["token"] 


login = {"Authorization": token}

post = requests.post(f"https://api.wasteof.money/posts",headers = login,json={"post": "hi, @Ankit_Anmol!!"})
print(post,post.json())

thonks

what am i doing wrong lol?

wait i think i found out

where exactly do i put my creds?

I meant I could give if u know python lol

View all comments