C# 谷歌地图API出现“提要为只读”错误
我开始专门为金融应用程序使用谷歌数据API。我可以阅读我的投资组合,所以我认为我的认证是正确的。然而,当我尝试创建一个公文包时,我得到了一个“提要是只读的”错误。服务的构造函数:C# 谷歌地图API出现“提要为只读”错误,c#,google-maps,C#,Google Maps,我开始专门为金融应用程序使用谷歌数据API。我可以阅读我的投资组合,所以我认为我的认证是正确的。然而,当我尝试创建一个公文包时,我得到了一个“提要是只读的”错误。服务的构造函数: public class FinanceService : Service, IService { public FinanceService(string applicationName) : base ("finance", applicationName) { th
public class FinanceService : Service, IService
{
public FinanceService(string applicationName)
: base ("finance", applicationName)
{
this.RequestFactory = new GDataGAuthRequestFactory("finance", applicationName) { ProtocolMajor = 3 };
}
}
而拯救它就是
private const string _schema = "http://schemas.google.com/finance/2007";
private const string _feed = "http://finance.google.com/finance/feeds/default/portfolios";
AtomFeed atomFeed = new AtomFeed(new Uri(_feed), this.FinanceService);
return this.FinanceService.Insert(atomFeed, this as AtomEntry) as PortfolioEntry;
你知道为什么atomFeed是只读的吗?证书是合法的,我可以毫无问题地获得我当前的投资组合