microsoft-graph

Getting Events from Calendar using C# and Microsoft Graph SDK

送分小仙女□ 提交于 2020-06-16 17:24:45
问题 I'm trying to develop a console app to list, remove and add events to a specific user's calendar. I'm developing a business process. I'm starting by listing events. Calendar cal = client .Users["UserName@CompanyName.com"] .Calendars["AAMkAGIzZDM4O...."] .Request() .GetAsync() .Result; I get the correct calendar back but the Events collection is null. There are 13 events in the calendar. I have Calendar Read/Write permissions. Any ideas? 回答1: I don't have an environment to test the c# Graph

Find the “Shared with me” Folder Id (Drive Id) and Files Id - OneDrive, Microsoft Graph, Python

你离开我真会死。 提交于 2020-06-09 05:29:17
问题 My clients shared some onedrive folder with me which contains 5 Files, I want to find the drive-Id, File-Id, so that I can download using python scripts, Script reference: Not able to download files from inside folder, OneDrive, Microsoft Graph, Python I am trying below script: requests.get('https://graph.microsoft.com/v1.0/me/drive/sharedWithMe', headers={'Authorization': 'Bearer ' + Access_Token}).content requests.get('https://graph.microsoft.com/v1.0/me/drives', headers={'Authorization':

Find the “Shared with me” Folder Id (Drive Id) and Files Id - OneDrive, Microsoft Graph, Python

北战南征 提交于 2020-06-09 05:28:07
问题 My clients shared some onedrive folder with me which contains 5 Files, I want to find the drive-Id, File-Id, so that I can download using python scripts, Script reference: Not able to download files from inside folder, OneDrive, Microsoft Graph, Python I am trying below script: requests.get('https://graph.microsoft.com/v1.0/me/drive/sharedWithMe', headers={'Authorization': 'Bearer ' + Access_Token}).content requests.get('https://graph.microsoft.com/v1.0/me/drives', headers={'Authorization':

Not able to download files from inside folder, OneDrive, Microsoft Graph, Python

左心房为你撑大大i 提交于 2020-06-09 05:24:28
问题 I am trying to download files from onedrive using microsoft graph api, I have File named "Knox EARNSTSALV2020.xlsx" inside Folder "New Folder", but I am getting error, I can download file from outside of the folder. Error: b'{\r\n "error": {\r\n "code": "itemNotFound",\r\n "message": "Item not found",\r\n "innerError": {\r\n "request-id": "8c4f973a-cd22-48eb-bdfd-f5eb8a051389",\r\n "date": "2020-05-09T10:55:40"\r\n }\r\n }\r\n}' Code Reference: Download files from personal OneDrive using

Not able to download files from inside folder, OneDrive, Microsoft Graph, Python

白昼怎懂夜的黑 提交于 2020-06-09 05:24:07
问题 I am trying to download files from onedrive using microsoft graph api, I have File named "Knox EARNSTSALV2020.xlsx" inside Folder "New Folder", but I am getting error, I can download file from outside of the folder. Error: b'{\r\n "error": {\r\n "code": "itemNotFound",\r\n "message": "Item not found",\r\n "innerError": {\r\n "request-id": "8c4f973a-cd22-48eb-bdfd-f5eb8a051389",\r\n "date": "2020-05-09T10:55:40"\r\n }\r\n }\r\n}' Code Reference: Download files from personal OneDrive using

Add bot (ms-botbuilder) to the MS Teams Team/Channel programmatically

让人想犯罪 __ 提交于 2020-06-08 06:40:10
问题 I'm looking to find a way to add a bot to a team that this bot just created. Was able to create a group via MS Graph by the bot JS-SDK graphClient.api("/groups").post({ displayName: "Some Name", mailNickname: "Name without Spaces", description: "Some Description", visibility: "Private", groupTypes: ["Unified"], mailEnabled: true, securityEnabled: false, "members@odata.bind": members, // array of url strings of members "owners@odata.bind": owners, }); members and owners arrays of strings

Microsoft Graph API in Laravel Controller

非 Y 不嫁゛ 提交于 2020-05-28 08:38:43
问题 I am using organization Outlook account. My aim is to get List of Calendar Events in the Laravel controller. Steps I followed: Created simple application in https://aad.portal.azure.com/. I got Application (client) ID, Directory ID, clientSecrets, Object ID/Tenant ID which usable for login and to get further data from Microsoft. Created controller in the Laravel web.php Route::get('/graph', 'microsoftapi@getCalendarData'); Added Microsoft Graph SDK for laravel. https://github.com

Microsoft Graph API in Laravel Controller

时光毁灭记忆、已成空白 提交于 2020-05-28 08:38:27
问题 I am using organization Outlook account. My aim is to get List of Calendar Events in the Laravel controller. Steps I followed: Created simple application in https://aad.portal.azure.com/. I got Application (client) ID, Directory ID, clientSecrets, Object ID/Tenant ID which usable for login and to get further data from Microsoft. Created controller in the Laravel web.php Route::get('/graph', 'microsoftapi@getCalendarData'); Added Microsoft Graph SDK for laravel. https://github.com

“MailboxNotHostedInExchangeOnline” when trying to get user photos from MS Graph

|▌冷眼眸甩不掉的悲伤 提交于 2020-05-25 17:18:17
问题 Using `https://graph.microsoft.com/beta/users/${email}/photo/$value` had been working for me last week but now it throws a 400 error Error Output "Mailbox is hosted by an on-premise or non-Exchange server, which is not supported." As far as I know nothing has changed from our end. Using the v1.0 doesn't seem to make any difference. I think the user photos are stored on an on-premise exchange but are then synced up at AAD. This has been working fine for at least a year like this. Anybody know

“MailboxNotHostedInExchangeOnline” when trying to get user photos from MS Graph

落爺英雄遲暮 提交于 2020-05-25 17:16:26
问题 Using `https://graph.microsoft.com/beta/users/${email}/photo/$value` had been working for me last week but now it throws a 400 error Error Output "Mailbox is hosted by an on-premise or non-Exchange server, which is not supported." As far as I know nothing has changed from our end. Using the v1.0 doesn't seem to make any difference. I think the user photos are stored on an on-premise exchange but are then synced up at AAD. This has been working fine for at least a year like this. Anybody know