|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Need help with XML-RPC
The following is taken from the Yahoo FAQ for RSS publishers:
How do I make sure my latest post appears immediately? 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 Parameters: 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 request and response <?xml version="1.0"?> <methodCall> <methodName>weblogUpdates.ping</methodName> <params> <param> <value> <string>Top Stories</string> </value> </param> <param> <value> <string>http://rss.news.yahoo.com/rss/topstories</string> </value> </param> </params> </methodCall> <?xml version="1.0" encoding="UTF-8"?> <methodResponse> <params> <param> <value> <struct> <member> <name>flerror</name> <value> <boolean>0</boolean> </value> </member> <member> <name>message</name> <value> <string>OK</string> </value> </member> </struct> </value> </param> </params> </methodResponse> Now, I can copy bits of code and change urls without any trouble, but the thing I don't follow is where this code should be inserted. Is it placed somewhere in the RSS data file, or in a separate file? If it is placed in a separate file, what extension should be used when saving the file? It is activated by pointing the browser at it? Do I need to download the Yahoo API? Many questions. Any help would be much appreciated... |
|
#2
|
||||
|
||||
|
http://api.my.yahoo.com/rss/ping?u=http://rss.news.yahoo.com/rss/topstories
All you need to do is insert the address of your rss feed http://api.my.yahoo.com/rss/ping?u=[insert your url here] slap it in a browser. That works fine You are probably better off using http://pingomatic.com/ |
![]() |
| Viewing: SEO Chat Forums > Search Engine Strategies > Blogs, Tagging, RSS Feeds > Need help with XML-RPC |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|