Advertisement
Guest User

Untitled

a guest
Jan 15th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #!/usr/bin python3
  2.  
  3. import requests
  4. import json
  5.  
  6. url = 'http://redii.de:8087/api/v1/bot/login'
  7. body = ['redii', 't33eu7', '106VjvL94DN+5R4ozHfNn+yrOchgVrJjCmF5VQMEGidpWnYgcHxSZ1lCLQRmKwd4FFBlJUEeA2d+STEvUn0Jc3QJA0N1W1xVEAhITgF7LiMALTx8clpFUFl2OlIFDEIGUmoDAwgCBnBVSEZBaUVBcjBub3RMODNiaFhKRFFwL1pLekl4NTBCbCtXWWduOE1ZUnpVRjdjUWxqWT0=']
  8. header = {'content-type': 'application/json'}
  9.  
  10. #body[0] = input('Username: ')
  11. #body[1] = input('Password: ')
  12.  
  13. print(json.dumps(body))
  14.  
  15. response = requests.post(url, data=json.dumps(body), headers=header)
  16. data = response.json()
  17.  
  18. print(data)
  19. print(response)
  20. print('test')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement