requests.post(
'https://api.github.com/gists',
params = {
'description':'Неоригинальное описание',
'public':True,
'files': {
'test.txt': {
'content':'Содержимое test.txt'
}
},
'access_token':'Мой токен'
}).json()
{'message': "Invalid request.\n\nFor 'links/0/schema', nil is not an object.", 'documentation_url': 'https://developer.github.com/v3/gists/#create-a-gist'}