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条)