leandroferreirama/google-calendar

Biblioteca API para integração com o webservice do Google Calendar

1.1.3 2024-07-03 19:44 UTC

This package is auto-updated.

Last update: 2024-10-03 20:29:08 UTC


README

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

Google Calendar Library is a small set of classes developed to integrate the Google Calendar API into your system.
To use this library, you need to generate an authorization token in google. I developed the leandroferreirama/google-auth component that will help you in the process of generating and updating the token.For more details on token creation click here

Biblioteca Google Calendar é um pequeno conjunto de classes desenvolvidas para integrar o seu sistema a API do Google Calendar. Para usar esta biblioteca, é necessário gerar um token de autorização no google. Desenvolvi o componente leandroferreirama/google-auth que te auxiliará no processo de geração e atualização do token. Para mais detalhes sobre o criação do token clique aqui

Highlights

  • Simple installation (Instalação simples)
  • Abstraction of all API methods (Abstração de todos os métodos da API)
  • Easy authentication with login and password (Fácil autenticação com login e senha)
  • Composer ready and PSR-2 compliant (Pronto para o composer e compatível com PSR-2)

Installation

Uploader is available via Composer:

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

or run

composer require leandroferreirama/google-calendar

Documentation

For details on how to use, see a sample folder in the component directory. In it you will have an example of use for each class. It works like this:

Para mais detalhes sobre como usar, veja uma pasta de exemplo no diretório do componente. Nela terá um exemplo de uso para cada classe. Ele funciona assim:

Schedule:

Create

<?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());
Click here to consult the official documentation

Clique aqui para consultar a documentação oficial

Update

<?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());
Click here to consult the official documentation

Clique aqui para consultar a documentação oficial

Others

You also have classes for endpoints of portfolios and signatures, all the documentation of use with practical examples is available in the examples folder library. Please check there.

Você também conta com classes para os endpoints de carteiras e assinaturas, toda documentação de uso com exemplos práticos está disponível na pasta examples desta biblioteca. Por favor, consulte lá.

Contributing

Please see CONTRIBUTING for details.

Support

Security: If you discover any security related issues, please email suporte@integracaosistema.com.br instead of using the issue tracker.

Se você descobrir algum problema relacionado à segurança, envie um e-mail para suporte@integracaosistema.com.br em vez de usar o rastreador de problemas.

Thank you

Credits

License

The MIT License (MIT). Please see License File for more information.