$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "reviews": [
< {
< "id": "r1",
< "title": "Great value",
< "text": "Excellent build quality and it arrived two days early. Easy to set up, highly recommend.",
< "rating": 5
< },
< {
< "id": "r2",
< "title": "Stopped working",
< "text": "Broken after three weeks. Customer service refused a refund. Waste of money.",
< "rating": 1
< },
< {
< "id": "r3",
< "text": "It is ok for the price, nothing special.",
< "rating": 3
< },
< {
< "id": "r4",
< "title": "Ottimo prodotto",
< "text": "Materiali solidi e spedizione veloce, lo consiglio.",
< "rating": 5
< },
< {
< "id": "r5",
< "text": "Not good. The packaging was damaged and the seller was slow to reply.",
< "rating": 2
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/jobdata_labs~review-sentiment-analyzer/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'