使用AngularJS GraphSDK获取收件箱和文件夹消息

时间:2018-01-03 06:56:16

标签: javascript angularjs microsoft-graph

我试图在收件箱中收到所有邮件,但它无效。我尝试了Microsoft Angular SDK reference

MainController.js

getMessages: function getMessages(email) {
      return graphClient.api('/me/messages').get({ 'message' : email });
    }

GraphHelper.js

我改变了graphHelper.js

var APPLICATION_CONFIG = {
clientID: "b73f88f7-2169-471f-9381-e9f098684140",
redirectUri: "http://localhost:8080/",
interactionMode: "popUp",
graphEndpoint: "https://graph.microsoft.com/v1.0/me/messages",
graphScopes: ["user.read mail.send Mail.Read Mail.ReadWrite "]
};

Config.JS

{{1}}

0 个答案:

没有答案