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

comments

I could give my code if you want..?

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

See more replies

where exactly do i put my creds?

I meant I could give if u know python lol

look at @willy’s api docs theyre epic and poggers

no i know, but how do i actually post from the api…-