dywily/gaw

wrap some google api,like gmail api

v1.0.0 2023-03-25 20:08 UTC

This package is auto-updated.

Last update: 2024-05-25 22:33:56 UTC


README

  • A package base from google/apiclient
  • Currently only packaging the gmail, you can easily manage syncing email, displaying email, and sending email
  • The examples folder in the reference package is used for the basics
  • you can see configuration file config/gaw.php and overwrite related configuration

Configure OAuth client authorization

Usage of Examples folder

  • Enter parent directory of the examples

  • Execute

php -S localhost:8068

If you use the laravel

  • Add the following into routes/console.php
Artisan::command('dywily:gaw-install', function () {
    $dt = new Dywily\Gaw\Console\InstallCommand();
    $dt->handle();
});
  • Execute
php artisan dywily:gaw-install
  • Add the following into providers of config/app.php
App\Providers\GmailServiceProvider::class,
php artisan serve --port 8068

PS

  • Usage of memory when synchronous mail is about using yield to retrieve the mailing list, vs directly return the mailing list 内存比照