<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tohae</author_name>
  <author_url>https://blog.hatena.ne.jp/tohae/</author_url>
  <blog_title>#詰んでる日記</blog_title>
  <blog_url>https://tohae.hatenablog.com/</blog_url>
  <categories>
    <anon>php</anon>
  </categories>
  <description>Yahoo!IncのOAuthを試したくて、Yahoo!が提供するOAuthを扱うSDKを使ってみました。使い方自体は簡単でサンプル通りにやれば動いたのですが、ちょっと中身が気になったのでSDKのソースをちょこちょこと読んでみたら、OAuthというかテクニックとして少し気になるものがあったのでブログに書いておきます。 気になった部分というのは、タイトルにもあるようにJSONをbase64_encodeしてその値をCookieに入れる事です。 具体的なコードは以下の通り setcookie(&quot;yosdk_rt&quot;, base64_encode(json_encode($requestToken))…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftohae.hatenablog.com%2Fentry%2F20090419%2F1240157494&quot; title=&quot;JSONnをbase64_encodeしてCookieに入れる - #詰んでる日記&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>2009-04-19 01:11:34</published>
  <title>JSONnをbase64_encodeしてCookieに入れる</title>
  <type>rich</type>
  <url>https://tohae.hatenablog.com/entry/20090419/1240157494</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
