Fixed incorrect usage of github api

more: https://developer.github.com/v3/gists/#detailed-gist-representation