<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xuwei</author_name>
  <author_url>https://blog.hatena.ne.jp/xuwei/</author_url>
  <blog_title>xuwei-k's blog</blog_title>
  <blog_url>https://xuwei-k.hatenablog.com/</blog_url>
  <categories>
    <anon>java</anon>
    <anon>twitter</anon>
  </categories>
  <description>ここ読んで https://github.com/twitter/twitter4j/blob/2.2.5/twitter4j-core/src/main/java/twitter4j/Tweet.java#L38&quot;指定されていない場合は -1 が返るのかー&quot; と思いこんでプログラム書いて、toUserが指定されたtweetなのかどうかを判断するのに tweet.getToUserId &lt; 0 って書いて判断しようとしたら、なんだか動きがおかしい・・・(´・ω・｀)実際直接json見てみたら、toUserが指定されてない場合は0が返ってた・・・orzたしかに、 the to_user_id v…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxuwei-k.hatenablog.com%2Fentry%2F20120605%2F1338825156&quot; title=&quot; twitter4j の getToUserId でハマった - xuwei-k&amp;#39;s blog&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>2012-06-05 00:52:36</published>
  <title> twitter4j の getToUserId でハマった</title>
  <type>rich</type>
  <url>https://xuwei-k.hatenablog.com/entry/20120605/1338825156</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
