Thanx everyone in this thread. I was searching for this feature.
Downloaded it yesterday but got the same results as @blether.
Changes made to make it work.
Request.post(...).json seems to be the problem for me.
Changed it to regular post. And returned json.Loads(r.content).
r = requests.post(api_url + gist, data=json.dumps(payload),headers=headers).json return r
r = requests.post(api_url + gist, data=json.dumps(payload),headers=headers) return json.loads(r.content)
This fixed the problem.
Added some minor changes.
Download script misses import sys.
When commited or forked an script. It now shows an message that it was sucesful posted. I found it annoying the old approach. No news is good news.
I hope this post helps anyone else.
I have made the changes, but python is still very new to me. So if I did something don't hold this against me:-)