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

admin2025-04-18  4

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

转载请注明原文地址:http://www.anycun.com/QandA/1744971124a90215.html