와 함께 더 나은 행운이있을 수 있습니다.
Dailymotion APIs documentation 페이지를 읽고 프로그래밍 방식으로 비디오 정보에 액세스하는 방법을 알아보십시오. JSON 형식의 응답 비디오의 제목을 얻으려면, REST API를 사용하여 하나의 예로서
, 가져 오기 :
는
https://api.dailymotion.com/video/xks75n?fields=title
또 다른 옵션은
{
"title": "The Farmer and His Sons- Aesop's fables"
}
입니다 반환 질문에있는 URL에서 oEmbed API을 사용하십시오. 당신이 json_decode()
는 "디코드"그는 PHP 객체 또는 배열에 값 (들)에 액세스 할 때 사용 할 수 있습니다
{
"type": "video",
"version": "1.0",
"provider_name": "Dailymotion",
"provider_url": "http:\/\/www.dailymotion.com",
"title": "The Farmer and His Sons- Aesop's fables",
"author_name": "hooplakidz",
"author_url": "http:\/\/www.dailymotion.com\/hooplakidz",
"width": 480,
"height": 269,
"html": "<iframe src=\"http:\/\/www.dailymotion.com\/embed\/video\/xks75n\" width=\"480\" height=\"269\" frameborder=\"0\"></iframe>",
"thumbnail_url": "http:\/\/static2.dmcdn.net\/static\/video\/369\/709\/34907963:jpeg_preview_large.jpg?20110830044159",
"thumbnail_width": 426.666669846,
"thumbnail_height": 240
}
힌트를 반환
http://www.dailymotion.com/services/oembed?format=json&url=http://www.dailymotion.com/embed/video/xks75n
. 당신이 PHP를 사용하는 경우
시도 – George