public string DeleteAccount(string account_username) { Dictionary <string, string> get_params = new Dictionary <string, string>(); get_params.Add("username", account_username); SBasic <string> response = RESTService.MakeAndExecuteGetRequest <string>("/api/account/delete/{username}", get_params); if (response != null) { if (response.data != null) { return(response.data); } } return(null); }
public List <SWebAccount> GetWebAccountsCreatedSince(string year, string month, string day, string hour, string minute) { Dictionary <string, string> get_params = new Dictionary <string, string>(); get_params.Add("year", year); get_params.Add("month", month); get_params.Add("day", day); get_params.Add("hour", hour); get_params.Add("minute", minute); SBasic <List <SWebAccount> > response; response = RESTService.MakeAndExecuteGetRequest <List <SWebAccount> >("/api/sync/webaccounts/created/since/{year}/{month}/{day}/{hour}/{minute}", get_params); if (response != null) { if (response.data != null) { return(response.data); } } return(null); }
//public List<string> GetInteractionLogFiles(long from, long to) //{ // Dictionary<string, string> get_params = new Dictionary<string, string>(); // get_params.Add("datetime_from", from.ToString()); get_params.Add("datetime_to", to.ToString()); get_params.Add("site", Configurations.GetSiteNameForServer()); // SBasic<List<String>> response; // response = RESTService.MakeAndExecuteGetRequest<List<String>>("/api/log/from/{datetime_from}/to/{datetime_to}/at/{site}" + Configurations.GetSiteNameForServer(), get_params); // if (response != null) // if (response.data != null) // return response.data; // return null; //} public List <SInteractionLog> GetInteractionLogs(string year, string month, string day, string hour, string minute) { Dictionary <string, string> get_params = new Dictionary <string, string>(); get_params.Add("year", year); get_params.Add("month", month); get_params.Add("day", day); get_params.Add("hour", hour); get_params.Add("minute", minute); get_params.Add("site", Configurations.GetSiteNameForServer()); SBasic <List <SInteractionLog> > response; response = RESTService.MakeAndExecuteGetRequest <List <SInteractionLog> >("/api/sync/interactions/created/since/{year}/{month}/{day}/{hour}/{minute}/at/{site}", get_params); if (response != null) { if (response.data != null) { return(response.data); } } return(null); }