Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Integrate YouTube API in Cordova Android application

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 1.19k
    Comment on it

    Hello Readers,

    Today's post is about an integration of YouTube API with Cordova Android apps. To use YouTube API in our app we need API key. So, first of all, we need to register our app with some details.

    The following steps explain how to register the app and use YouTube API.

    • First, register your app to Google Developers Console.
    • Select create a new project and provide a project name.
    • Select YouTube data API in YouTube APIs section. Select YouTube data API then click on enable.

    Note: But we cannot use this API in our application until we create credentials. So we need to create credentials by click on credential on left side menu.

    • For the mobile application, we need to create API key. If our application runs on Android device we need to create Android API key.
    • To create Android API key we need to provide the SHA1 fingerprints and package name of the application.
    • For SHA1 fingerprints we simply run's the following command through CLI:
    $ keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -list -v

    For debug.keystore the password is android or we can get SHA1 fingerprint when we sign our app through eclipse. To sign Android application visit : Sign PhoneGap apps.

    • Package name will be in config.xml file of our project. It should be like com.example

    After getting SHA1 fingerprint and package name paste both from where requested.

    • Now we have the API key which we can use into our application.

    Now we can access YouTube API in our application. For more details click here.

    Hope this will help you :)

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: