oEmbed μμ νκΈ°
μ΄ κΈ°λ₯μ μ¬μ©νκΈ° μν΄ λ³λμ API μΈμ¦μ΄ νμνμ§ μμ΅λλ€.
oEmbed
oEmbedλ μΉμ¬μ΄νΈμ μ½ν
μΈ λ₯Ό λ€λ₯Έ νμ΄μ§μ ν¬ν¨ν μ μλλ‘ μ€κ³λ κ°λ°©ν νμ€μ
λλ€.
μ΄λ νΉμ μ’
λ₯μ λ―Έλμ΄ μ½ν
μΈ λ₯Ό μΈλΆ μΉμ¬μ΄νΈμ μ½κ² λ°°μΉν μ μλ λ°©λ²μ μ 곡ν©λλ€. ν¬ν¨νλ €λ μ½ν
μΈ μ ν΄λΉνλ νΉμ URLμ μ‘μΈμ€νλ©΄ ν¬ν¨ κ°λ₯ν μμλ₯Ό ν¬ν¨νμ¬ μ½ν
μΈ μ λν μμΈν μ 보λ₯Ό μ»μ μ μμ΅λλ€.
μμΊλμ€μμλ Play URLλ‘ oEmbedλ₯Ό μ¬μ©νμ¬ ν΄λΉ λΉλμ€μ λν ν¬ν¨ κ°λ₯ν μμλ₯Ό μμ±ν μ μμ΅λλ€.
oEmbed μλ΅ λ°κΈ°
oEmbed APIλ‘ ν΄λΉ μ½ν μΈ μ μ 보λ₯Ό μλμ κ°μ νμμΌλ‘ μμ²ν©λλ€.
{oEmbed API endpoint}?url={μ½ν μΈ μ£Όμ}&format={XML/JSON}
URL μ€ν€λ§
GET https://play.wecandeo.com/oembed/?url={PlayURL}
GET https://play.wecandeo.com/oembed/?key={videoKey}
μμΊλμ€ κ³΅κΈμ μ 보
provider_name: wecandeo
provider_url: https://www.wecandeo.com/
endpoints:
schemes:
https://play.wecandeo.com/video/v/*
url: https://play.wecandeo.com/oembed/
discovery: true
example_urls:
https://play.wecandeo.com/oembed/?url=https%3A%2F%2Fplay.wecandeo.com%2Fvideo%2Fv%2F%3Fkey%3DBOKNS9AQWrHDOWXC7DUr6tHd023xknvmIii8SOulPCMtAT1KxqmfHySho4pqLKNis4ZCy4IG7kZTQ431147TteoAieie
https://play.wecandeo.com/oembed/?url=https%3A%2F%2Fplay.wecandeo.com%2Fvideo%2Fv%2F%3Fkey%3DBOKNS9AQWrHDOWXC7DUr6tHd023xknvmIii8SOulPCMtAT1KxqmfHySho4pqLKNis4ZCy4IG7kZTQ431147TteoAieie&format=json
...
λΉλμ€ μ½μ
μλ΅μλ μ½μ
κ°λ₯ν μμκ° ν¬ν¨λ html νλλ₯Ό ν¬ν¨νμ¬ JSON(λλ XML)νμμ μ¬λ¬ λ©νλ°μ΄ν°κ° μ 곡λ©λλ€.
μ΄ λ°νλ λ°μ΄ν°λ₯Ό μ¬μ©νμ¬ μ¬μ΄νΈμ νμν λ°μ΄ν°λ₯Ό μ½μ
ν©λλ€.
Response Sample
{
url: "https://play.wecandeo.com/video/v/?key=BOKNS9AQWrHDOWXC7DUr6tHd023xknvmIii8SOulPCMtAT1KxqmfHySho4pqLKNis4ZCy4IG7kZTQ431147TteoAieie",
type: "video",
version: "1.0",
title: "WECANDEO Promote",
author: "",
author_url: "",
provider_name: "wecandeo",
description: "",
thumbnail_url: "http://timgs.acs.wecandeo.com/thumb/513/20150724/17/2257_6c4bd_00000_640_360.jpg",
duration: 59.2,
thumbnail_width: 640,
thumbnail_height: 360,
html: "<div style="position:relative; padding-bottom:56.25%; overflow:hidden;"><iframe width="100%" height="100%" src="https://play.wecandeo.com/video/v/?key=BOKNS9AQWrHDOWXC7DUr6tHd023xknvmIii8SOulPCMtAT1KxqmfHySho4pqLKNis4ZCy4IG7kZTQ431147TteoAieie" frameborder="0" allowfullscreen="" style="position:absolute;"></iframe></div>",
cache_age: 86400,
}
Updated 12 months ago