Alpha 阶段进度报告 2——关于 XML-RPC 的一点东西
作者:郑凯
顺着今天的 [url=http://www.cnblog.org/blog/archives/2004_02_22_cnblog_archive.html]CNBlog: Blog On Blog[/url] 上看到的 My Yahoo 的 blog 更新的通知格式,全文如下:
[quote]
When you update your site, you can also ensure My Yahoo! gets updated by using our API. Our system will schedule an immediate refresh of your site so that My Yahoo! has the most up-to-date version of the RSS feed. The two interfaces currently available are: REST and XML-RPC.
The REST interface is as follows:
URL: http://api.my.yahoo.com/rss/ping
Parameter(s): u=<site or feed url>
HTTP method: GET
Examples:
http://api.my.yahoo.com/rss/ping?u=http://rss.news.yahoo.com/rss/topstories
http://api.my.yahoo.com/rss/ping?u=http://site.example.com/blog
The XML-RPC interface is as follows:
RPC endpoint: http://api.my.yahoo.com/RPC2
Method name: weblogUpdates.ping
Parameter(s): 1. Name of site (string)
2. URL of site or RSS feed (string)
Returns: Struct with two members:
1. flerror (boolean) which is true if an error occurred.
2. message (string) which contains "OK" (if successful) or
the error message
Example [url=http://my.yahoo.com/s/sample.html]request and response[/url]
[/quote]
想来 tk ping 应该和这个差不多吧(或许是一样的?),顺着 google 搜索“weblogUpdates.ping”找到下面两个网站:
[url=http://developers.technorati.com/wiki/pingConfigurations]Technorati Developers Site - pingConfigurations[/url]
介绍了 XML-RPC 格式本身和在 n 多种 blog 软件中使用的方法
想来这个等写 tk ping 功能的时候已经足够了
近期 soulogic.com 不能用,因此这些东西都用不了,郁闷郁闷