如何检查一个驱动器访问令牌是否处于活动状态?我的代码不起作用:(需要帮助!
function check_one_drive_active(access_token){
var od_api_root_url = "https://api.onedrive.com/v1.0/drive/root/";
var od_url_param = "?access_token="+access_token;
var od_api_url = od_api_root_url+od_url_param;
alert(od_api_url);
jQuery.ajax({
url: od_api_url,
dataType : "JSON",
type : "POST",
success: function(data){
alert(data.error.code);
}
});
}