minhajul / contact-exporter
contact-exporter
2.0
2021-02-09 16:08 UTC
Requires
- php: ^7.3|^7.4
- google/apiclient: ^2.9
- laravel/socialite: ^5.1
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.3
This package is auto-updated.
Last update: 2024-09-12 12:00:42 UTC
README
如果您想获取与Gmail关联的用户联系人,此包将为您节省大量时间。
安装
您可以通过composer安装此包
composer require minhajul/contact-exporter
您可以通过运行以下命令发布并运行配置文件
php artisan vendor:publish --provider="Minhajul\ContactExporter\ContactExporterServiceProvider" --tag="config"
用法
use Illuminate\Support\Facades\Route; use Minhajul\ContactExporter\ContactExporter; Route::get('your-url', function () { // This will redirect you to the gmail callback url return ContactExporter::initiate('google'); }); Route::get('your-gmail-callback-url', function () { // This below code will return you the array of contacts you have saved in your gmail return ContactExporter::getContacts('google'); });
贡献
有关详细信息,请参阅CONTRIBUTING
安全漏洞
请审查我们的安全策略,了解如何报告安全漏洞。
致谢
许可证
MIT许可证(MIT)。有关更多信息,请参阅许可证文件