<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>thr3a</author_name>
  <author_url>https://blog.hatena.ne.jp/thr3a/</author_url>
  <blog_title>動かざることバグの如し</blog_title>
  <blog_url>https://blog.turai.work/</blog_url>
  <categories>
    <anon>php</anon>
  </categories>
  <description>なんてことはなかった。けどローカル環境だとうまく試せない。 たとえば文字列を受け取って小文字のアルファベットを大文字に変換してJSON形式で返却するAPI &lt;?php $str = $_GET[&quot;str&quot;]; $str = htmlspecialchars($str, ENT_QUOTES); $str = strtoupper($str); header(&quot;Content-Type: application/json; charset=utf-8&quot;); echo json_encode($str); 実際に使うには以下の様な感じ &lt;?php $str = &quot;hoge&quot;; $json = fi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.turai.work%2Fentry%2F20131009%2F1381283859&quot; title=&quot;APIを自作してみる - 動かざることバグの如し&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-10-09 10:57:39</published>
  <title>APIを自作してみる</title>
  <type>rich</type>
  <url>https://blog.turai.work/entry/20131009/1381283859</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
