leandroferreirama/google-calendar

Google Calendar Web服务集成API库

1.1.3 2024-07-03 19:44 UTC

This package is auto-updated.

Last update: 2024-09-03 20:16:09 UTC


README

Maintainer Source Code PHP from Packagist Latest Version Software License Build Quality Score Total Downloads

Google Calendar库是一组用于将Google Calendar API集成到您系统的类。
要使用此库,您需要在Google中生成一个授权令牌。我开发了leandroferreirama/google-auth组件,它可以帮助您生成和更新令牌。有关令牌创建的更多详细信息,请点击此处:点击这里

Google Calendar库是一个用于将您的系统与Google Calendar API集成的类集合。要使用此库,您需要在Google中生成一个授权令牌。我开发了leandroferreirama/google-auth组件,它可以帮助您在生成和更新令牌的过程中。有关令牌创建的更多详细信息,请点击此处:点击这里

亮点

  • 简单安装
  • 所有API方法的抽象
  • 使用登录名和密码轻松认证
  • Composer准备就绪且符合PSR-2规范

安装

通过Composer可用

"leandroferreirama/google-calendar": "^1.0"

或者运行

composer require leandroferreirama/google-calendar

文档

有关使用方法的详细信息,请参阅组件目录中的示例文件夹。其中包含了每个类的使用示例。它的工作方式如下

有关如何使用的更多详细信息,请参阅组件目录中的示例文件夹。在那里,您将为每个类找到一个使用示例。它的工作方式如下

日程安排

创建

<?php

require __DIR__ . "/../vendor/autoload.php";

use LeandroFerreiraMa\GoogleCalendar\Schedule;

$schedule = new Schedule(
    'ya29.****** removid for secure'
);
$create = $schedule->create(
    "Title test", 
    (new DateTime('2023-07-11 03:45:00')), 
    (new DateTime('2023-07-11 04:45:00')),
    "Description test",
    "location test",
    "primary",
    [
        "email" => "guest1@email.com",
        "email" => "guest2@email.com"
    ]
);

var_dump($create->response());
点击此处查看官方文档

点击此处查看官方文档

更新

<?php

require __DIR__ . "/../vendor/autoload.php";

use LeandroFerreiraMa\GoogleCalendar\Schedule;

$schedule = new Schedule(
    'ya29.****** removid for secure'
);
$update = $schedule->update(
    "eventId****",
    "Title test", 
    (new DateTime('2023-07-11 03:45:00')), 
    (new DateTime('2023-07-11 04:45:00')),
    "Description test",
    "location test",
    "primary",
    "cancelled",
    [
        "email" => "guest1@email.com",
        "email" => "guest2@email.com"
    ]
);

var_dump($update->response());
点击此处查看官方文档

点击此处查看官方文档

其他

您还有用于投资组合和签名的端点类,所有使用文档和实用示例都可在库的examples文件夹中找到。请查看。

您还有用于投资组合和签名的端点类,所有使用文档和实用示例都可在库的examples文件夹中找到。请查看。

贡献

有关详细信息,请参阅CONTRIBUTING

支持

安全:如果您发现任何与安全相关的问题,请通过电子邮件suporte@integracaosistema.com.br联系,而不是使用问题跟踪器。

如果您发现任何与安全相关的问题,请通过电子邮件suporte@integracaosistema.com.br联系,而不是使用问题跟踪器。

感谢

鸣谢

许可

MIT许可(MIT)。有关更多信息,请参阅许可文件