Last active
August 29, 2015 14:03
-
-
Save tayl0r/6a5e3cf838cc5937181d to your computer and use it in GitHub Desktop.
bugsense breadcrumbs newlines
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
// for some reason its not letting me change the language to c# =( | |
// report is a HashTable with lots of bugsense data in it, including the breadcrumbs | |
string jsonReport = string.Format("data={0}", JsonFx.Json.JsonWriter.Serialize(report)); | |
var bytes = Encoding.UTF8.GetBytes(jsonReport); | |
WWW request = new WWW("http://www.bugsense.com/api/errors", | |
bytes, | |
//encoding.GetBytes("data=" + WWW.EscapeURL(jsonReport)), | |
new Dictionary<string, string>(){{"X-BugSense-Api-Key", _apiKey}} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment