internal string GenerateJsonString() { dynamic jo = new JObject(); var insJ = JObject.FromObject(installed); jo.installed = insJ; var jstr = JSonUtills.ToJSonString(jo); return(jstr); }
private static void ListUserCalendarItemsViaGoogleAPI() { try { LoadApiSettings(); db.DbGoogle.AppUserId = uId; var irs = GoogleCalendarExecuter.ListEvents(new GoogleAccountRequest { CredentialsJsonString = googleApiData.GenerateJsonString(), GoogleDataStore = (IGoogleDataStore)db.DbGoogle }); var jstr = JSonUtills.ToJSonString(irs); } catch (Exception ex) { Logger.Instance.Error(ex); } }