Posts

Showing posts with the label github-api

Is any library of nodejs work with GitHub API v4 exist?

Is any library of nodejs work with GitHub API v4 exist? Thank you guys cause reading my question. The title is exactly what i wanna known. Hope it do not cost your time much. github.com/jaredhanson/passport-github have you looked at this? – crellee Jun 29 at 10:14 1 Answer 1 Some of the most common graphql client are graphql.js and apollo-client. You can also use the popular request module. The graphql API is a single POST endpoint on https://api.github.com/graphql with a JSON body consisting of the query fields and the variables fields (if you have variables in the query) query variables const graphql = require('graphql.js'); var graph = graphql("https://api.github.com/graphql", { headers: { "Authorization": "Bea...