Please provide working code that creates a Github repository using the API.
I have tried different versions of the following:
curl 'https://api.github.com/users/repos?client_id= myusername&client_secret=abcdefghijklmnopqrstuvwxyz1234567890abcd'
curl -u 'myusername' https://api.github.com/users/repos -d '{"name":"my-new-repo"}'
But I always get the following error:
"{
"message": "Bad credentials",
"documentation_url": "https://developer.github.com/v3"
}"
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…