Adding/moving subscriptions to/between folders

Newsgator Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        


Adding/moving subscriptions to/between folders Expand / Collapse
Author
Message
Posted 8/6/2008 1:06:47 PM
Forum Member

Forum Member

Group: Forum Members
Last Login: 9/14/2008 11:01:15 PM
Posts: 11, Visits: 69
How can I specify the folder a new subscription belongs to using the REST API? Right now new subscriptions always default to ng:folderId="0". Also how do I move a subscription from one folder to another?
Post #42101
Posted 8/12/2008 3:52:57 PM


NewsGator

NewsGator

Group: NewsGator Staff
Last Login: 6/18/2009 12:37:48 PM
Posts: 24, Visits: 121
Hello,

We do have ways to add and move subscriptions as you have asked.   They will be changing in the future to make them more RESTful.  But for now, these work.

vigilsolace (8/6/2008)
How can I specify the folder a new subscription belongs to using the REST API? Right now new subscriptions always default to ng:folderId="0".

METHOD: POST

http://services.newsgator.com/ngws/svc/Subscription.aspx/<locationid>/addsubscription

postData = "xmlurl=<xmlUrl>&folderId=<folderid>";

The location Id is the location that is performing the action. You can also specify a custom title when adding it by setting:  customtitle=<customTitle>

Also how do I move a subscription from one folder to another?

METHOD: POST

http://services.newsgator.com/ngws/svc/Subscription.aspx/<locationid>/movesubscription/<subscriptionId>?tofolderid=<folderid>

The location Id is the location that is performing the action.

Thanks,

Rob

Post #42224
« Prev Topic | Next Topic »

All times are GMT -7:00, Time now is 12:08am

Powered By InstantForum.NET v4.1.4 © 2009
Execution: 0.078. 8 queries. Compression Disabled.

NewsGator.com | Support | Developers | Partners | Press | Company
© Copyright 2003-2009  NewsGator Technologies, Inc. All Rights Reserved.
Copyright Information | Privacy Policy | Terms of Service
Microsoft Gold Certified Partner