doorkeeper requires JSON data, not HTTP parameters
This commit is contained in:
parent
6bb2c6e2e5
commit
7ec2c9d53c
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ def revoke(admin_username):
|
||||||
|
|
||||||
|
|
||||||
def slotmachien_request(username, command):
|
def slotmachien_request(username, command):
|
||||||
r = requests.post(config.slotmachien_url, data={
|
r = requests.post(config.slotmachien_url, json={
|
||||||
'username': username, 'token': config.slotmachien_token, 'text': command})
|
'username': username, 'token': config.slotmachien_token, 'text': command})
|
||||||
return r.text
|
return r.text
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue