microsoft-graph-api

Uploading a large attachment using Microsoft Graph

混江龙づ霸主 提交于 2021-02-08 10:50:40
问题 I am trying to upload a large (> 4mb) attachment to an existing message in Office 365. I am following these instructions: https://docs.microsoft.com/en-us/graph/outlook-large-attachments?tabs=http I have successfully created the upload session, and obtained a uploadUrl value that looks legitimate, it roughly matches the example in the documentation. Then I start my PUT to this url, for the first byte range that I've selected. I'm sure I'm setting the Content-Type, Content-Length and Contact

REST call to Microsoft Graph

偶尔善良 提交于 2021-02-08 10:33:12
问题 I have got my access token but I am struggling to see how you then send the request for the data required. In the example Call Microsoft Graph they have: GET https://graph.microsoft.com/v1.0/me/messages?$select=subject,from,receivedDateTime&$top=25&$orderby=receivedDateTime%20DESC Accept: application/json Authorization: Bearer token But what is the method for parsing the Accept: and the Authorization: to Microsoft Graph? I have tried as a POST but it says bearer token empty. $token=$_SESSION[

REST call to Microsoft Graph

情到浓时终转凉″ 提交于 2021-02-08 10:32:53
问题 I have got my access token but I am struggling to see how you then send the request for the data required. In the example Call Microsoft Graph they have: GET https://graph.microsoft.com/v1.0/me/messages?$select=subject,from,receivedDateTime&$top=25&$orderby=receivedDateTime%20DESC Accept: application/json Authorization: Bearer token But what is the method for parsing the Accept: and the Authorization: to Microsoft Graph? I have tried as a POST but it says bearer token empty. $token=$_SESSION[

Microsoft graph, batch request's nextLink

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-08 10:27:21
问题 I'm currently implementing a sync queue service to sync a webapp's customers to Outlook's contacts. I'm using the Graph API for the job. The creation and updating of contacts is done using graph's batch request. There's a part in the docs about the response that I don't fully understand and pretty much ignored. I just want to make sure my implementation is correct. In addition to the responses property, there might be a nextLink property in the batch response. This allows Microsoft Graph to

Microsoft graph, batch request's nextLink

喜你入骨 提交于 2021-02-08 10:26:08
问题 I'm currently implementing a sync queue service to sync a webapp's customers to Outlook's contacts. I'm using the Graph API for the job. The creation and updating of contacts is done using graph's batch request. There's a part in the docs about the response that I don't fully understand and pretty much ignored. I just want to make sure my implementation is correct. In addition to the responses property, there might be a nextLink property in the batch response. This allows Microsoft Graph to

How to retrieve office 365 mail file (like image,text file etc) attachment using Oauth Graph Service Client api in java?

五迷三道 提交于 2021-02-08 10:12:33
问题 Here is how i am getting list of attachment objects attached to a message: IAttachmentCollectionRequest attachmentsPage = graphClient .users(emailServer.getEmailAddress()) .mailFolders("Inbox") .messages(mail.id) .attachments() .buildRequest(); List<Attachment> attachmentsData = attachmentsPage.get().getCurrentPage(); List<AttachmentData> attachmentDataToStore = new java.util.ArrayList<AttachmentData>(); for(Attachment attachment : attachmentsData) { attachmentData.setInputStream( new

Microsoft graph, fetching app permissions based on appId

我与影子孤独终老i 提交于 2021-02-08 09:55:47
问题 Azure AD: I want to fetch delegated as well as application permissions/consent based on appId. 回答1: To Lists delegated permission grants (OAuth2PermissionGrants) and application permissions grants (AppRoleAssignments) granted to an app in Azure Ad. Please use this script 来源: https://stackoverflow.com/questions/63269627/microsoft-graph-fetching-app-permissions-based-on-appid

Get sharepoint siteurl using weburl with MS Graph

与世无争的帅哥 提交于 2021-02-08 08:46:34
问题 I have onenote notebooks hosted at sharedpoint. I have a weburl to access that notebook. How I can retrieve siteId and siteCollectionId using webUrl with MS Graph API. Sample webUrl is - https://companyall-my.sharepoint.com/personal/ash_desh_company_com/Documents/Notebooks/Notebook1 回答1: If you encode the webUrl using this process and then make a request to the following you should be able to access the ids: https://graph.microsoft.com/v1.0/shares/{encodedurl}/site?select=sharepointIds As an

Querying Global Address List with Microsoft Graph

不羁岁月 提交于 2021-02-08 07:27:49
问题 I'm trying to query the Global Address List using Microsoft Graph. I've worked with and adapted the sample code from https://github.com/microsoftgraph/console-csharp-snippets-sample.git -- however, I'm still having trouble. I've seen this article -- Global Address List Graph API -- which indicates I need to use the "/contacts" endpoint. However, I don't see how this helps me when I'm using the Microsoft.Graph library. Is there some method or collection within the Microsoft.Graph library that

Querying Global Address List with Microsoft Graph

蓝咒 提交于 2021-02-08 07:26:20
问题 I'm trying to query the Global Address List using Microsoft Graph. I've worked with and adapted the sample code from https://github.com/microsoftgraph/console-csharp-snippets-sample.git -- however, I'm still having trouble. I've seen this article -- Global Address List Graph API -- which indicates I need to use the "/contacts" endpoint. However, I don't see how this helps me when I'm using the Microsoft.Graph library. Is there some method or collection within the Microsoft.Graph library that