Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

octokit/rest.js#881

node v10.24.1
version: 1.0.0
endpointsharetweet
Getting the URL for endpoints with 3xx redirects: https://github.com/octokit/rest.js/issues/881. Demo to show that node-fetch works in Node.
const fetch = require('node-fetch') await fetch('https://api.github.com/repos/octocat/Hello-World/tarball/master', {method: 'HEAD'}) .then(response => { console.log(`URL: ${response.url}`) })
But currently does not work when using `@octokit/rest`
const octokit = require('@octokit/rest')() await octokit.repos.getArchiveLink({ method: 'HEAD', owner: 'octocat', repo: 'Hello-World', archive_format: 'tarball', ref: 'master' }) .then(response => { console.log(`URL: ${response.url}`) })
Loading…

1 comment

  • posted 5 years ago by alkanalkn63
    Hi recovery my google archive on open please now please thanksl we my family problem please on open

sign in to comment