File name: exports.md
Session: 01HY1B7ASJ0517Q6FNGQBFWBK3
Share your own terminal sessions, it's free and open source. Click here to learn more.
File name: exports.md
Session: 01HY1B7ASJ0517Q6FNGQBFWBK3
Share your own terminal sessions, it's free and open source. Click here to learn more.
runme | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
source exports.sh
fetch "https://api.github.com/"
# Ran on 2024-05-17 10:35:26-04:00 for 387ms exited with 0
{
"message": "Bad credentials",
"documentation_url": "https://docs.github.com/rest"
}
function fetch(){ | |
link=$1 | |
curl -L \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "Authorization: Bearer $TOKEN" \ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | |
$link | |
} |