Exemplo n.º 1
0
 private HTTP.Response RunQuery(HTTP.Builder requestBuilder)
 {
     HTTP.RawPayload statements = quotedJson("{'statements': [{'statement': 'RETURN 42'}]}");
     return(requestBuilder.Post(TxCommitURL(), statements));
 }
Exemplo n.º 2
0
 private HTTP.Response ChangePassword(string username, string oldPassword, string newPassword)
 {
     HTTP.RawPayload passwordChange = quotedJson("{'password': '******'}");
     return(RequestWithHeaders(username, oldPassword).POST(PasswordURL(username), passwordChange));
 }