Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/29.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google calendar api 如何更改谷歌日历上的显示名称?_Google Calendar Api - Fatal编程技术网

Google calendar api 如何更改谷歌日历上的显示名称?

Google calendar api 如何更改谷歌日历上的显示名称?,google-calendar-api,Google Calendar Api,目前正在为组织使用Gsuite,并使用Google日历API向用户发送邀请。 问题是收件箱电子邮件中的显示名称显示了信息(电子邮件地址info@organization.com) 想将其更改为组织名称,但我找不到在哪里可以这样做 下面是我创建事件的代码 $event = new Google_Service_Calendar_Event(array( 'summary' => $summary, 'start' => array( 'dateTime'

目前正在为组织使用Gsuite,并使用Google日历API向用户发送邀请。 问题是收件箱电子邮件中的显示名称显示了
信息
(电子邮件地址info@organization.com) 想将其更改为组织名称,但我找不到在哪里可以这样做

下面是我创建事件的代码

$event = new Google_Service_Calendar_Event(array(
    'summary' => $summary,
    'start' => array(
        'dateTime' => $start,
        'timeZone' => 'UTC',
    ),
    'end' => array(
        'dateTime' => $end,
        'timeZone' => 'UTC',
    ),
    'attendees' => array(
        array('email' => $email, 'organizer' => true, 'responseStatus' => 'accepted'),
    )
));
$calendarId = 'primary';
$event = $service->events->insert($calendarId, $event, ['sendNotifications' => $notify, 'sendUpdates' => 'all']);
请看图片附件


我投票将这个问题作为离题题题来结束,因为它与编程无关。如果您不是通过UI创建活动,您可以在应用程序中使用Gmail API,这样您就可以发送定制的邀请电子邮件,设置所需的显示名称。您是如何创建活动的?@Iamblichus正在使用谷歌日历API创建活动。通过API和通过日历发送邀请进行测试API@DaImTo用代码更新了我的帖子。在发布答案之前,让我澄清一下,您基本上想将电子邮件邀请的主题从
info
更改为
organization\u name
,对吗?