Enviar por atributo
POSThttps://pushvex.online/api/v1/send-attribute.php
Envia para inscritos cujo atributo tenha exatamente o valor informado (veja Atributos e tags).
Corpo da requisição
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
attribute | object | Sim | Objeto com name e value. |
title | string | Sim | Título. |
message | string | Sim | Texto. |
target_url | string | Não | URL aberta ao clicar. |
icon | string | Não | URL do ícone. |
image | string | Não | URL de imagem grande. |
Exemplo
curl -X POST https://pushvex.online/api/v1/send-attribute.php \
-H "X-Site-Key: SUA_SITE_KEY" \
-H "X-Auth-Token: SEU_AUTH_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"attribute": { "name": "plano", "value": "vip" },
"title": "Novidade para assinantes VIP",
"message": "Conteúdo exclusivo liberado."
}'