Example #1
0
 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);
 }
Example #2
0
 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);
 }
Example #3
0
    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);
    }
Example #4
0
 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);
 }
Example #5
0
 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'
     //    )
     //);
 }
Example #6
0
 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);
 }
Example #7
0
 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);
 }