Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin python3
- import requests
- import json
- url = 'http://redii.de:8087/api/v1/bot/login'
- body = ['redii', 't33eu7', '106VjvL94DN+5R4ozHfNn+yrOchgVrJjCmF5VQMEGidpWnYgcHxSZ1lCLQRmKwd4FFBlJUEeA2d+STEvUn0Jc3QJA0N1W1xVEAhITgF7LiMALTx8clpFUFl2OlIFDEIGUmoDAwgCBnBVSEZBaUVBcjBub3RMODNiaFhKRFFwL1pLekl4NTBCbCtXWWduOE1ZUnpVRjdjUWxqWT0=']
- header = {'content-type': 'application/json'}
- #body[0] = input('Username: ')
- #body[1] = input('Password: ')
- print(json.dumps(body))
- response = requests.post(url, data=json.dumps(body), headers=header)
- data = response.json()
- print(data)
- print(response)
- print('test')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement