working getGithubData mehtod