$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "reviews": [
< {
< "text": "The room was spotless and the location right by the harbor was perfect. Breakfast had great variety.",
< "rating": 5
< },
< {
< "text": "Staff at reception were friendly, but check-in took almost 40 minutes. Frustrating after a long flight.",
< "rating": 3
< },
< {
< "text": "Walls are paper thin, we heard every footstep from the corridor all night. Could not sleep.",
< "rating": 2
< },
< {
< "text": "Amazing breakfast and the pool area was clean, but the room smelled of smoke despite being non-smoking.",
< "rating": 3
< },
< {
< "text": "Best value for money in the area. Comfortable bed, hot shower, and the staff recommended great restaurants.",
< "rating": 5
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/acts/enezli~tripadvisor-review-intelligence/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'