最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

.net - How to send push notification to multiple users with different content using braze api - Stack Overflow

programmeradmin1浏览0评论

Braze supports 250,000 requests per hour. But on my system, sometimes I need to send more. For now this is how I am sending push notification using its api: Payload:

{
    broadcast = false,
    campaign_id = request.CampaignId,
    segment_id = request.SegmentId,
    external_user_ids = new[] { request.CustomerId.ToString() },
    schedule = new { time = request.TimeUtc, in_local_time = false, at_optimal_time = false, },
    messages = new
    {
        android_push = new
        {
            alert = bodyMessage,
            title = titleMessage,
            custom_uri = request.CustomUri,
            send_to_most_recent_device_only = true,
            message_variation_id = request.AndroidVariationId,
            extra = request.ExtraData,
        },
        apple_push = new
        {
            alert = new { body = bodyMessage, title = titleMessage },
            custom_uri = request.CustomUri,
            mutable_content = request.IsMutableContent,
            send_to_most_recent_device_only = true,
            message_variation_id = request.IosVariationId,
            extra = request.ExtraData,
        }
    }
}

In this case bodyMessage, titleMessage, and customerId will be different for each user. So, to avoid limit , I can collect all data and send it with one request to braze api every 5 mins. Is it possible to do this? I couldn't multi user payload in braze api docusmentation

发布评论

评论列表(0)

  1. 暂无评论