我正在使用 laravel 包进行谷歌日历 API 集成。在这方面,我只能创建只有参加者的活动。我试过创建组织者,但没有出现。以下是我使用过的代码。此处的组织者名称默认为创建 API 凭据的电子邮件,电子邮件通知也不会发送。
我正在使用的包是"spatie/laravel-google-calendar".
谁能告诉我我在这里做错了什么?
Event::create([
'name' => 'Latest Event dsfdsfsdfsdf',
'location' => '800 Howard St., San Francisco, CA 94103',
'description' => 'A chance to hear more about Google\'s developer products.',
'startDateTime' => Carbon\Carbon::now(),
'endDateTime' => Carbon\Carbon::now()->addHour(),
'sendNotifications' => true,
'sendUpdates' => 'all',
'organizer' => array('email' => 'test@gmail.com','displayName' => 'Darshan')
'attendees' => array(
array('email' => 'test@gmail.com','displayName' => 'Darshan', 'organizer' => true),
array('email' => 'darshan@test.com','displayName' => 'Ryan')
)
]);
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用Skype SDK安排会议。我给出的代码与示例中所示的相同。但是我没有收到任何错误或代码来安排会议。请仔细检查代码,如果下面的代码有任何错误,请通知我。我坚持这个
$('#authentication').click(function() {
var client_id = "xxxxxx-xxxx-xxxx-xxxx-xxxxxxxx";
window.sessionStorage.setItem('client_id', client_id);
var href = 'https://login.microsoftonline.com/common/oauth2/authorize?response_type=token&client_id=';
href += client_id + '&resource=https://webdir.online.lync.com&redirect_uri=' + window.location.href;
window.location.href = href;
});
$('#createmeeting').click(function() {
var client;
var conversation;
var Application;
console.log(sessionStorage.getItem('client_id'));
Skype.initialize({ apiKey: 'a42fcebd-5b43-4b89-a065-74450fb91255' }, function (api) {
Application = api.application;
client = new Application();
console.log('client created');
var meeting = client.conversationsManager.createMeeting();
meeting.subject('Planning meeting');
meeting.expirationTime(new Date + 24 * 3600 * 5);
meeting.onlineMeetingUri.get().then(uri => {
var conversation = client.conversationsManager.getConversationByUri(uri);
console.log(';'); // even this is not showing
}, function …Run Code Online (Sandbox Code Playgroud)