Github Token curl
javiarchAgregar nuevo token
![](/file/af8de9bec87da72943dff.png)
Desde la terminal, crea un archivo con content
javi@javi-Lenovo-ideapad-110-15IBR:~$ curl -v -H "Authorization: token 21ddfb8b1a53968b6101d857d3377955fa2ebcfc" -d '{"description": "a gist for a user with token api call","public": true,"files": {"file_12_06.txt": {"content": "String file contents"}}}' https://api.github.com/gists
Si el contenido es un JSON da error :@
curl -v -H "Authorization: token 21ddfb8b1a53968b6101d857d3377955fa2ebcfc" -d '{"description": "a gist for a user with token api call","public": true,"files": {"file_13_06.txt": {"content": "{
"type": "FeatureCollection",
"features": [ ]
}"}}}' https://api.github.com/gists
Agregar autorizacion OAuth
![](/file/2810c83a15165447bf399.png)
Acceder a geojson.io logueandose con cuenta de github
https://github.com/login/oauth/authorize?client_id=62c753fd0faf18392d85&scope=gist,repo
![](/file/1d86ad007ad73c4c6e3cd.png)