0

I'm using the Youtube Data Api v3 and I want to use the json form to get the Client ID from OAuth and the client secret, also the app name too, but I don't know how to call the JSON object.

My code look like this:

$application_name = 'StackOverflow'; 
$client_secret = 'xxxxxx';
$client_id = 'xxxxxx.apps.googleusercontent.com';
$scope = array('https://www.googleapis.com/auth/youtube.upload', 'https://www.googleapis.com/auth/youtube', 'https://www.googleapis.com/auth/youtubepartner');

$videoPath = $_SERVER["DOCUMENT_ROOT"] . "/apiyoutube/google-api/xxx.avi";

Instead of this, I want to get the all of above Id's from the JSON to use the api in a safe way.

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449
7sega7
  • 101
  • 4

0 Answers0