jjzjj

iphone - GDataXMLDocument nodesForXPath 返回错误

我需要你的帮助,我想使用GDataXMLDocument解析一个XML文件,我想获取特定标签的所有属性,但是当我使用或只是提供XPath的值来获取columnHeading值时GDataXMLDocument*doc=[[GDataXMLDocumentalloc]initWithData:[NSDatadataWithContentsOfFile:path]encoding:NSUTF8StringEncodingerror:NULL];NSArray*tempArray=[docnodesForXPath:@"//root/xsd:schema"namespaces:nilerro

iphone - gdata-objectivec-client api + oauth2 ios 框架中的错误

伙计们,我正在我的iPhone应用程序中集成Google文档,我使用了来自http://code.google.com/p/gdata-objectivec-client/的gdata-objectivec-client|并使用以下步骤配置我的项目http://hoishing.wordpress.com/2011/08/23/gdata-objective-c-client-setup-in-xcode-4/当我使用以下代码创建GTMOAuth2ViewControllerTouch.h实例时GTMOAuth2ViewControllerTouch*viewController;vi

iphone - KissXML 和 GData 已弃用?

我看到KissXML和GooglesGData都被弃用了。我们还可以/应该使用它们吗?有哪些替代方案?我希望能够在iOS上使用XSD架构读写xml。有什么建议吗? 最佳答案 gdata-objectivec-client项目并未被弃用,尽管Google通常将JSON用于较新的API。库对XML的支持基本上包含在一个类文件中,GDataXMLNode,它模拟了Apple的树形NSXMLAPI并建立在libxml2之上.虽然GDataXML是根据图书馆的需要量身定制的,但它也可以在图书馆外使用。对于您自己的应用程序,是否继续支持任何特定

objective-c - 使用 gdata xml 解析带有命名空间的 xml

我正在开发一个ios应用程序,我正在用gdataxml解析我的xml,但是我做错了,我的nslog是空的NSError*error=nil;GDataXMLDocument*xmlResult=[[GDataXMLDocumentalloc]initWithData:dataoptions:0error:&error];if(error){NSLog(@"%@",error);}NSLog(@"%@",xmlResult.rootElement);我的根元素是完美的,错误是tempArrayNSArray*tempArray=[xmlResultnodesForXPath:@"//me

android - 如何获取 YouTube JSON GData 网址

我已经制作了一个应用程序,我在其中使用此url获取YouTube视频:http://gdata.youtube.com/feeds/api/users/GoogleDevelopers/uploads?v=2&alt=jsonc以同样的方式我想使用这个url获取YouTube视频:http://www.youtube.com/playlist?list=PL34F010EEF9D45FB8问题:我不知道如何获取此链接的YouTubeJSONGDataURL...http://www.youtube.com/playlist?list=PL34F010EEF9D45FB8

android - 使用 Android AccountManager 获取 gdata 的 authtoken

所以我正在尝试同步到google文档,而不必向用户询问他的凭据。我使用此代码获取授权token:AccountManagermgr=AccountManager.get(activity);authToken=mgr.blockingGetAuthToken(account,DocsService.DOCS_SERVICE,true);这会返回一个看起来格式正确的授权token。所以在我的DocsService上运行:service.setAuthSubToken(authToken);但是,当我尝试使用API时,我只收到AuthenticationException。关于如何处理此错

android - 有没有办法在不使用 gdata-java-client 的情况下访问日历条目?

是否可以从手机离线获取日历条目?似乎唯一的方法是使用gdata-java-client. 最佳答案 Josef和Isaac访问日历的解决方案仅适用于Android2.1及更早版本。Google已将2.2中的基本内容URI从“content://calendar”更改为“content://com.android.calendar”。此更改意味着最好的方法是尝试使用旧的基本URI获取游标,如果返回的游标为空,则尝试使用新的基本URI。请注意,我从opensourcetestcode中获得了这种方法ShaneConder和LaurenD

android - 谷歌电子表格 API - Java - com.google.gdata.util.ParseException : Unrecognized content type:application/binary

我在我的简单Android应用程序中使用GoogleSpreadsheetAPI。这是一段代码:URLspreadSheetUrl=newURL("https://spreadsheets.google.com/feeds/spreadsheets/private/full");SpreadsheetQueryquery=newSpreadsheetQuery(spreadSheetUrl);query.setTitleQuery("xyz");query.setTitleExact(true);SpreadsheetFeedspreadSheetFeed=service.getFee

android - 在 youtube channel 上获取带有所有上传视频的 id 的 XML

我在YouTubechannel中上传了100多个视频。我将channel的xml获取为:https://gdata.youtube.com/feeds/api/users/UserId/uploads,它只为25个视频返回带有id的xml。如何获取特定channel上所有上传视频的xml 最佳答案 默认情况下,API仅返回25,您必须添加最大结果参数才能获得更多结果,但遗憾的是,这最多只允许您返回50。https://gdata.youtube.com/feeds/api/users/UserId/uploads?&max-res

android - 尝试使用 gdata API 将视频上传到 YouTube 时找不到类错误

我目前正在编写一个Android应用程序的一部分,以使用Google数据API将视频上传到YouTube。我有来自GoogleCode的最新版本的API,我基本上从他们的Developer'sGuide中复制了示例。暂时。一切都在没有警告或错误的情况下编译,应用程序运行良好。但是当我调用service.insert(...)时,我得到以下堆栈跟踪:ERROR/dalvikvm(19489):Couldnotfindclass'com.google.gdata.data.media.MediaBodyPart$MediaSourceDataHandler',referencedfromm