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.Networking; | |
using System.IO; | |
using System.Security.Cryptography; | |
using System.Text; | |
using UnityEngine; | |
using System; | |
namespace Mobcast.Coffee.AssetSystem | |
{ |
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
function setRequestBody(httpMethod, requestBody) { | |
var timestamp = ~~(Date.now()/1000); // easy way to get required type timestamp | |
var REQUEST = { | |
"application_id":"xxxxxx", // your own application_id | |
"auth_key":"yyyy", // your own auth_key | |
"timestamp":timestamp, | |
"nonce":timestamp, | |
"signature":"" | |
} | |
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
var focus = new Marionette.Application(); | |
Marionette.Behaviors.behaviorsLookup = function() { | |
return focus.behaviors; | |
}; | |
focus.router = new Marionette.AppRouter(); | |
focus.addRegions({ | |
mainRegion: '#mainRegion' |