[ Home ] [ Idea ] [ Submit News using XML–RPC] [ Submit News ] [ Nuke 4.3 Integration ] [ Display News ] [ Add RSS ] [ Task List ] [ Discussion Forums ] [ Retrieve News in XML ] [ Channel ] [ Screen Shots ] [ Archives ] [ Tutorial for retrieving news ] [ Tutorial for submitting news ] [ Download OCS Directory ]
This tutorial explains how to submit news to NGOID news network. There are three ways this can be done.
1. Go to Submit News page.
2. Fill in the necessary details in the form and hit the submit button. That's it.
1. Go to the Add RSS page.
2. Enter the URL of your RSS link and how often you want it to be polled and click the submit button. That's it.
The News Network updates its information by polling all the RSS sites in fixed intervals of time.
The News Network also provides an XML - RPC interface (Remote procedure call). There is an XML-RPC server residing at NGOID. You need to write an XML-RPC client calling the function on the server. This function submits news items to NGOID
1. The XML-RPC server on NGOID is PostNews.php.(written in PHP)
The function name on the server is SubmitNewsNgoid. This
function takes 6 parameters
The parameters are
a) subject: Subject of the article.
b) story: The story description.
c) topic_Name: The topic under which the article falls.
d) name: The name of the person who authored the article.
e) URL: The URL of the site.
f) SiteName: The name of the site.
The pointer to this function is i3c.ngoiddb.
2. Use an XML-RPC client to call the function at the server and pass the necessary parameters at the time of calling
Here is a sample code written in PHP.
<?
$rpc_message = new xmlrpcmsg('i3c.ngoiddb',array(new
xmlrpcval($subject,"string"),new xmlrpcval($story,"string"),new
xmlrpcval($topic_name,"string"),new xmlrpcval($name,"string"),new
xmlrpcval($url,"string"),new xmlrpcval($sitename,"string")));
$rpc_client = new
xmlrpc_client("/PostNews.php","ngoid.sourceforge.net",80);
$recieve=$rpc_client->send($rpc_message);
$value=$recieve->value();
?>
For more details on using XML-RPC visit http://www.xmlrpc.com
There you are - three ways that you can get you content on the NGOID News Network.
For more details on NGOID, Click here
Copyright © i3Connect, Inc. Use of the material is covered by the i3Connect Community License. i3Connect™ is a trademark of i3Connect, Inc. All other trademarks here are properties of their respective owners. i3Connect is not responsible for the authenticity of the news feeds provided on the site.