2. Codeigniter Configure for Youtube

Posted: 24/12/2013 in Youtube API
Tags: , , ,

YouTube API Library for the CodeIgniter PHP Framework

The files for this project can be found on GitHub at: https://github.com/jimdoescode/CodeIgniter-YouTube-API-Library

Folder Structure

  • 1. google_oauth.php – project/application/libraries.
    This library retrieves an OAuth access token to authenticate with YouTube
  • 2. Youtube.php – project/application/libraries.
    This library interacts with the API to submit your requests and retrieve XML responses to those requests
  • 3. Oauth_helper.php – project/application/helpers.
    It signs and builds OAuth HTTP headers and is used internally by both library files.

2. Get an API key to access YouTube’s API. To obtain a key, go to http://code.google.com/apis/youtube/dashboard/gwt/index.html

3. Establish OAuth Authentication from your new domain.

4. Configure Youtube API Key in Codeigniter

  • Step 1 : project/application/config.config.php
  • Step 2 : $config[‘youtube_api_key’] = ‘xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’;

Refereed By : Google API’s

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s