This is demo app for how-to-use Youtube API based on Zend GData Library.
You can start to register your app and get your developers_key
, client_id
, and client_secret
by visiting your Google code dashboard.
Rename config.default.php
to config.php
and edit config.php
with your credentials.
First step on google Auth is get your single-use token so we can upgrade it to session token, by visiting url that generated by Zend GData Library.
After you visit url for generate your single-use token you will be redirected back to your app (you can configure url for handle redirect from Youtube) along with your single-use token (on $_GET
variable).
Upgrade single-use Token to session token so you can keep it on PHP session or in Database like MySQL.