0
$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);
    }); 
}

Google 课堂邀请 API 链接

下图显示了响应。

响应如图所示

我已经使用邀请 ID(在创建邀请时返回)通过邀请的“获取”方法检查邀请是否存在。但是当响应状态为 200 时,我无法获取邀请列表。谁能告诉我这里缺少什么?

4

0 回答 0