wulliy/wasteof2-docs

Help me get inn

Closed this issue · 2 comments

https://admin.wasteof.money/
I wanna be admin lol

I just typed and this came 🤣🤣
Said here cuz I thought u would be interested

Can u help me? How to make a post request to wall?

y = requests.post("https://api.wasteof.money/users/jeffalo/wall")
print(y)

How to use login? Where to put content of comment?

Can u help me? How to make a post request to wall?

y = requests.post("https://api.wasteof.money/users/jeffalo/wall")
print(y)

How to use login? Where to put content of comment?

#!/usr/bin/env python3
import requests
import json

username = input('Enter username for wasteof:')
password = input('Enter password for wasteof')
print('Authenticating...')

wAuth = requests.post('https://api.wasteof.money/session', data={'username': username, 'password': password})

token = json.loads(wAuth.text).token
print('Done!')

usersWall = input('Username of user’s wall to post to')
content = input('Text to post:')

wPost = requests.post('https://api.wasteof.money/users/'+usersWall+'/wall', headers={'token': token}, data={post: content})

print('it has been done')
print('here is the results:')
print(wPost.text)

note: I am very bad at python so this is probably not good code but it’s a base to work on

EDIT: fix hashbang