amaughan81/google-contact-groups

使用V3 API在服务器到服务器应用程序中管理Google联系组

dev-master 2017-02-13 15:12 UTC

This package is not auto-updated.

Last update: 2024-09-28 20:30:31 UTC


README

这是管理用户联系信息的缺失PHP客户端,使用Google Contacts V3 API

特性

  • 列出所有组
  • 获取单个组
  • 搜索组
  • 创建/更新/删除组
  • 批量创建/更新/删除组

安装

在您的compose.json文件中添加以下要求

{
	"require": {
      "google/apiclient": "^2.0",
      "google/apiclient-services" : "dev-master",
      "guzzlehttp/guzzle": "^6.2"
	},
  "autoload": {
    "psr-4": {
      "amaughan81\\": "vendor/amaughan81/GoogleContactGroups/src/"
    }
  }
}

然后运行composer update

设置

注意此应用程序是为服务器到服务器场景设计的,因此如果您在其他场景中使用此应用程序,可能需要额外的编码。

  1. 确保已安装所需依赖。请参阅上述require composer包。
  2. 更新config.json文件,并完成secret_pathclient_pathsubjectdeveloperKey的值。这些值可以从Google开发者控制台获取:[https://console.developers.google.com](https://console.developers.google.com)。其中secret_pathclient_path是您的服务器上JSON文件的路径,这些文件是从Google控制台获取的。