【发布时间】:2015-07-26 02:11:59
【问题描述】:
我有一个 android 应用程序,我正在登录 g+ 并检索一些信息,为此我使用 GoogleApiClient 对象。这应该能够访问所有 google api,具体取决于您的设置方式。我这样做是为了 g+:
mGoogleApiClient = new GoogleApiClient.Builder(this).addConnectionCallbacks(this).addOnConnectionFailedListener(this).addApi(Plus.API, Plus.PlusOptions.builder().build()).addScope(Plus.SCOPE_PLUS_LOGIN).build();
我也在尝试授予它访问 youtube 的权限,但我一直无法找到 addApi 方法中可用的 api 以及如何使用它们。 youtube api 文档使用了一种非常不同的方法,与我已有的方法不兼容。如何使用我当前的代码访问 youtube?
【问题讨论】:
标签: android youtube google-api