DEMO 1: YOUR FIRST API REQUEST
chmod +x joke_fetcher.sh
nano joke_fetcher.sh
#!/bin/bash echo "=== Random Joke Fetcher ===" echo "" # Fetch a random joke from the API curl -s "https://official-joke-api.appspot.com/random_joke"
Run: ./joke_fetcher.sh
Output should be raw JSON data.
- curl: Tool for HTTP requests
- -s: Silent mode (hides progress bar)