Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/476.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/83.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 我们如何使用jQuery for survey monkey访问数据_Javascript_Jquery_Json - Fatal编程技术网

Javascript 我们如何使用jQuery for survey monkey访问数据

Javascript 我们如何使用jQuery for survey monkey访问数据,javascript,jquery,json,Javascript,Jquery,Json,我们已经使用上面的调查链接创建了一个调查,现在我们希望使用API访问数据 控制台,我们已尝试使用以下代码 但我们无法获得数据或结果集。你能帮我吗 $.ajax({ url: "https://api.surveymonkey.net/v2/surveys/get_survey_list? api_key=xxxxxxxxxxxxxxx", type: "post", contentType: "application/json; charset=utf-8",

我们已经使用上面的调查链接创建了一个调查,现在我们希望使用API访问数据 控制台,我们已尝试使用以下代码

但我们无法获得数据或结果集。你能帮我吗

$.ajax({ 
    url: "https://api.surveymonkey.net/v2/surveys/get_survey_list?
    api_key=xxxxxxxxxxxxxxx",
    type: "post", 
    contentType: "application/json; charset=utf-8", 
    dataType: "json", 
    data: JSON.stringify(GetSurvey),
    processData: true, 
    headers: {
        Authorization: "bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", 
        "Content-Type": "application/json",
        "Date": "Wed, 20 May 2014 07:15:29 GMT",
        "Content-Type": "application/json; charset=UTF-8", 
        "Content-Length": "90" 
    }, 
    complete: function (jqXHR, textStatus) { 
        debugger; 
        console.log(jqXHR.responseJSON); 
    } 
});

谢谢。

为什么
Authorization
没有报价?在报价被授权后仍然不起作用。请帮助我。要获得更好的帮助,请创建一个JSFIDLE并发出AJAX请求。您可能还想添加一个错误:hook或check complete中的响应消息。我们尝试了JSFiddle中的代码,但问题是我们没有从JSFiddle中得到结果。