挖掘社交网络中响应未就绪错误的原因是什么?

时间:2015-05-07 18:02:10

标签: httplib

import httplib2
import json
import apiclient.discovery # pip install google-api-python-client

# XXX: Enter any person's name
Q = "Vamsi"

# XXX: Enter in your API key from  https://code.google.com/apis/console

API_KEY = ''

service = apiclient.discovery.build('plus', 'v1', http=httplib2.Http(), 
                                    developerKey=API_KEY)

people_feed = service.people().search(query=Q).execute()

print json.dumps(people_feed['items'], indent=1)

0 个答案:

没有答案