Aller au contenu

Make (Integromat)

Connectez Occult API à plus de 1 000 applications avec Make (anciennement Integromat).

Module HTTP

Ajoutez un module HTTP → Make a request. Réglez l’URL sur https://api.occultapi.com/api/astro/rashifal/daily/ et la méthode sur POST.

En-têtes

Ajoutez X-API-Key et Content-Type: application/json.

en-têtes
{
  "X-API-Key": "YOUR_API_KEY",
  "Content-Type": "application/json"
}

Corps

Envoyez un corps JSON avec le paramètre rashi.

corps
{
  "rashi": "aries"
}

Exemple de scénario

Déclencheur planifié (quotidien) → requête HTTP vers Occult API → filtre par signe du zodiaque → envoi d’un e-mail via le module Gmail avec le texte de l’horoscope.

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}}"
    }
  }
}

Exploiter la réponse

Utilisez le champ data.get_daily_rashifal.general_prediction de la réponse JSON dans les modules suivants.

réponse
{
  "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
      }
    }
  }
}