İçeriğe atla

Make (Integromat)

Make (eski adıyla Integromat) ile Occult API'yi 1000'den fazla uygulamaya bağlayın.

HTTP modülü

Bir HTTP modülü → Make a request ekleyin. URL'yi https://api.occultapi.com/api/astro/rashifal/daily/, metodu POST olarak ayarlayın.

Başlıklar

X-API-Key ve Content-Type: application/json başlıklarını ekleyin.

başlıklar
{
  "X-API-Key": "YOUR_API_KEY",
  "Content-Type": "application/json"
}

Gövde

rashi parametresini içeren bir JSON gövdesi gönderin.

gövde
{
  "rashi": "aries"
}

Örnek senaryo

Zamanlanmış tetikleyici (günlük) → Occult API'ye HTTP isteği → Burca göre filtreleme → Burç yorumu metnini Gmail modülüyle e-posta olarak gönderme.

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

Yanıtı ayrıştırma

Sonraki modüllerde JSON yanıtındaki data.get_daily_rashifal.general_prediction alanını kullanın.

yanıt
{
  "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
      }
    }
  }
}