Search code examples
iosuiwebviewautologin

Can I automatically login to youtube using UIWebView (iOS)?


I have a question about authentication with UIWebView. I want to login in webview, but without webview interface. Is it possible? For example I will be using UITextField for user login and password. After the user enters a user name and password, the program will automatically log in and save the user's session. Is it possible to login without providing UIWebView interface?

I was able to parse the html page, but if the html changes, I can't correctly parse the new html.


Solution

  • Youtube has - like most google products - a pretty well documented API to access nearly everything on their site through API calls.

    Check http://code.google.com/intl/en/apis/youtube/overview.html