diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-10-03 00:14:59 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2014-10-03 00:14:59 +0200 |
commit | bc3550b0ff9959cd44702e6e98a5df43a3f52254 (patch) | |
tree | ee5f1ecc9164d8ef14d1352b1378f2cf230df03d /client/bug_open.py | |
parent | fb217ca2658c25f4df0a9b9b471ad85c608377a9 (diff) | |
download | tbt-bc3550b0ff9959cd44702e6e98a5df43a3f52254.tar.xz |
another big dump. github oauth authentiation is "working"
But it's done really hackily and probably should never be done like
this.
Diffstat (limited to 'client/bug_open.py')
-rwxr-xr-x | client/bug_open.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/bug_open.py b/client/bug_open.py index 17a3e4f..e9ecb19 100755 --- a/client/bug_open.py +++ b/client/bug_open.py @@ -38,16 +38,16 @@ def call(args): ticket = { 'summary': summary, 'body': body, - 'user_nickname': 'demi' + 'token': 'TOKENHERE' } headers = { 'Content-Type': 'application/json', - 'Accept': 'text/plain' + 'Accept': 'text/plain', } payload = json.dumps(ticket) - r = requests.post(api_endpoint, data=payload, headers=headers) + r = requests.post(api_endpoint, data=payload, headers=headers, verify=False) t = json.loads(r.text).get('ticket') |