Google Developers Console and create a project.', 'Expand "API & Auth" on the left and click "APIs". Choose the "YouTube Data API" API and enable the API.', 'Click into the "Credentials" section and click the "Add Credentials" button, choosing OAuth 2.0 client ID.', 'Choose "Web Application" for the Application Type. Enter '.DEVELOPER_ROOT.'services/youtube/return/ as the "Authorized redirect URI".', 'Enter the Client ID and Client Secret that was created from the previous step below.', 'Follow the OAuth process of allowing BigTree/your application access to your YouTube account.' ); function __localBigTreeAPIReturn(&$api) { $info = $api->getChannel(); $api->Settings["user_id"] = $info->ID; $api->Settings["user_name"] = $info->Title; $api->Settings["user_image"] = $info->Images->Default; } ?>