私は、ユーザーがにログインしてYouTube
、次の方法でユーザーの履歴とお気に入りのプレイリストを取得できる.Netアプリケーションを構築しています。
YouTubeRequestSettings settings = new YouTubeRequestSettings(appname, developerkey, username, password);
YouTubeRequest request = new YouTubeRequest(settings);
Uri videoEntryUrl = new Uri("https://gdata.youtube.com/feeds/api/users/default/watch_history?v=2&max-results=50");
Feed<Video> videos = request.Get<Video>(videoEntryUrl);
今私の質問は、ユーザーのログイン詳細を取得し、トークンを取得してすべてのリクエストで使用するときにログインできますか?
毎回ログインの詳細を尋ねずにリクエストをしたいのですがYouTubeRequestSettings
、トークンで送信するオプションがあることがわかりました。
public YouTubeRequestSettings(string applicationName, string developerKey, string authSubToken);
このトークンを取得するにはどうすればよいですか?