public static void Main()
var webRequest = System.Net.WebRequest.Create("https://h43g8zb8h3.execute-api.us-west-2.amazonaws.com/game-woodpunk/events");
webRequest.Method = "POST";
webRequest.Timeout = 10000;
webRequest.ContentType = "application/json";
webRequest.Headers.Add("Authorization", "77640c79dfaca0dc1b7cf1c66ef8503e");
webRequest.Headers.Add("X-Api-Version", "1.1.0");
using (var streamWriter = new System.IO.StreamWriter(webRequest.GetRequestStream()))
string userId = "userId";
string osVersion = "Windows 10";
string resolution = "1920x1080";
string json = "{\"user_id\":\""+userId+"\",\"type\":\"game_launch\",\"identifiers\":{\"os\":\""+osVersion+"\",\"resolution\":\""+resolution+"\"}}";
streamWriter.Write(json);
using (System.IO.Stream s = webRequest.GetResponse().GetResponseStream())
using (System.IO.StreamReader sr = new System.IO.StreamReader(s))
var jsonResponse = sr.ReadToEnd();
Console.WriteLine(String.Format("Response: {0}", jsonResponse));
Console.WriteLine(ex.ToString());