Using Google Reader API and OAuth in iPhone app

前端 未结 2 1703
梦谈多话
梦谈多话 2021-02-06 18:53

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

2条回答
  •  长发绾君心
    2021-02-06 19:08

    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).

    I have been able to access the API by changing (in the OAuthSampleTouch example)

    NSString *scope = @"http://www.google.com/m8/feeds/";
    

    in OAuthSampleRootViewControllerTouch.m to

    NSString *scope = @"http://www.google.com/reader/api/*";
    

    and

    urlStr = @"http://www.google.com/m8/feeds/contacts/default/thin";
    

    to

    urlStr = @"http://www.google.com/reader/atom/user/-/label/Design";
    

    where Design is a folder name - check this http://code.google.com/p/pyrfeed/wiki/GoogleReaderAPI its a great help.


    Update

    I have since found that this technique to be the best / lightest / less-complicated : Native Google Reader iPhone Application

提交回复
热议问题