public KnetikApiResponse GuestLogin(
Action<KnetikApiResponse> cb = null
)
{
Username = "";
Password = "";
Session = "";
JSONObject json = new JSONObject (JSONObject.Type.OBJECT);
json.AddField ("serial", KnetikApiUtil.getDeviceSerial());
json.AddField ("mac_address", KnetikApiUtil.getMacAddress ());
// Device Type is currently limited to 3 characters in the DB
json.AddField ("device_type", KnetikApiUtil.getDeviceType());
json.AddField ("signature", KnetikApiUtil.getDeviceSignature());
String body = json.Print();
KnetikRequest req = CreateRequest(SessionEndpoint, body);
KnetikApiResponse res = new KnetikLoginResponse(this, req, cb);
return res;
}