結合youtube上傳與oauth2認證的範例
網誌說明 http://publicwgengineer.blogspot.tw/2014/07/android-youtube.html
Step 1
register google console Api
https://console.developers.google.com/project
Step 2
create google oauth web application
Step 3
create google oauth app install application
- SubmitActivity.class
// youtube 上傳用
private static String CLIENT_ID = "your oauth key client";
// Use your own client id
private static String CLIENT_SECRET = "your client secret key";
// Use your own client secret
private static String REDIRECT_URI = "your oauth REDIRECT_URI";