$scope.listInvitations = function(){
$http({
url: 'https://classroom.googleapis.com/v1/invitations?userId='+$scope.user.email+'&access_token='+$scope.session.access_token,
method: 'GET'
}).then(function(response){
consoleLog(response);
if(response.status==200){
$scope.invitations = response.data.invitations;
}
}, function(response){
consoleLog(response);
});
}
下图显示了响应。
我已经使用邀请 ID(在创建邀请时返回)通过邀请的“获取”方法检查邀请是否存在。但是当响应状态为 200 时,我无法获取邀请列表。谁能告诉我这里缺少什么?