Sending request with requests
headers = {"Authorization": "token %s" % token} repos_url = 'https://api.github.com/user/repos' data = { "name": "Hello-World", "description": "This is your first repository", "homepage": "https://github.com", "private": False, "has_issues": True, "has_projects": True, "has_wiki": True } t = requests.get(repos_url,data=data,headers=headers) print (t.json) I get the answer <bound method Response.json of <Response [200] . What could be the reason?
print(t.json())- andreymal