ラベル Youtube API3.0 の投稿を表示しています。 すべての投稿を表示
ラベル Youtube API3.0 の投稿を表示しています。 すべての投稿を表示

2015年8月6日木曜日

Google にアプリケーションIDの取得サイト

Google にアプリケーションIDの取得サイト

https://appengine.google.com/
https://console.developers.google.com/project




2015年4月26日日曜日

Youtube API 2.0 サポート終了、API3.0のサーチのために記録

Youtube API 2.0 サポート終了のため、検索結果に「UKY3scPIMd8」
動画が追加されます。 API3.0のOath認証しないサーチのプログラム



<?php
//YoutubeClass.php ver 2
//youtube api 3.0
//https://www.youtube.com/watch?v=UKY3scPIMd8

$g=$_GET['g'];

if($g){
$x=new YoutubeAPI($g);
$x->link();
}else{
exit('88');
}


class youtubeapi {
public $url;
public function youtubeapi($key){
$API_URL = 'https://www.googleapis.com/youtube/v3/search?';
$para['key'] = 'AI********************************Ao';
$para['part'] = 'id';
$para['q'] = $key;
$para['type'] = 'video';
$para['maxResults'] = 3;
$this->url = $API_URL.http_build_query($para);
}

public function link(){
$ll=array();
$data = file_get_contents($this->url);
$xdata = json_decode($data ,true);
foreach ($xdata['items'] as $key=>$val){
$ll[count($ll)]=$val['id']['videoId'];
}
unset ($key);
unset ($val);
echo implode('|',$ll);
}
}

?>

2014年4月29日火曜日

Youtube API 3.0 の応用

Youtube API 3.0 の応用

1. Youtube リスト作成、公開、List ID
2. 必要な曲を検索する、Video ID
3. Video ID を List ID に追加する。





https://www.youtube.com/user/icq7219388

Youtube API3.0 その2

この概要は表示できません。投稿を閲覧するには ここをクリック してください。

YouTube Data API 3.0 その1

この概要は表示できません。投稿を閲覧するには ここをクリック してください。