Realy good pacakge, but in first minutes I came to a problem, returning errors on contacts email etc.
Digging emails()->get() I see this:
$folder = $folderId == null ? 'Inbox' : $folderId;
//get inbox from folders list
$folder = MsGraph::get("me/mailFolders?\$filter=startswith(displayName,'$folder')");
But my "Inbox" folder is in other language rather than english, and it returns error. So if we take a look to microsoft docs ->
GET /me/mailFolders/inbox
$folder = MsGraph::get("me/mailFolders/$folder");
Like so, everything works fine.
Maybe in future should think about it.
Realy good pacakge, but in first minutes I came to a problem, returning errors on contacts email etc.
Digging emails()->get() I see this:
But my "Inbox" folder is in other language rather than english, and it returns error. So if we take a look to microsoft docs -> GET /me/mailFolders/inbox
$folder = MsGraph::get("me/mailFolders/$folder");
Like so, everything works fine. Maybe in future should think about it.