在iPhone应用中使用Google Reader API和OAuth [英] Using Google Reader API and OAuth in iPhone app
问题描述
我想制作一个在Google阅读器API上使用的应用。但是我发现它没有正式的API - 在App Store指南/批准方面使用非官方API是否存在问题?其他应用程序(Reeder等)会使用它吗?
I want to make an app that uses on the Google Reader API. But I'm finding out that there isn't an offical API for it - is there a problem using the unofficial API, in terms of App Store guidelines/approval? Would other apps (Reeder, etc) use this?
此外,登录的最佳方法是什么? OAuth是优先方法吗?使用Janrain是个好主意吗?
Also what is the best method for logging in? Is OAuth the preffered method? Is using Janrain a good idea?
推荐答案
我发现这个:谷歌数据API Objective-C客户端库提供了一个iPhone静态库,Mac OS X框架和源代码,可以通过Google Data API轻松访问数据。 code.google.com/p/gdata-objectivec-client - 这太棒了!
它不包括Reader API(因为它尚未发布)。
Ive since found this: "The Google Data APIs Objective-C Client Library provides an iPhone static library, a Mac OS X framework, and source code that make it easy to access data through Google Data APIs. " code.google.com/p/gdata-objectivec-client - which is great! It doesn't include the Reader API however (because it's not been released).
我已经能够通过更改(在OAuthSampleTouch中)来访问API例子)
I have been able to access the API by changing (in the OAuthSampleTouch example)
NSString *scope = @"http://www.google.com/m8/feeds/";
OAuthSampleRootViewControllerTouch.m中的
in OAuthSampleRootViewControllerTouch.m to
NSString *scope = @"http://www.google.com/reader/api/*";
和
urlStr = @"http://www.google.com/m8/feeds/contacts/default/thin";
到
urlStr = @"http://www.google.com/reader/atom/user/-/label/Design";
其中Design是文件夹名称 - 请检查 http://code.google.com/p/pyrfeed/wiki/GoogleReaderAPI 给了我很大的帮助。
where Design is a folder name - check this http://code.google.com/p/pyrfeed/wiki/GoogleReaderAPI its a great help.
更新
我后来发现这种技术成为最好/最轻/最不复杂的:
原生Google阅读器iPhone应用程序
I have since found that this technique to be the best / lightest / less-complicated : Native Google Reader iPhone Application
这篇关于在iPhone应用中使用Google Reader API和OAuth的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!