I'm trying to access YouTube from within an iOS app, but the iOS SDK is a bit outdated and the source is abysmal. I'm trying to access the playlist of a particular account and show it as part of an app.
Is there any API or URL endpoint I can use? Do I need to use the SDK, or can I manually craft HTTP requests using Objective-C? (I'm thinking LRResty or something similar.)
Edit:
Do I need to have an API key to use the RESTful API? If so, how do I obtain one?
Yep: you want the Youtube Data API, probably the playlist feed. Standard HTTP requests will work fine.
ReplyDeleteI'm not sure if this is the SDK you are talking about being outdated, but the GDataLibrary for Objective-C can make the connections for you.
ReplyDeletehttp://code.google.com/p/gdata-objectivec-client/
I have been using it to make connections to Google Spreadsheets and its been working pretty well. You can choose to implement select services from the Project so it doesn't weigh your project down at compile time with code that doesn't mean anything to you.
I believe that this library is a pretty looking wrapper for Google Services API's in Objective-C
Here is information on how to set it up for use with your project.
GData Introduction