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"); }
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(); } }
public string UpdateUser(string userId, string sessionToken, string jsonData) { restHelper.AddHeader("X-Parse-Session-Token", sessionToken); return(restHelper.sendRequest("users/" + userId, "PUT", jsonData)); }