$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "mode": "generate-from-text",
< "imageData": "",
< "imageUrl": "",
< "text": "F",
< "backgroundColor": "#333333",
< "foregroundColor": "#FFFFFF",
< "outputFormats": [
< "png",
< "ico"
< ],
< "filePrefix": "favicon",
< "appName": "My PWA App",
< "shortName": "",
< "description": "",
< "themeColor": "#FFFFFF",
< "scope": "/",
< "startUrl": "/",
< "batch": [
< {
< "text": "F",
< "backgroundColor": "#4A90D9",
< "foregroundColor": "#FFFFFF",
< "format": "png"
< },
< {
< "text": "A",
< "backgroundColor": "#E74C3C",
< "foregroundColor": "#FFFFFF",
< "format": "ico"
< },
< {
< "text": "M",
< "backgroundColor": "#2ECC71",
< "foregroundColor": "#FFFFFF",
< "format": "svg"
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/acts/perryay~favicon-generator/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'