Skip to content

Instantly share code, notes, and snippets.

@sourishkrout
Last active May 17, 2024 14:36
Show Gist options
  • Save sourishkrout/f92132a1ec0dc5cbe79c8ffdbe81cbaa to your computer and use it in GitHub Desktop.
Save sourishkrout/f92132a1ec0dc5cbe79c8ffdbe81cbaa to your computer and use it in GitHub Desktop.

File name: exports.md

Session: 01HY1B7ASJ0517Q6FNGQBFWBK3


▶️ Generated by Runme

Share your own terminal sessions, it's free and open source. Click here to learn more.

runme
document session
relativePath
exports.md
id updated
01HY1B7ASJ0517Q6FNGQBFWBK3
2024-05-17 10:35:28 -0400
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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment