<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
		<id>https://wiki.nonip.net/index.php?action=history&amp;feed=atom&amp;title=Php%2Ftwitter%2Ftwitteroauth</id>
		<title>Php/twitter/twitteroauth - 変更履歴</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.nonip.net/index.php?action=history&amp;feed=atom&amp;title=Php%2Ftwitter%2Ftwitteroauth"/>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Php/twitter/twitteroauth&amp;action=history"/>
		<updated>2026-04-24T20:49:56Z</updated>
		<subtitle>このウィキのこのページに関する変更履歴</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>https://wiki.nonip.net/index.php?title=Php/twitter/twitteroauth&amp;diff=121&amp;oldid=prev</id>
		<title>127.0.0.1: ページの作成:「==twitteroauthダウンロード== https://github.com/abraham/twitteroauth   $ git clone https://github.com/abraham/twitteroauth twitteroauth  ==twitterへ投稿&amp;tweet取...」</title>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Php/twitter/twitteroauth&amp;diff=121&amp;oldid=prev"/>
				<updated>2015-05-19T17:59:17Z</updated>
		
		<summary type="html">&lt;p&gt;ページの作成:「==twitteroauthダウンロード== https://github.com/abraham/twitteroauth   $ git clone https://github.com/abraham/twitteroauth twitteroauth  ==twitterへ投稿&amp;amp;tweet取...」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==twitteroauthダウンロード==&lt;br /&gt;
https://github.com/abraham/twitteroauth&lt;br /&gt;
&lt;br /&gt;
 $ git clone https://github.com/abraham/twitteroauth twitteroauth&lt;br /&gt;
&lt;br /&gt;
==twitterへ投稿&amp;amp;tweet取得==&lt;br /&gt;
 &amp;lt;?php&lt;br /&gt;
 require_once 'twitteroauth/twitteroauth/twitteroauth.php';&lt;br /&gt;
 require_once 'twitteroauth/twitteroauth/OAuth.php';&lt;br /&gt;
 //オプション設定&lt;br /&gt;
 $options = array('p' =&amp;gt; 'testword', 'count'=&amp;gt;'5','lang'=&amp;gt;'ja');&lt;br /&gt;
 $twitter = new TwitterOAuth(&lt;br /&gt;
                $dummy, //Consumer Key&lt;br /&gt;
                $dummy, //Consumer Secret&lt;br /&gt;
                $dummy, //Access Token&lt;br /&gt;
                $dummy //Access Token Secret&lt;br /&gt;
 );&lt;br /&gt;
 $json = $twitter-&amp;gt;OAuthRequest(&lt;br /&gt;
     'https://api.twitter.com/1.1/search/tweets.json',&lt;br /&gt;
     'GET',&lt;br /&gt;
     $options&lt;br /&gt;
 );&lt;br /&gt;
 $status = $twitter-&amp;gt;post('statuses/update', array('status' =&amp;gt; $msg));&lt;br /&gt;
 $data = json_decode($json, true);&lt;br /&gt;
 foreach ($data['statuses'] as $result){&lt;br /&gt;
    $id = $result['id'];&lt;br /&gt;
    $name = $result['in_reply_to_screen_name'];&lt;br /&gt;
    $uri = &amp;quot;http://twitter.com/&amp;quot;.$name;&lt;br /&gt;
    $link = $result['user']['profile_image_url'];&lt;br /&gt;
    $content = $result['text'];&lt;br /&gt;
    $updated = $result['created_at'];&lt;br /&gt;
    $jptime = strtotime($updated);&lt;br /&gt;
    $timestamp = $jptime + 9 * 60 * 60;&lt;br /&gt;
    $timestamp = date(&amp;quot;Y-m-d H:i:s&amp;quot;,$timestamp);&lt;br /&gt;
    $tmpHtml .= $content.&amp;quot;&amp;lt;&amp;lt;nowiki /&amp;gt;hr&amp;gt;&amp;quot;;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
==Zend_AutoLoaderがかかってる場合は以下のようなエラーが出る==&lt;br /&gt;
 PHP Warning:  include_once(OAuthException.php): failed to open stream: No such file or directory in /usr/share/php/ZendFramework-1.12.3-minimal/library/Zend/Loader.php on line 134&lt;br /&gt;
 library直下などにOAuthException.phpを用意する&lt;br /&gt;
*library/OAuthException.php&lt;br /&gt;
 &amp;lt;?php&lt;br /&gt;
 class OAuthException extends Exception{}&lt;/div&gt;</summary>
		<author><name>127.0.0.1</name></author>	</entry>

	</feed>