示例#1
0
文件: UsersDAO.cs 项目: shldn/mdons
 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");
 }
示例#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();
        }
    }
示例#3
0
文件: UsersDAO.cs 项目: shldn/mdons
 public string UpdateUser(string userId, string sessionToken, string jsonData)
 {
     restHelper.AddHeader("X-Parse-Session-Token", sessionToken);
     return(restHelper.sendRequest("users/" + userId, "PUT", jsonData));
 }