Skip to content

Instantly share code, notes, and snippets.

@tayl0r
Last active August 29, 2015 14:03
Show Gist options
  • Save tayl0r/6a5e3cf838cc5937181d to your computer and use it in GitHub Desktop.
Save tayl0r/6a5e3cf838cc5937181d to your computer and use it in GitHub Desktop.
bugsense breadcrumbs newlines
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