atomicpages / gulp-download2

A better download utility for gulp
MIT License
6 stars 3 forks source link

403 when downloading from private repo github #1

Open quasiperfect opened 6 years ago

quasiperfect commented 6 years ago

hi

thanks in advance for your help

when i try to use a url like this one (a private repo) https://api.github.com/repos/{user}/{repo}/zipball?access_token={token} it fails with 403

the same url works in browser

any idea ?

atomicpages commented 6 years ago

If you open that URL in an incognito Window does it work?

quasiperfect commented 6 years ago

@atomicpages yes it works i tried with chrome and firefox

atomicpages commented 6 years ago

Can you provide some repro steps? I have some private repos but I can't seem to get this URL structure.

quasiperfect commented 6 years ago

sorry for the late reply i was in vacation

https://api.github.com/repos/{user}/{repo}/zipball?access_token={token}

https://api.github.com/repos/atomicpages/gulp-download2/zipball?access_token={token}

just replace {user} with the user, {repo} with your private repo name and {token} with one generated at https://github.com/settings/tokens/new and select "Full control of private repositories"

i got this from stackoverflow somewhere i can't find the post now