在Android上将YouTube数据API添加到Google Client Api

时间:2016-07-27 02:29:34

标签: youtube-data-api android-youtube-api

如何创建可以传递给GoogleApiClient构建器的YouTube API类?

 mGoogleApiClient = new GoogleApiClient.Builder(getActivity())
                .addApi(Plus.API)
                .addApi(null)//<========================================INSERT YOUTUBE API HERE
                .addScope(Plus.SCOPE_PLUS_LOGIN)
                .addScope(Plus.SCOPE_PLUS_PROFILE)
                .addScope(CustomScopes.VIEW_YOUTUBE)
                .addConnectionCallbacks(this)
                .addOnConnectionFailedListener(this)
                .build();

0 个答案:

没有答案