$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "reviews": [
< {
< "text": "Food was delicious and the patio is lovely, but we waited 25 minutes just to be seated with a half-empty dining room.",
< "rating": 3
< },
< {
< "text": "The staff were so warm and welcoming, remembered our names from last time. This is why we keep coming back.",
< "rating": 5
< },
< {
< "text": "Prices have crept up a lot and portions got smaller. Not the value it used to be.",
< "rating": 2
< },
< {
< "text": "Tables were sticky and the restroom clearly had not been cleaned. Great food ruined by poor hygiene.",
< "rating": 2
< },
< {
< "text": "Fast, friendly service and the best coffee in the neighborhood. Cozy atmosphere, perfect for working.",
< "rating": 5
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/acts/enezli~yelp-review-intelligence/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'