|
|||||||
|
The Weblogs.com ping service is used to automatically inform Moreover whenever
you update content on your site. The service receives notification (a "ping")
from your site that you have added new content, and if all goes well, Weblogs.com
adds your site to a list of recently changed weblogs.
Setting up Your Ping Service InterfaceWeblogs.com has two interfaces available: REST and XML-RPC. Both follow standard industry practices for ping server interfaces. You simply configure your blogging software to ping Weblogs.com anytime you publish new content. A Quick Word on DomainsWeblogs.com manages two domains for normal and extended ping services: www.weblogs.com and rpc.weblogs.com. While both domains currently offer the same ping services, your ping clients and changes XML consumers should only refer to the rpc.weblogs.com domain as www.weblogs.com may not support pinging in the future. [↑ Top]Setting up an XML-RPC Client
The XML RPC request should be constructed based on: Optional Parameters: The XML RPC response will have a Struct with three members: If the call succeeds, the weblog will appear in shortChanges.xml on the next generation, usually within 5 to 10 minutes. ↑ [Top] Example XML-RPC Request:
POST /RPC2 HTTP/1.0
User-Agent: Java Host: rpc.weblogs.com Content-Type: text/xml Content-length: 250 <?xml version="1.0"?> <methodCall> <methodName>weblogUpdates.ping</methodName> <params> <param> <value>Someblog</value> </param> <param> <value>http://spaces.msn.com/someblog</value> </param> </params> </methodCall> ↑ [Top] Example Extended Ping XML-RPC Request with multiple category tags:
POST /RPC2 HTTP/1.0
User-Agent: Java Host: rpc.weblogs.com Content-Type: text/xml Content-length: 300 <?xml version="1.0"?> <methodCall> <methodName>weblogUpdates.extendedPing</methodName> <params> <param> <value>Someblog</value> </param> <param> <value>http://spaces.msn.com/someblog</value> </param> <param> <value>http://spaces.msn.com/someblog/PersonalSpace.aspx?something</value> </param> <param> <value>http://spaces.msn.com/someblog/feed.rss</value> </param> <param> <value>personal|friends</value> </param> </params> </methodCall> ↑ [Top] Example XML-RPC Response:HTTP/1.1 200 OK Connection: close Content-Length: 333 Content-Type: text/xml Date: Sun, 30 Sep 2001 20:02:30 GMT Server: Apache <?xml version="1.0"?> <methodResponse> <params> <param> <value> <struct> <member> <name>flerror</name> <value> <boolean>0</boolean> </value> </member> <member> <name>message</name> <value>Thanks for the ping.</value> </member> <member> <name>legal</name> <value>You agree that use of the Weblogs.com ping service is governed by the Terms of Use found at www.weblogs.com.</value> </member> </struct> </value> </param> </params> </methodResponse> ↑ [Top] Setting up a REST ClientWeblogs.com accepts form-based HTTP POST and GET requests for non-extended pings. For example, the following is a valid HTTP GET ping request:
URL: http://rpc.weblogs.com/pingSiteForm Optional Parameter: Example HTTP GET request:
http://rpc.weblogs.com/pingSiteForm?name=InfraBlog&url=http%3A%2F%2Finfrablog.verisignlabs.com
↑ [Top]
Processing Model, Error Responses, and Rejected PingsBoth the REST and XML-RPC interfaces are synchronous and will attempt to ensure that your client submitted a valid ping. Examples of invalid pings include, but are not limited to:
The core Weblogs.com ping processing service is based upon an asynchronous model. This means that even though your client receives an initial "Thanks for the ping" synchronous response, your ping may be dropped or filtered later for various reasons (not limited to the following):
Published Weblog Lists: changes.xml and shortChanges.xmlEvery five minutes, Weblogs.com publishes two documents:
In addition, once per hour Weblogs.com publishes the previous hours worth of pinged weblogs as XML and HTML documents. For example, you can find the list of Weblogs that were pinged during the 05 GMT hour of 18 October 2005 under www.weblogs.com/2005/10/18/05.xml. Weblogs.com supports HTTP request and response headers like "If-Modified-Since" and ETag to help you save bandwidth by only downloading the changes files that you haven't already seen. Both changes.xml and shortChanges.xml conform to the following XML document structure: <weblogUpdates version="2" updated="Mon, 10 Oct 2005 14:10:00 GMT" count="1384779">
<weblog name="Weblogs.com" url="http://www.weblogs.com" when="1"/>
<weblog name="My Blog site" url="http://www.myblogsite.com" when="2"/>
<weblog name="Another site" url="http://www.anothersite.com" when="3"/>
</weblogUpdates>
The www.weblogs.com/rssUpdates service produces changes.xml and shortChanges.xml that conform to the following XML document structure: <weblogUpdates version="2" updated="Mon, 10 Oct 2005 14:10:00 GMT" count="1384779">
<weblog name="Weblogs.com" url="http://www.weblogs.com"
rssUrl="http://www.weblogs.com/rss.xml" when="1"/>
<weblog name="My Blog site" url="http://www.myblogsite.com"
rssUrl="http://www.myblogsite.com/rdf.xml" when="2"/>
<weblog name="Another site" url="http://www.anothersite.com"
rssUrl="http://www.anothersite.com/atom.xml" when="3"/>
</weblogUpdates>
The <weblogUpdates> Elementchanges.xml and shortChanges.xml contain a single
The <weblog> Element
|
||||||
|
User understands and agrees that the use of the services provided on this page constitutes an acceptance by user of the terms and conditions set forth below.
If you do not accept the terms and conditions, do not use the services provided on this page. © 2011 Moreover Technologies, Inc. All rights reserved. Privacy Policy | Terms and Conditions |
|||||||