示例#1
0
        public static byte[] Build(string apiKey, int appId, string userId, string deviceId, string appVersion, long time, string events)
        {
            string text = PostBodyBuilder.CreateSessionToken(apiKey, appId, userId, time);
            string s    = string.Format(PostBodyBuilder.Format, new object[]
            {
                userId,
                2,
                appVersion,
                text,
                deviceId,
                events
            });

            return(Encoding.UTF8.GetBytes(s));
        }
        public static byte[] BuildQaEvent(string apiKey, int appId, string userId, string deviceId, string appVersion, long time, string events)
        {
            var encodedData = Encoding.UTF8.GetBytes(PostBodyBuilder.QaEventPostString(apiKey, appId, userId, deviceId, appVersion, time, events));

            return(encodedData);
        }
        public static byte[] BuildIdentify(string apiKey, string userId, string externalUserId, string deviceId)
        {
            var encodedData = Encoding.UTF8.GetBytes(PostBodyBuilder.IdentifyPostString(apiKey, userId, externalUserId, deviceId));

            return(encodedData);
        }