GitHub API, How to get data from a repo inside the terminal

 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

https://www.youtube.com/watch?v=2C1dqXXAii0 


How to use GitHub REST API for Beginners ?

https://www.youtube.com/watch?v=OvfLavRD1Os&t=132s

Authentication 

[root@cmptest01-cc github-cli]# gh auth login
? What account do you want to log into? GitHub.com
? You're already logged into github.com. Do you want to re-authenticate? Yes
? What is your preferred protocol for Git operations? HTTPS
? How would you like to authenticate GitHub CLI? Login with a web browser

! First copy your one-time code: 7E8D-5D9A
Press Enter to open github.com in your browser...
! Failed opening a web browser at https://github.com/login/device
  exec: "xdg-open,x-www-browser,www-browser,wslview": executable file not found in $PATH
  Please try entering the URL in your browser manually
✓ Authentication complete.
- gh config set -h github.com git_protocol https
✓ Configured git protocol
✓ Logged in as sbalakrishn
 

Comments

Popular posts from this blog

GitHub : Webhooks Events and Payloads

GitHub-API -CLI