NpsAtomClient class

NpsAtomClient is used to exchange data with others via Atom Publishing Protocol.
Below shows how to download articles from nps.myserver.com and publish to the 'news' topic at 'testsite' site. and assume that NPS is deployed at nps.myserver.com.

var site = session.GetSite("testsite");
var topic = site.GetTopicByCode("news");
var client = new NpsAtomClient("http://nps.jwebstar.com/");
client.NpsLogin("/webapi/login","system","manager");
var articles = client.List("/webapi/posts/testsite/");
for(var i=0;i<articles.length;i++)
{
     client.DownloadArticle(articles[i],topic);
}
client.Clear();
top

Method Summary