official microsoft code example for onedrive upload not work

Andreas Rottmann 0 Reputation points


I try to upload files via php to my onedrive since a few weeks.

It didn't work.

So I found this code example

But I got a error message:

Class new Models\AttachmentItem() not found

How can I require this class? I use require vendor autoloader, to include the Microsoft sdk. I think it's not enough

Thank yoy

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,836 questions
0 comments No comments
{count} votes