我正在使用.net Google Plus API,我想获取指定个人资料(页面/用户......)的活动列表。
我有这个代码,我可以在线获取
var provider = new NativeApplicationClient(GoogleAuthenticationServer.Description);
provider.ClientIdentifier = GoogleIdentifier;
provider.ClientSecret = GoogleSecret;
ActivitiesResource.Collection collection = new ActivitiesResource.Collection();
var service = new PlusService();
service.Key = GoogleKey;
ActivitiesResource.ListRequest list = service.Activities.List(ProfileID, collection);
ActivityFeed activityFeed = list.Fetch();
int count = activityFeed.Items.Count;
在这一行:
ActivityFeed activityFeed = list.Fetch();
我收到以下错误:
An item with the same key has already been added.
答案 0 :(得分:0)
请求的密钥无效。只需把正确的ClientSecret& ClientIdentifier。