返回microsoft图形事件php

返回microsoft图形事件php,php,microsoft-graph-api,microsoft-graph-sdks,microsoft-graph-calendar,Php,Microsoft Graph Api,Microsoft Graph Sdks,Microsoft Graph Calendar,我有以下代码,我只是想从microsoft graph events中回显showAs状态。我可以返回最喜欢的主题或身体预览,但我似乎无法获得showAs状态 <h3 class="list-group-item-heading"><?php echo $event->getshowAs()->getfreeBusyStatus() ?></h3> 他们提供的文档是 showAs freeBusyStatus显示的状态。可能的

我有以下代码,我只是想从microsoft graph events中回显showAs状态。我可以返回最喜欢的主题或身体预览,但我似乎无法获得showAs状态

<h3 class="list-group-item-heading"><?php echo $event->getshowAs()->getfreeBusyStatus() ?></h3>
他们提供的文档是


showAs freeBusyStatus显示的状态。可能的值为:空闲、暂定、忙碌、oof、WorkingelWhere、未知。

您是否可以共享正在进行的MS Graph调用,您是否使用了任何“选择”查询参数?尝试MS Graph呼叫和邮递员,看看您是否获得了“showAs”属性。您是否仍在寻求帮助?
   * Gets the showAs
* The status to show. The possible values are: free, tentative, busy, oof, workingElsewhere, unknown.
*
* @return FreeBusyStatus The showAs
*/
public function getShowAs()
{
    if (array_key_exists("showAs", $this->_propDict)) {
        if (is_a($this->_propDict["showAs"], "Microsoft\Graph\Model\FreeBusyStatus")) {
            return $this->_propDict["showAs"];
        } else {
            $this->_propDict["showAs"] = new FreeBusyStatus($this->_propDict["showAs"]);
            return $this->_propDict["showAs"];
        }
    }
    return null;
}