$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "userAgent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36",
< "maxRequestRetries": 0,
< "sessionConfig": {
< "storageName": "login-sessions",
< "maxAgeSecs": 3600,
< "maxUsageCount": 100,
< "maxPoolSize": 100
< },
< "steps": [
< {
< "username": {
< "selector": "input#email"
< },
< "password": {
< "selector": "input#pass"
< },
< "submit": {
< "selector": "input[type=\"submit\"]"
< },
< "failed": {
< "selector": "[role=\"alert\"]"
< },
< "waitForMillis": 5000
< }
< ],
< "cookieDomains": [],
< "gotoTimeout": 30,
< "proxyConfiguration": {
< "useApifyProxy": true
< },
< "extraUrlPatterns": []
<}
<EOF
$curl "https://api.apify.com/v2/acts/pocesar~login-session/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'