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啊- 分类:
- 吐槽
更新时间:
上一篇:下一篇: