C: adding gist api wrapper