Skip to content

Insight_DRAFT

찰스 edited this page Jul 31, 2023 · 1 revision

GetUserInteractionStatisticsAsync

var messages = new List<IMessage>()
{
    new TextMessage("first"),
    new StickerMessage("6632","11825375")
    { 
        QuickReply = new QuickReply()
        {
            Items = new List<QuickReplyButtonObject>()
            {
                new QuickReplyButtonObject()
                {
                    Action = new UriAction()
                    {
                        Label = "test label",
                        Uri = "http://lunasoft.co.kr"
                    }
                }, 
                new QuickReplyButtonObject()
                { 
                    Action = new PostBackAction()
                    { 
                        Label = "pb action",
                        Data = "pb data"
                    }
                }
            }
        }
    }
};

string promotionUnit = "Promotion_TEST";

await client.Message.SendPushMessageAsync(
    "user id",
    messages,
    customAggregationUnits: new List<string> { promotionUnit });

await Task.Delay(2000); 

var result = await client.Insight.GetStatisticsPerUnitAsync(promotionUnit, new DateOnly(2023, 7, 31), new DateOnly(2023, 7, 31));
Clone this wiki locally