Github Token curl

Github Token curl

javiarch

Agregar nuevo token


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

Acceder a geojson.io logueandose con cuenta de github

https://github.com/login/oauth/authorize?client_id=62c753fd0faf18392d85&scope=gist,repo





Report Page