example of getting a promise from githubs api
added an error in the event the api call fails