generate oauth token
lindXdeep opened this issue · comments
[IgorLinder] commented
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?
Jan Stanstrup commented
Same.
Leonard Ritter commented
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