Unexpected json result while calling the surveymonkey api

独自空忆成欢 提交于 2019-11-28 14:39:56

As was pointed out in the comments: Your JSON formatting is off, so the API doesn't understand that you're asking for the URL.

For an understanding of what's going on, take a look at the example request in the link you provided; note the format of the fields section.

Try again, this time with:

{"survey_id": "47625442", "fields": ["url"]}

...which with the escapes will look like this....

    {\"survey_id\": \"47625442\", \"fields\":[ \"url\" ]}"
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!