在调查猴子中包括图像

时间:2017-07-07 20:13:17

标签: python json api surveymonkey

我试图将图片作为调查问题包含在内,并给出以下错误,

surveymonty.exceptions.SurveyMontyAPIError:{"错误":{" docs":" https://developer.surveymonkey.com/api/v3/#error-codes"," message&#34 ;:"无法验证字段'标题'列表架构:未由'属性定义的其他属性'不允许在字段' _data'"," id":" 1002"," name":" Bad请求"," http_status_code":400}}

我使用的是以下JSON代码,

payload ={
    "headings": 
    [
            {
            "heading": "This is a monkey",
            "image":    {
                "img_url": "https://raw.githubusercontent.com/SurveyMonkey/public_api_docs/master/images/presentation.png"
                    }
             }
        ],
    "position": 4,
    "family": "presentation",
    "subtype": "descriptive_text"
    }

请帮忙!

1 个答案:

答案 0 :(得分:1)

您可能正在寻找x.Date <- as.Date(paste(2004, rep(1:4, 4:1), sample(1:28, 10), sep = "-")) x <- zoo(rnorm(12), x.Date) rollmean(x, 3) 2004-01-17 2004-01-23 2004-01-26 2004-02-07 2004-02-18 2004-02-24 2004-03-20 2004-03-27 0.60112115 0.80818151 0.64316904 0.06831874 -0.03085218 -0.05787362 0.34177806 -0.40876877 子类型,有效负载看起来应该更像:

image