Skip to content

Instantly share code, notes, and snippets.

@joelmgallant
Created September 16, 2013 18:53
Show Gist options
  • Save joelmgallant/6584869 to your computer and use it in GitHub Desktop.
Save joelmgallant/6584869 to your computer and use it in GitHub Desktop.
#region Override Methods
protected override IEnumerator PostJSON(string json, JSONEvent evt)
{
// API authentication...
if(api_required)
{
string hashed = GetApiAuthToken(json);
json += "&api_auth_token=" + hashed;
}
json = "apprequest=" + json;
yield return StartCoroutine(base.PostJSON(json, evt));
}
#endregion Override Methods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment