git - Get private repos stats with Github API and ruby -


how can stats private repos in github ruby code? steps need do? know github api, have succeeded access public repo through curl command.

i found guide useful https://developer.github.com/guides/getting-started/ getting informations private repos explained step step, can reproduce curl commands , adapt ruby.

for instance, stats on contributors :

curl -h accept:application/json -u "yourlogin:yourpassword" https://api.github.com/repos/yourusernameororganization/theprivaterepo/stats/contributors 

note putting password in command line not recommended it's easier understand way.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -