All content and services are licenced under a Attribution-NonCommercial-ShareAlike Creative Commons Licence (see our Terms of Service).
> Using the XML-RPC Server
|
XML-RPC is "a spec and a set of implementations that allow software running on disparate operating systems, running in different environments to make procedure calls over the Internet. It's remote procedure calling using HTTP as the transport and XML as the encoding. XML-RPC is designed to be as simple as possible, while allowing complex data structures to be transmitted, processed and returned."
To use this service, you need to:
| |
| Host | www.newsisfree.com |
|---|---|
| Port | 80 |
| Path | /RPC |
|
This RPC interface is part Premium Export Service (if you've just opened an account, it's available freely for the first 30 days, it will be disable if you don't sign up before). By using it, you aggree to comply with the Terms of Service. | |
> Get source info
Use methode "hpe.getSourceInfo" to retrieve for all data concerning a source
(name, link, etc.), but not the news items, if you know it's ID.
- First two parameters are your user id and password respectively;
- Third is the (integer) id of the source you want;
- "title": the name of the source
- "link": direct URL to the original source (this might not the page page which contained the news items, it usually is the home page of the site).
- "description": slogan, moto, short description.
- "info": direct URL to page on this site describing the source.
- "ttl": the number of seconds for which the current data for this source will remain valid (i.e. the number of seconds to the next update).
