implementing contents call for github api