代码之家  ›  专栏  ›  技术社区  ›  Positive-One

解析服务器上的Webhooks

  •  0
  • Positive-One  · 技术社区  · 8 年前

    我对解析和webhook相当陌生。我最近被分配到研究解析服务器,并要求在数据库更新时使用Webhook。

    编辑->webhook触发器->更新数据库

    现在,我读下去了 this .

    使用beforeSave触发器,我很困惑。。。

    它是否类似于我们如何调用云代码函数,其中:

    Parse.Cloud.beforeSave("nameOfFunction", function(request, response) { response.success(); });

    在java中调用函数:

    ParseCloud.callFunctionInBackground("nameOfFunction", params, new FunctionCallback<Float>() {
       void done(Float ratings, ParseException e) {
           if (e == null) {
              // ratings is 4.5
           }
       }
    });
    

    请开导我!

    1 回复  |  直到 8 年前
        1
  •  1
  •   Jake T.    8 年前

    如果存在beforeSave和afterSave触发器,则会自动调用它们。

    实际上我只是写了 this 答案有很多相关信息。