$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "reviews": [
< {
< "text": "Lovely dinner, the duck was perfect and the staff were warm. We will come back.",
< "rating": 5,
< "placeName": "Sample Bistro",
< "category": "Restaurant"
< },
< {
< "text": "Food was good but we waited 50 minutes for our mains and nobody apologized.",
< "rating": 3,
< "placeName": "Sample Bistro",
< "category": "Restaurant"
< },
< {
< "text": "Overpriced for tiny portions. Our table next to the door was freezing.",
< "rating": 2,
< "placeName": "Sample Bistro",
< "category": "Restaurant"
< },
< {
< "text": "Found a hair in my salad and the waiter just shrugged. Never again.",
< "rating": 1,
< "placeName": "Sample Bistro",
< "category": "Restaurant"
< },
< {
< "text": "Great wine list and a cozy atmosphere, a bit noisy on Friday night.",
< "rating": 4,
< "placeName": "Sample Bistro",
< "category": "Restaurant"
< }
< ],
< "businessType": "auto",
< "maxReviews": 500,
< "maxReviewsPerPlace": 100
<}
<EOF
$curl "https://api.apify.com/v2/actors/sherwood~review-analyzer/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'