Beispiel #1
0
 public UsersDAO()
 {
     //init RESThelper
     restHelper = new RESThelper("https://api.parse.com/1/", new Dictionary <string, string>());
     restHelper.AddHeader("X-Parse-Application-Id", "zs5W1kr9RMFlrHaTLrkY8Rxz8W44TXbhZ8TPvdzq");
     restHelper.AddHeader("X-Parse-REST-API-Key", "ZVekLieNrfFwb9H6dCiYZaOr5dlMPw01VY1Zlvgr");
 }
Beispiel #2
0
    public ParseDAO(string name, bool createObjectIfDoesnotExist = true)
    {
        parseClassName = name;

        //init RESThelper
        restHelper = new RESThelper("https://api.parse.com/1/", new Dictionary <string, string>());
        restHelper.AddHeader("X-Parse-Application-Id", "zs5W1kr9RMFlrHaTLrkY8Rxz8W44TXbhZ8TPvdzq");
        restHelper.AddHeader("X-Parse-REST-API-Key", "ZVekLieNrfFwb9H6dCiYZaOr5dlMPw01VY1Zlvgr");

        if (createObjectIfDoesnotExist)
        {
            Create();
        }
    }
Beispiel #3
0
 public string UpdateUser(string userId, string sessionToken, string jsonData)
 {
     restHelper.AddHeader("X-Parse-Session-Token", sessionToken);
     return(restHelper.sendRequest("users/" + userId, "PUT", jsonData));
 }