$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "competitorName": "Intercom",
< "competitorAliases": [
< "Intercom",
< "intercom.com",
< "Intercom support"
< ],
< "productCategory": "customer support software",
< "yourProductDescription": "A simpler customer support platform for growing SaaS teams.",
< "targetUrls": [],
< "publicUrlSnippets": [],
< "allowedDomains": [
< "reddit.com",
< "news.ycombinator.com",
< "hn.algolia.com"
< ],
< "redditUserAgent": "nodejs:SwitchSignal:v1.0.0 (by /u/your_reddit_username)",
< "redditSeedUrls": [
< "https://www.reddit.com/r/SaaS/comments/example/intercom_alternative_discussion/"
< ],
< "redditSeedTexts": [
< "Intercom has become too expensive and support is slow. Looking for alternatives."
< ],
< "redditSearchIndexQueries": [
< "site:reddit.com/r/ \"Intercom alternative\"",
< "site:reddit.com/r/ \"Intercom too expensive\""
< ],
< "redditSearchIndexResultUrls": [
< "https://www.reddit.com/r/SaaS/comments/example/intercom_alternative_discussion/"
< ],
< "redditSearchIndexResultTitles": [
< "Intercom alternatives before renewal"
< ],
< "redditSearchIndexResultSnippets": [
< "Intercom has become too expensive and support has been painful. We are looking for alternatives before renewal."
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/neoscala~switchsignal/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'