public string getStaffSkills() { // get staff skills DataEtcRequest bData = new DataEtcRequest(); bData.token = Token; bData.output = OutPut; DataRequest objrequest = new DataRequest(); objrequest.method = "GET"; objrequest.module = "staff.skills"; bData.request = objrequest; NameValueCollection RequestApi = new NameValueCollection(); JavaScriptSerializer js = new JavaScriptSerializer(); RequestApi.Add("data", js.Serialize(bData)); return perform_request(RequestApi); }
public string getWallMessages() { // get message wall DataEtcRequest bData = new DataEtcRequest(); bData.token = Token; bData.output = OutPut; DataRequest objrequest = new DataRequest(); objrequest.method = "GET"; objrequest.module = "messaging.wall"; bData.request = objrequest; NameValueCollection RequestApi = new NameValueCollection(); JavaScriptSerializer js = new JavaScriptSerializer(); RequestApi.Add("data", js.Serialize(bData)); return perform_request(RequestApi); }
public string getMessageDetails(int id) { // DataEtcRequest bData = new DataEtcRequest(); bData.token = Token; bData.output = OutPut; DataRequest objrequest = new DataRequest(); //bData.id = id.ToString(); objrequest.method = "GET"; objrequest.module = "messaging.messages"; bData.request = objrequest; NameValueCollection RequestApi = new NameValueCollection(); JavaScriptSerializer js = new JavaScriptSerializer(); RequestApi.Add("data", js.Serialize(bData)); return perform_request(RequestApi); }
public string getAdminFiles() { // get administrator file listing DataEtcRequest bData = new DataEtcRequest(); bData.token = Token; bData.output = OutPut; DataRequest objrequest = new DataRequest(); objrequest.method = "GET"; objrequest.module = "admin.files"; bData.request = objrequest; NameValueCollection RequestApi = new NameValueCollection(); JavaScriptSerializer js = new JavaScriptSerializer(); RequestApi.Add("data", js.Serialize(bData)); return perform_request(RequestApi); }
public string getAdminBackups() { // get admin backups DataEtcRequest bData = new DataEtcRequest(); bData.token = Token; bData.output = OutPut; DataRequest objrequest = new DataRequest(); objrequest.method = "GET"; objrequest.module = "admin.backups"; bData.request = objrequest; NameValueCollection RequestApi = new NameValueCollection(); JavaScriptSerializer js = new JavaScriptSerializer(); RequestApi.Add("data", js.Serialize(bData)); return perform_request(RequestApi); //return $this->setRequest( // array( // 'module' => 'admin.backups', // 'method' => 'GET' // ) //); }
public string createMessage(string message) { // create a new message DataEtcRequest bData = new DataEtcRequest(); bData.token = Token; bData.output = OutPut; DataRequest objrequest = new DataRequest(); objrequest.method = "CREATE"; objrequest.module = "messaging.messages"; bData.request = objrequest; NameValueCollection RequestApi = new NameValueCollection(); JavaScriptSerializer js = new JavaScriptSerializer(); RequestApi.Add("data", js.Serialize(bData)); return perform_request(RequestApi); }
public string updateAdminSettings(string[] settings) { // update admin settings DataEtcRequest bData = new DataEtcRequest(); bData.token = Token; bData.output = OutPut; DataRequest objrequest = new DataRequest(); objrequest.method = "UPDATE"; objrequest.module = "admin.settings"; bData.request = objrequest; NameValueCollection RequestApi = new NameValueCollection(); JavaScriptSerializer js = new JavaScriptSerializer(); RequestApi.Add("data", js.Serialize(bData)); return perform_request(RequestApi); }