当我尝试通过ID获取Outlook电子邮件时,它返回9个数组项的数组 按照ID为电子邮件加注代码
$getMessagesUrl = '/me/messages?'.$_GET['id'];
$messages = $graph->createRequest('GET', $getMessagesUrl)
->setReturnType(Model\Message::class)
->execute();
作曲家文件
"php": ">=5.6.4",
"laravel/framework": "5.4.*",
"laravel/tinker": "~1.0",
"league/oauth2-client": "^2.0",
"microsoft/microsoft-graph": "^1.0"
我希望通过调用此端点仅返回数组
https://outlook.office.com/api/v2.0/me/messages/AAMkAGI2THVSAAA=
我得到与Doc ... Doc中所示相同的Json结果。Doc显示Json返回,但是当我调用相同的JSON结果显示数组中9次重复时