我正在尝试使用 python api 从linkedin 获取公司更新。我试图获得超过 10 次更新,但我只获得 10 次,不多也不少。请查看我的代码是否错误:
CONSUMER_KEY = '9puxXXXXXXXX' # This is api_key
CONSUMER_SECRET = 'brtXoXXXXXXXXXXX' # This is secret_key
USER_TOKEN = '802b1348-XXXXXXXX' # This is oauth_token
USER_SECRET = 'e7a0c3XXXXXXXXXXX' # This is oauth_secret
RETURN_URL = 'http://localhost:8000'
authentication = linkedin.LinkedInDeveloperAuthentication(CONSUMER_KEY, CONSUMER_SECRET,
USER_TOKEN, USER_SECRET,
RETURN_URL, linkedin.PERMISSIONS.enums.values())
application = linkedin.LinkedInApplication(authentication)
d = application.get_company_updates(1035, params={'count': 26})
print d['_count']
>>>
10
>>>
我也试过
d = application.get_company_updates(1035, params={'_count': 26})
怎么了?