Direkt zum Inhalt

Make (Integromat)

Verbinde die Occult API über Make (früher Integromat) mit mehr als 1000 Apps.

HTTP-Modul

Füg ein HTTP-Modul → Make a request hinzu. Stell die URL auf https://api.occultapi.com/api/astro/rashifal/daily/ und die Methode auf POST.

Header

Füg X-API-Key und Content-Type: application/json hinzu.

Header
{
  "X-API-Key": "YOUR_API_KEY",
  "Content-Type": "application/json"
}

Body

Schick einen JSON-Body mit dem Parameter rashi.

Body
{
  "rashi": "aries"
}

Beispielszenario

Zeitplan-Trigger (täglich) → HTTP-Anfrage an die Occult API → Filter nach Tierkreiszeichen → E-Mail mit dem Horoskoptext über das Gmail-Modul senden.

make-scenario
{
  "1": {
    "module": "schedule",
    "filter": { "schedule": "every day at 07:00" }
  },
  "2": {
    "module": "http",
    "filter": {
      "url": "https://api.occultapi.com/api/astro/rashifal/daily/",
      "method": "POST",
      "headers": {
        "X-API-Key": "{{5.access_token}}",
        "Content-Type": "application/json"
      },
      "body": {
        "rashi": "aries"
      }
    }
  },
  "3": {
    "module": "gmail",
    "filter": {
      "to": "user@example.com",
      "subject": "Daily Horoscope",
      "text": "{{2.body.data.get_daily_rashifal.general_prediction}}"
    }
  }
}

Antwort auswerten

Nutz in den folgenden Modulen das Feld data.get_daily_rashifal.general_prediction aus der JSON-Antwort.

Antwort
{
  "data": {
    "get_daily_rashifal": {
      "general_prediction": "Today is a great day for Aries...",
      "aspects": {
        "love": "Romance is in the air...",
        "career": "New opportunities await...",
        "health": "Stay active and hydrated..."
      },
      "lucky": {
        "color": "Red",
        "number": 7
      }
    }
  }
}