Update script to use Gihub's API version 3