Fixed incorrect usage of github api in example

more: https://developer.github.com/v3/gists/#detailed-gist-representation
Merge pull request #1490 from Vijar/master

Fixed incorrect usage of github api in example