Make (Integromat)
Conecte a Occult API a mais de 1000 apps com o Make (antigo Integromat).
Módulo HTTP
Adicione um módulo HTTP → Make a request. Defina a URL como https://api.occultapi.com/api/astro/rashifal/daily/ e o método como POST.
Cabeçalhos
Adicione X-API-Key e Content-Type: application/json.
{
"X-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json"
}Corpo
Envie um corpo JSON com o parâmetro rashi.
{
"rashi": "aries"
}Exemplo de cenário
Gatilho agendado (diário) → requisição HTTP à Occult API → filtro por signo → e-mail com o texto do horóscopo pelo módulo do Gmail.
{
"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}}"
}
}
}Lendo a resposta
Nos módulos seguintes, use o campo data.get_daily_rashifal.general_prediction da resposta JSON.
{
"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
}
}
}
}