【问题标题】:Calling send_flow API of SurveyMonkey is giving an unexpected error调用 SurveyMonkey 的 send_flow API 出现意外错误
【发布时间】:2016-11-19 19:32:56
【问题描述】:

即使我的请求在 JSON body 中提供了所有必需的参数,为什么会出现以下错误?

API:https://developer.surveymonkey.com/docs/methods/send_flow/

【问题讨论】:

    标签: rest http-post surveymonkey


    【解决方案1】:

    问题是您在收集器字段下有id。这不是一个允许的属性。 send_flow 创建一个新的收集器和电子邮件,并将它们附加到现有调查中,因此您无法选择已经存在的收集器。只需从您的有效负载中删除它,您就不会再收到该错误了。

    {
        "survey_id": "111237200",
        "collector": {
            "send": true,
            "recipients": [{
                ...
            }]
        },
        "email_message": {
            "subject": "Ice and Fire event",
            "reply_email": "sunil@ljhjhjk.com"
        }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-19
      • 2020-11-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-23
      相关资源
      最近更新 更多