在此代码中,我必须传递OAuth的凭证。
try {
// Authorize the request.
Credential credential = Auth.authorize(scopes, "myuploads");
// This object is used to make YouTube Data API requests.
youtube = new YouTube.Builder(Auth.HTTP_TRANSPORT, Auth.JSON_FACTORY, credential).setApplicationName(
"youtube-cmdline-myuploads-sample").build();
有没有人知道如何在Android应用程序中获取谷歌凭证。