Skip to main content

Posts

Showing posts from June, 2016

YouTube API V3 for Android

Official Website for YouTube API V3 https://developers.google.com/youtube/v3/getting-started In YouTube API we can load videos with authentication or credential.   Google Sample for getting credential in android  https://github.com/googlesamples/android-credentials , but we will modify it for our sample application step by step. Create a OAuth 2.0 client IDs in Google API Console with your application package name for API for Android and this API key is not needed to be copied or pasted in your application its just to register your project for OAuth 2.0.   Add these library in your gradle file: compile 'com.google.android.gms:play-services-auth:9.0.2'  compile 'com.google.api-client:google-api-client-android:1.22.0'  compile 'com.google.apis:google-api-services-youtube:v3-rev171-1.22.0' compile 'com.github.bumptech.glide:glide:3.6.1' compile 'com.android.support:design:23.4.0' compile 'com.android.support:cardview-v7:23