learning how to use the github API