aprescott / gist-backup

Back up all your public and private gist repositories.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

generate oauth token

lindXdeep opened this issue · comments

i'm trying:

#!/bin/bash
curl -u %myuser%:%mypass% \
  -H "Content-Type: application/json" \
  -X POST \
  -d '{"scopes":["gist"], "note": "gist backup"}' \
  https://api.github.com/authorizations

but I get this:

{
  "message": "Not Found",
  "documentation_url": "https://docs.github.com/rest"
}

what am I doing wrong?

Same.

the token retrieval method in the docs doesn't work anymore, you have to request it manually from the settings:

from github profile, go to Settings -> Developer settings -> Personal access tokens -> Tokens (classic), then make yourself a new one, with gist checked