Google plus 如何获得googleplus页面关注者的数量?
是否有可能获得我的Google Plus页面的粉丝数量。以下脚本(我在前面的文章中找到)不起作用(没有输出):Google plus 如何获得googleplus页面关注者的数量?,google-plus,Google Plus,是否有可能获得我的Google Plus页面的粉丝数量。以下脚本(我在前面的文章中找到)不起作用(没有输出): 谢谢大家! 可能有一些问题: 上没有更新的项目 没有为该项目启用API 超过阈值/配额 请尝试以下操作: 登录到您的 你需要一个项目。 如果你没有项目,就创建一个 在该项目上启用“Google Plus API” 确认使用/报价在允许范围内,并且您尚未通过 从那时起,您的电话应正常工作: GET https://www.googleapis.com/plus/v1/people
谢谢大家! 可能有一些问题:
- 上没有更新的项目
- 没有为该项目启用API
- 超过阈值/配额
- 如果你没有项目,就创建一个
GET https://www.googleapis.com/plus/v1/people/{USER_ID}?key={YOUR_API_KEY}
在我的例子中,我查询的是的页面,所以{USER\u ID}=116899029373591404450
。然后我可以看到plusOneCount
:
{
"kind": "plus#person",
"etag": "\"RqKWnRU4WW46-6W3rWhLR9iFZQM/bTf-sq_Sg3fLAFijixPfjtKM5f8\"",
"urls": [
{
"value": "http://www.google.com",
"type": "website",
"label": "www.google.com"
},
{
"value": "http://www.google.com/support/",
"type": "other",
"label": "Google Help"
},
{
"value": "http://googleblog.blogspot.com/",
"type": "other",
"label": "Official Blog"
},
{
"value": "http://twitter.com/#!/google",
"type": "other",
"label": "@google"
},
{
"value": "http://www.google.com/about/corporate/company/",
"type": "other",
"label": "Company Info"
},
{
"value": "http://www.google.com/press/",
"type": "other",
"label": "News"
},
{
"value": "http://www.google.com/press/google-directory.html",
"type": "other",
"label": "More Google pages"
}
],
"objectType": "page",
"id": "116899029375914044550",
"displayName": "Google",
"tagline": "News and updates on Google's products, technology and more",
"aboutMe": "<p>Welcome to Google's official page. Here, you'll find product news and announcements, company updates, glimpses into what it's like to work at Google, discussions on technology and the web, and much more. </p><p><span>Given the volume of feedback we receive here, we may not be able to respond individually to every comment and we're not able to provide product support (if you're having product issues, please visit our Help Center). Rest assured we're paying attention, and we're always eager to hear from you.</span></p>",
"url": "https://plus.google.com/+google",
"image": {
"url": "https://lh4.googleusercontent.com/-v0soe-ievYE/AAAAAAAAAAI/AAAAAAAC9wQ/JD8tdz3bFTM/photo.jpg?sz=50",
"isDefault": false
},
"isPlusUser": true,
"plusOneCount": 10757884,
"circledByCount": 7692912,
"verified": true,
"cover": {
"layout": "banner",
"coverPhoto": {
"url": "https://lh4.googleusercontent.com/-PLPoXvnN0XI/UTdr4xTtuHI/AAAAAAAA_1U/p1n_Za3BZUg/s630-fcrop64=1,00000000fe06fe97/g_plus_background.png",
"height": 528,
"width": 940
},
"coverInfo": {
"topImageOffset": 0,
"leftImageOffset": 0
}
}
}
{
“善良”:“加上人”,
“etag”:“RqKWnRU4WW46-6W3rWhLR9iFZQM/bTf-sq Sg3fLAFijixPfjtKM5f8\”,
“URL”:[
{
“值”:http://www.google.com",
“类型”:“网站”,
“标签”:“www.google.com”
},
{
“值”:http://www.google.com/support/",
“类型”:“其他”,
“标签”:“谷歌帮助”
},
{
“值”:http://googleblog.blogspot.com/",
“类型”:“其他”,
“标签”:“官方博客”
},
{
“值”:http://twitter.com/#!/谷歌“,
“类型”:“其他”,
“标签”:“@google”
},
{
“值”:http://www.google.com/about/corporate/company/",
“类型”:“其他”,
“标签”:“公司信息”
},
{
“值”:http://www.google.com/press/",
“类型”:“其他”,
“标签”:“新闻”
},
{
“值”:http://www.google.com/press/google-directory.html",
“类型”:“其他”,
“标签”:“更多谷歌页面”
}
],
“对象类型”:“页面”,
“id”:“1168990293735914044550”,
“显示名称”:“谷歌”,
“标语”:“谷歌产品、技术等的新闻和更新”,
“关于我”:"欢迎来到谷歌的官方页面。在这里,你可以看到产品新闻和公告、公司更新、在谷歌工作的感受、技术和网络讨论等等。鉴于我们在这里收到的反馈数量巨大,我们可能无法单独回应每一条评论,我们也不例外能够提供产品支持(如果您有产品问题,请访问我们的帮助中心)。请放心,我们正在关注您的问题,我们一直渴望收到您的回复。“,
“url”:”https://plus.google.com/+谷歌“,
“图像”:{
“url”:”https://lh4.googleusercontent.com/-v0soe-ievYE/AAAAAAAAAAI/AAAAAAAC9wQ/JD8tdz3bFTM/photo.jpg?sz=50",
“isDefault”:false
},
“isPlusUser”:正确,
“plusOneCount”:10757884,
“circledByCount”:7692912,
“验证”:正确,
“封面”:{
“布局”:“横幅”,
“封面照片”:{
“url”:”https://lh4.googleusercontent.com/-PLPoXvnN0XI/UTdr4xTtuHI/AAAAAAAA_1U/p1n_Za3BZUg/s630-fcrop64=1,00000000 fe06fe97/g_plus_background.png“,
“高度”:528,
“宽度”:940
},
“封面信息”:{
“topImageOffset”:0,
“leftImageOffset”:0
}
}
}
谢谢,激活PlusAPI后,脚本可以运行!但它不显示关注者的数量,而是显示+1的数量。如何处理页面关注者的数量?可能(猜测)希望按计数圈。
。就这样!非常感谢!:):)
{
"kind": "plus#person",
"etag": "\"RqKWnRU4WW46-6W3rWhLR9iFZQM/bTf-sq_Sg3fLAFijixPfjtKM5f8\"",
"urls": [
{
"value": "http://www.google.com",
"type": "website",
"label": "www.google.com"
},
{
"value": "http://www.google.com/support/",
"type": "other",
"label": "Google Help"
},
{
"value": "http://googleblog.blogspot.com/",
"type": "other",
"label": "Official Blog"
},
{
"value": "http://twitter.com/#!/google",
"type": "other",
"label": "@google"
},
{
"value": "http://www.google.com/about/corporate/company/",
"type": "other",
"label": "Company Info"
},
{
"value": "http://www.google.com/press/",
"type": "other",
"label": "News"
},
{
"value": "http://www.google.com/press/google-directory.html",
"type": "other",
"label": "More Google pages"
}
],
"objectType": "page",
"id": "116899029375914044550",
"displayName": "Google",
"tagline": "News and updates on Google's products, technology and more",
"aboutMe": "<p>Welcome to Google's official page. Here, you'll find product news and announcements, company updates, glimpses into what it's like to work at Google, discussions on technology and the web, and much more. </p><p><span>Given the volume of feedback we receive here, we may not be able to respond individually to every comment and we're not able to provide product support (if you're having product issues, please visit our Help Center). Rest assured we're paying attention, and we're always eager to hear from you.</span></p>",
"url": "https://plus.google.com/+google",
"image": {
"url": "https://lh4.googleusercontent.com/-v0soe-ievYE/AAAAAAAAAAI/AAAAAAAC9wQ/JD8tdz3bFTM/photo.jpg?sz=50",
"isDefault": false
},
"isPlusUser": true,
"plusOneCount": 10757884,
"circledByCount": 7692912,
"verified": true,
"cover": {
"layout": "banner",
"coverPhoto": {
"url": "https://lh4.googleusercontent.com/-PLPoXvnN0XI/UTdr4xTtuHI/AAAAAAAA_1U/p1n_Za3BZUg/s630-fcrop64=1,00000000fe06fe97/g_plus_background.png",
"height": 528,
"width": 940
},
"coverInfo": {
"topImageOffset": 0,
"leftImageOffset": 0
}
}
}