PHP版Google People API的坑
如果您发现本文排版有问题,可以先点击下面的链接切换至老版进行查看!!!
PHP版Google People API的坑
Parameter name | Type | Description |
---|---|---|
pageToken | string | The token of the page to be returned. |
pageSize | number | The number of connections to include in the response. Valid values are between 1 and 500, inclusive. Defaults to 100. |
sortOrder | enum(SortOrder) | The order in which the connections should be sorted. Defaults to LAST_MODIFIED_ASCENDING. |
syncToken | string | A sync token, returned by a previous call to people.connections.list. Only resources changed since the sync token was created are returned. |
requestMask | object(RequestMask) | A mask to restrict results to a subset of person fields. |



$connections = $service->people_connections->listPeopleConnections('people/me', array(
'pageSize' => 500,
'requestMask.includeField' => 'person.names,person.phoneNumbers'
));
想多了,什么传入类不类的,压根都不需要!直接将person.names,person.phoneNumbers赋值给requestMask.includeField即可,无语了吧。直接说string类型不就行了?requestMask.includeField?说好的object呢?难道是string这个object啊- 分类:
- 吐槽
更新时间:
相关文章
发现你的手机上多了一个google setting了吗
相信不少用户今天会发现自己的android手机(无谷歌服务的可能没有)上面多了一个应用google setting 这玩意能干啥呢? 1、查看你的google+登陆的apps 2、显示 阅读更多…
google keep来了
Google keep之前在网站上短暂的露了个脸,不到24个小时,它就真的来了。从外表上看,它的定位是一个简单的能让你快速获取并组织信息的记事本,你可以添加文本,音乐和清单。 google 阅读更多…
IOS用户转投android吧
在6年的时间里,越狱一直都存在着。在经过了历史性的发布和硬软件更新后,iphone已经变得比以前更加脆弱了。为了维持它的光芒,苹果公司需要让IOS7成为更加强悍的升级。我不得不承认,这几年androi 阅读更多…
Android Studio报错Cause: dl.google.com:443 failed to respond
这虽然是一个老生常谈的问题了,但是昨天还是碰到了,还搞了半天。。。 我自己的电脑也是可以科学上网的,但是就是在用android studio开发android这里翻车了,gradle。。。 阅读更多…
pixel 3A (XL ) android P root教程Magisk
目前android Q的root貌似还没有搞定,还是老老实实先用android P吧 root的准备工作 解锁bootloader,步骤自行搜索 已经打过补丁的boot.img文件, 阅读更多…
注意了,谷歌I/O大会注册将于3月13日23时开始
北京时间3月23点即太平洋时间早上7点。再怎么强调注册时间也不为过,因为它真的很、非常、十分,真TMD重要——因为去年的票20分钟之内就抢完了。会议将在5月15-17日在 阅读更多…