I am trying to post a blob to the GitHub API in JavaScript / jQuery as per the docs  https://developer.github.com/v3/git/blobs/#create-a-blob - however I keep receiving a 404 request  My current request in JavaScript looks like so:  var uploadURL =&#...
If I have a Javascript object, parsed from JSON, that’s nested three deep, and I don’t know the key for the middle one, how to I access it and its contents?  The actual data I’m working with is from the Github API. For this example, I want the...
Is there any way to enable Github pages through the api? Not requesting a page build, I mean the initial enabling of the feature and pointing to a branch....
I'm currently writing a small database of git reps and im wondering how i would go ahead and get the date of the latest commit if i have the rep listed in my database.  I've never worked with the github API and im having a bit of a hard time...
I'm trying to get an access token from Github using a NodeJS client.  const axios = require("axios"); var jwt = require("jsonwebtoken");  exports.openedPOST = function openedPOST(req, res) {  // generate jwt const now = Math.round...
I need to update a file on GitHub from JavaScript running in a client browser application. The file may be larger than 1mb so I cannot use the octokit createFile() function which is limited to files less than 1mb.  I have an authenticated user throug...
I'm trying to build an html file to monitor some things on a remote site- specifically, github.com.  I'd like to be able to keep it to just that flat file, making the requests straight from the JS to github's API.  My thought process went...
I am trying to retrieve some data from Github's GraphQL API using graphql.js library.  var graph = graphql("https://api.github.com/graphql", {   method: "POST",   headers: {     "Authorization": "Bearer <my-token-he...
GitHub's new GraphQL API requires authentication with a token as the previous version. So, how do we add a 'Header' information into the HttpLink inside Apollo-Client?  const client = new ApolloClient({   link: new HttpLink({ uri: 'ht...
I'd like to use the chrome.identity API in a chrome packaged app to allow the user to authenticate with github.  From the app side, I'm happy with:  chrome.identity.launchWebAuthFlow(   {'url':'https://github.com/login/oauth/autho...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.