나는 다음과 같은 코드를 사용하여 인증 된 사용자의 정보를 얻기 위해 불평 REST API를 호출하는 것을 시도하고있다 :Yammer REST API를 호출하여 인증 된 사용자의 프로필 정보를 가져 오는 방법은 무엇입니까?
$(document).ready(function() {
$.ajax({
method: "GET",
url: "https://www.yammer.com/api/v1/users/current.json",
contentType: "application/json; charset=utf-8",
dataType: 'json',
success: function(data) {
if (data.Success) {
alert(data);
}
},
error: function(xhr2, status2) {
alert(xhr2.status);
}
});
});
그러나, 항상 방법을 오류 것입니다. 누구든지 나를이 길로 인도 할 수 있습니까?