title: Check, if is allowed embedding ( youtube video ) PHP, new youtube API
body: <p>can someone hep with replace old way to new YouTube API? 
  I am looking for check option - allowed embedding.
  My old code in PHP:</p>
  
  <pre><code>$url="http://gdata.youtube.com/feeds/api/videos/" . $videoID . "?v=2&amp;alt=jsonc&amp;prettyprint=true";
  $json = file_get_contents($url, true);
  $json_output = json_decode($json);
  echo "emb = ".$json_output-&gt;data-&gt;accessControl-&gt;embed;
  </code></pre>
  
  <p>I am looking for easy, fast code, because i need to check more videos at time.
  Thx.</p>