定制 premiumfastnet/google-people-contact 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

premiumfastnet/google-people-contact

Composer 安装命令:

composer require premiumfastnet/google-people-contact

包简介

Google People Contact PHP SDK

README 文档

README

This is an SDK for Google People (known as Google Contact)

You can check all the information on the official google people page at the following link: https://developers.google.com/people/api/rest

Install

composer require premiumfastnet/google-people-contact

Example

Generate Auth URL

<?php

require 'vendor/autoload.php';

use PremiumFastNetwork\Client;
use PremiumFastNetwork\Scopes;

$client = new Client();
$client->setClientId('googleClientID');
$client->setClientSecret('googleClientSecrets');
$client->setScopes([
    Scopes::USERINFO_PROFILE,
    Scopes::CONTACTS,
    Scopes::CONTACTS_READONLY,
]);

$authUrl = $client->createAuthUrl();

print_r($authUrl);

Get Access Token From Code

$authCode = $client->getTokenWithCode('ResponseCode');
print_r($authCode);

List All Contact

$people = new People($client);
$lists = $people->listContact([
    'pageSize' => 100,
    'personFields' => 'names,phoneNumbers'
]);
print_r($lists);

统计信息

  • 总下载量: 85
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-05-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固