我正在寻找有关如何格式化Google Plus People search API查询的文档。具体如何search by location
,除了使用关键字。
我也很高兴知道如何使用AND OR逻辑搜索关键字。
答案 0 :(得分:2)
不幸的是,目前无法做到这一点。 Google Plus People Search在displayName上搜索
您可以通过查看底部并使用试试我来测试:
GET https://www.googleapis.com/plus/v1/people?query=denmark&key={YOUR_API_KEY}
Authorization: Bearer ya29.yQAdQCMab-MuerpNcx-dImbA0fBPxfsJbzYo9W0zA2rPKxG0oSNOh9MlarI9BD2EhVAQLHQiqdsWNg
X-JavaScript-User-Agent: Google APIs Explorer
200 OK
- Show headers -
{
"kind": "plus#peopleFeed",
"etag": "\"RqKWnRU4WW46-6W3rWhLR9iFZQM/CQs9-i31YgOHOFErObqjjPpqvac\"",
"selfLink": "https://content.googleapis.com/plus/v1/people?query=denmark&key=AIzaSyCFj15TpkchL4OUhLD1Q2zgxQnMb7v3XaM",
"title": "Google+ People Search Results",
"nextPageToken": "EBkaAA",
"items": [
{
"kind": "plus#person",
"etag": "\"RqKWnRU4WW46-6W3rWhLR9iFZQM/dvmOjlS_L11y3FImcrvga14_MPI\"",
"objectType": "page",
"id": "107491210485921364379",
"displayName": "Denmark.dk - The official website of Denmark",
"url": "https://plus.google.com/+denmark",
"image": {
"url": "https://lh4.googleusercontent.com/-mBlKA4p0ZYQ/AAAAAAAAAAI/AAAAAAAAAOE/PxZ_m7uQ1LM/photo.jpg?sz=50"
}
},
{
"kind": "plus#person",
"etag": "\"RqKWnRU4WW46-6W3rWhLR9iFZQM/wAHGx7MwIQSVIJftHeGgFMiK7Uc\"",
"objectType": "person",
"id": "102142746546626575404",
"displayName": "Alumeco Denmark",
"url": "https://plus.google.com/102142746546626575404",
"image": {
"url": "https://lh6.googleusercontent.com/-L9Tg78K2IVU/AAAAAAAAAAI/AAAAAAAAAsU/qaJ2thgrfio/photo.jpg?sz=50"
}
}}
正如你所看到的那样,那里有丹麦人的显示名称。已经为此提出了功能请求。 https://code.google.com/p/google-plus-platform/issues/detail?id=693