我正在使用.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.
请求的密钥无效。只要把正确的ClientSecret&客户端标识符。