We are wanting to integrate our product with OneDrive. Using the Graph API, we need to be able to ping a OneDrive folder and grab any documents added to the folder since the last time we checked. We would then pull those documents over to our system. Our system only accepts certain document types, however. So we need to get the mimetype information AND the document ID returned to us. We cannot find anything within the Graph API that lets us get this information in one request.
It looks like we have to do two requests, which will just get messy. Does anyone have a good solution for this?
Google APIs allow you to easily pull this information back. We have a similar integration with Google Drive and it works without a hitch. But we are stuck trying to create a similar integration with OneDrive.
Iposted the question on Stack Overflowif you want to read a response someone gave me over there. We prefer not to use the file type information as there are edge cases where that could create issues.