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

Braze supports 250,000 requests per hour. But on my system, sometimes I need to send more. For now this

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745303264a4621564.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信