<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[TNF : Tatter Network Foundation forum - blog API를 테스트해 보고 있습니다.. 근데.]]></title>
	<link rel="self" href="http://forum.tattersite.com/ko/extern.php?action=feed&amp;tid=3280&amp;type=atom"/>
	<updated>2007-06-05T10:48:00Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.tattersite.com/ko/viewtopic.php?id=3280</id>
		<entry>
			<title type="html"><![CDATA[RSS 답글: blog API를 테스트해 보고 있습니다.. 근데.]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=18567#p18567"/>
			<content type="html"><![CDATA[<p>분재가는 닉이 아니라 회원 등급입니다. 이번에 렙업(?)했군요.</p><p>닉은 위에 -ㅅ-</p>]]></content>
			<author>
				<name><![CDATA[gendoh]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=17</uri>
			</author>
			<updated>2007-06-05T10:48:00Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=18567#p18567</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: blog API를 테스트해 보고 있습니다.. 근데.]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=18565#p18565"/>
			<content type="html"><![CDATA[<p>음... 역시 그렇겠죠?<br />이거 어떻게 ruby 커뮤니티에 버그 리포팅을 해야겠군요.<br />감사합니다.<br />어 닉을 바꾸셨네요~!</p>]]></content>
			<author>
				<name><![CDATA[ezhong]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=1440</uri>
			</author>
			<updated>2007-06-05T09:49:49Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=18565#p18565</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: blog API를 테스트해 보고 있습니다.. 근데.]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=18564#p18564"/>
			<content type="html"><![CDATA[<p>루비의 XMLRPC 라이브러리 문제인것 같은데... 정확히 루비 라이브러리 버전을 알 수 없으니 모르겠습니다만... ISO8601 Standard를 모두 지원하지 못해서 몇번의 패치도 있었던 것 같은데 아무튼.</p><p>최신버전으로 업해보거나 해당 위치에서 (xmlrpc/parser.rb) 디버깅을 해 보는 수밖에는 없을 것 같군요.</p><p>태터나 티스토리 범위도 벗어 났고 지금 루비를 디버깅할 수 있는 환경이 없어서 더 이상은;;;</p><p>PS.<br />루비는 아직 갈길이 먼듯 -ㅅ-.<br />뭐 자바쪽 xmlrpc 라이브러리(아파치)도 괴상한 짓을 해서 한때 쑈한적이 있습니다만.</p>]]></content>
			<author>
				<name><![CDATA[gendoh]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=17</uri>
			</author>
			<updated>2007-06-05T09:34:52Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=18564#p18564</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: blog API를 테스트해 보고 있습니다.. 근데.]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=18563#p18563"/>
			<content type="html"><![CDATA[<p>어이쿠 그래도 전 잘 안되네요...</p><div class="codebox"><pre><code>require &#039;xmlrpc/client&#039;
require &#039;pp&#039;
server = XMLRPC::Client.new2 &#039;http://monoscri**.tistory.com/api&#039;
result = server.call(&#039;metaWeblog.getPost&#039;, &#039;15***-270&#039;, &#039;monoscri**^@^gmail.com&#039;, &#039;******&#039;)
pp result</code></pre></div><p>위 코드를 실행하면 에러가 납니다.<br /></p><div class="quotebox"><blockquote><p>D:\temp\blog_hack&gt;ruby post_edit_test.rb<br />c:/ruby/lib/ruby/1.8/xmlrpc/parser.rb:95:in `utc&#039;: can&#039;t convert Array into Inte<br />ger (TypeError)<br />&nbsp; &nbsp; &nbsp; &nbsp; from c:/ruby/lib/ruby/1.8/xmlrpc/parser.rb:95:in `dateTime&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; from c:/ruby/lib/ruby/1.8/xmlrpc/parser.rb:536:in `tag_end&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; from c:/ruby/lib/ruby/1.8/rexml/parsers/streamparser.rb:26:in `parse&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; from c:/ruby/lib/ruby/1.8/rexml/document.rb:185:in `parse_stream&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; from c:/ruby/lib/ruby/1.8/xmlrpc/parser.rb:717:in `parse&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; from c:/ruby/lib/ruby/1.8/xmlrpc/parser.rb:460:in `parseMethodResponse&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; from c:/ruby/lib/ruby/1.8/xmlrpc/client.rb:421:in `call2&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; from c:/ruby/lib/ruby/1.8/xmlrpc/client.rb:410:in `call&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; from post_edit_test.rb:11</p></blockquote></div><p>아무래도 고급식물관리사님께서 답변주신대로 하니, 글을 가져오기는 하는 것 같은데요, <br />이것은 갖고 온 값을 제대로 parsing 하지 못하는게 아닌가 의심됩니다.</p>]]></content>
			<author>
				<name><![CDATA[ezhong]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=1440</uri>
			</author>
			<updated>2007-06-05T04:32:44Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=18563#p18563</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: blog API를 테스트해 보고 있습니다.. 근데.]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=18555#p18555"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>ezhong 작성:</cite><blockquote><p>아아 그거로구나... 그러니까 블로그아이디-글번호 이런 형식이었군요.<br />감사합니다.!!</p></blockquote></div><p>저 형식은 그날 기분따라 변경 될 수 있으므로;;; -ㅅ-</p><p>글의 ID는 글만 찾을 수 있으면 되기 때문에 어떠한 가정도 하지 마시기 바랍니다. 가령 일부 BlogAPI를 지원하는 툴들은 숫자로만 되어 있을거다라거나, 글 주소와의 연관성이 있을꺼다라고 가정하는데 스펙을 보면 전혀 그런거 없습니다.</p><p><a href="http://www.sixapart.com/developers/xmlrpc/metaweblog_api/metaweblogeditpost.html">http://www.sixapart.com/developers/xmlr … tpost.html</a></p><p>오히려 너무 험블하죠.</p>]]></content>
			<author>
				<name><![CDATA[gendoh]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=17</uri>
			</author>
			<updated>2007-06-04T06:35:27Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=18555#p18555</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: blog API를 테스트해 보고 있습니다.. 근데.]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=18554#p18554"/>
			<content type="html"><![CDATA[<p>아아 그거로구나... 그러니까 블로그아이디-글번호 이런 형식이었군요.<br />감사합니다.!!</p>]]></content>
			<author>
				<name><![CDATA[ezhong]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=1440</uri>
			</author>
			<updated>2007-06-04T04:04:08Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=18554#p18554</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: blog API를 테스트해 보고 있습니다.. 근데.]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=18552#p18552"/>
			<content type="html"><![CDATA[<p>postid가 Tatter의 ID와 일치하지는 않습니다.</p><p>생성시 혹은 리스트 받아와서 작업하셔야 합니다.</p><p>또한 ID는 스트링 타입이어야 합니다.</p><p>&quot;{$BlogID}-{$PostId}&quot; 형태로 기억이 되는군요. (가물가물 @.@; )</p>]]></content>
			<author>
				<name><![CDATA[gendoh]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=17</uri>
			</author>
			<updated>2007-06-04T03:35:36Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=18552#p18552</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[blog API를 테스트해 보고 있습니다.. 근데.]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=18551#p18551"/>
			<content type="html"><![CDATA[<p>간단하게 ruby로 제 블로그의 글을 수정할 수 있는 것을 테스트해 보고 있는데요,<br />새 글을 post하는 경우에는 잘 됩니다.<br />그런데, 수정이나 가져오기(getPost)는 안되는군요.</p><div class="codebox"><pre><code>require &#039;xmlrpc/client&#039;
require &#039;pp&#039;
server = XMLRPC::Client.new2 &#039;http://mo**s**t.tistory.com/api&#039;
content = {
    :mt_keywords =&gt; &#039;good,test&#039;
}
result = server.call(&#039;metaWeblog.editPost&#039;, 270, &#039;m***@**ail.com&#039;, &#039;****&#039;, content, false)
pp result</code></pre></div><p>코드는 위와 같은데요.(죄송 ** 한거 많습니다)<br />아래와 같은 에러가 납니다.(인증부분은 넘어갔습니다)</p><div class="quotebox"><blockquote><p>D:\temp\blog_hack&gt;ruby post_edit_test.rb<br />c:/ruby/lib/ruby/1.8/xmlrpc/client.rb:414:in `call&#039;: Error: invalid postid, mayb<br />e the blog tools doesn&#039;t work correctly (XMLRPC::FaultException)<br />&nbsp; &nbsp; &nbsp; &nbsp; from post_edit_test.rb:10</p></blockquote></div><p>혹시 아시는분...(아 그리고 270번 글은 제대로 존재합니다)<br />도움좀 주세요 <img src="http://forum.tattersite.com/ko/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[ezhong]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=1440</uri>
			</author>
			<updated>2007-06-04T02:19:48Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=18551#p18551</id>
		</entry>
</feed>
