I am integrating Office-365-SDK-for-iOS to fetch the user profile and contacts from outlook 365. I configure my application on azure management portal successfully. below are the constants for the app-
我正在集成Office-365-SDK-for-iOS以从Outlook 365获取用户配置文件和联系人。我在azure管理门户上成功配置了我的应用程序。以下是应用程序的常量 -
#define OutlookClientId @"11d21f9f-6b16-4ea9-8f73-bbc9a65ac72b"
#define OutlookAuthority @"https://login.microsoftonline.com/06cbda59-d75b-4547-8406-e6af3ff4c658/oauth2/token?api-version=1.0"
#define OutlookRedirectUrl @"http://localhost/MyAppName"
#define OutlookRsourceId @"https://graph.microsoft.com/"
When I am giving resourceId is https://outlook.office365.com/.
当我给resourceId时,请访问https://outlook.office365.com/。
Then its giving me an error that this is not a valid resource id configured for the app.
然后它给我一个错误,这不是为应用程序配置的有效资源ID。
I read many url to fined out the problem but I failed.These urls says that "If your app requires permissions to the Office 365 Mail, Calendar, or Contacts APIs, select the Office 365 Exchange Online service." but there is no this service to enable. Below is my add application page screen shot-
我读了很多网址以解决问题,但我没有成功。这些网址说“如果你的应用需要Office 365邮件,日历或联系人API的权限,请选择Office 365 Exchange Online服务。”但是没有这项服务可以启用。以下是我添加应用程序页面的屏幕截图 -
There are only 3 application to add.
只有3个应用程序要添加。
Please help me out out on this. Thanks
请帮我解决这个问题。谢谢
2 个解决方案
#1
What type of account are you logging onto the Azure management portal with? Does it have access to Exchange Online? My guess is your Office 365 subscription doesn't include Exchange or SharePoint, so you don't see them there.
您使用哪种类型的帐户登录Azure管理门户?它是否可以访问Exchange Online?我的猜测是您的Office 365订阅不包括Exchange或SharePoint,因此您在那里看不到它们。
It looks like you're trying to use the Unified API though. In that case your resource ID should be https://graph.microsoft.com/
.
看起来您正在尝试使用Unified API。在这种情况下,您的资源ID应为https://graph.microsoft.com/。
#2
Ravi, Please take a look at this article: https://msdn.microsoft.com/en-us/office/office365/howto/get-started-with-office-365-unified-api
Ravi,请看一下这篇文章:https://msdn.microsoft.com/en-us/office/office365/howto/get-started-with-office-365-unified-api
The resource for the unified API is https://graph.microsoft.com not the one that you mention above.
统一API的资源是https://graph.microsoft.com,而不是上面提到的那个。
In addition, if you want to query mail, events, files, etc, the tenant you are using for development must have a valid Office365 subscription.
此外,如果要查询邮件,事件,文件等,则用于开发的租户必须具有有效的Office365订阅。
Finally, personal contacts (aka. contacts in Outlook) are not yet supported (coming soon), right now you can access organizational contacts using this request: graph.microsoft.com/beta/myOrganization/contacts
最后,尚未支持个人联系人(即Outlook中的联系人)(即将推出),现在您可以使用此请求访问组织联系人:graph.microsoft.com/beta/myOrganization/contacts
#1
What type of account are you logging onto the Azure management portal with? Does it have access to Exchange Online? My guess is your Office 365 subscription doesn't include Exchange or SharePoint, so you don't see them there.
您使用哪种类型的帐户登录Azure管理门户?它是否可以访问Exchange Online?我的猜测是您的Office 365订阅不包括Exchange或SharePoint,因此您在那里看不到它们。
It looks like you're trying to use the Unified API though. In that case your resource ID should be https://graph.microsoft.com/
.
看起来您正在尝试使用Unified API。在这种情况下,您的资源ID应为https://graph.microsoft.com/。
#2
Ravi, Please take a look at this article: https://msdn.microsoft.com/en-us/office/office365/howto/get-started-with-office-365-unified-api
Ravi,请看一下这篇文章:https://msdn.microsoft.com/en-us/office/office365/howto/get-started-with-office-365-unified-api
The resource for the unified API is https://graph.microsoft.com not the one that you mention above.
统一API的资源是https://graph.microsoft.com,而不是上面提到的那个。
In addition, if you want to query mail, events, files, etc, the tenant you are using for development must have a valid Office365 subscription.
此外,如果要查询邮件,事件,文件等,则用于开发的租户必须具有有效的Office365订阅。
Finally, personal contacts (aka. contacts in Outlook) are not yet supported (coming soon), right now you can access organizational contacts using this request: graph.microsoft.com/beta/myOrganization/contacts
最后,尚未支持个人联系人(即Outlook中的联系人)(即将推出),现在您可以使用此请求访问组织联系人:graph.microsoft.com/beta/myOrganization/contacts