コード例 #1
0
        private static void CaptureEvent(IGameStatsService statsService)
        {
            var response = statsService.CaptureEvent(new CaptureRequest
            {
                ProjectId = 1,
                PlayerId = string.Empty,
                IsPublic = true,
                Data = Convert.ToBase64String(File.ReadAllBytes(@"C:\Users\Felipe\Desktop\2fc15b0.jpg"))
            });

            Console.WriteLine(string.Format("Capture Event: {0}", response.Message));
            Console.WriteLine(string.Format("Capture Event Meta: {0}", response.Meta));
            Console.WriteLine("**********************************************************");
        }