New REST API Question

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



New REST API Question Expand / Collapse
Author
Message
Posted 8/19/2007 6:06:27 PM
Forum Member

Forum Member

Group: Forum Members
Last Login: 2/4/2008 8:46:29 AM
Posts: 22, Visits: 862
Hello. Congratulations for the new REST API version!!

Is it possible to use in the new API methods like /Folder.asmx/GetUsersFolderListIncrementally ?

Can we use the REST API that is in www.newsgator.com/ngs/subscriber/services/ ?

And is there any way to make the //services.newsgator.com services to return JSON results? I tried with &fmt=json but didn't work.

Thanks!

Post #30648
Posted 8/20/2007 10:21:41 AM
NewsGator

NewsGator

Group: Administrators
Last Login: 4/29/2008 3:48:02 PM
Posts: 30, Visits: 48
Hello Ariel,

Thanks for the interest in the new API.  At the present time the API under www.newsgator.com/ngs/subscriber/services is undocumented.  The only supported API for now is at http://services.newsgator.com.  The documentation for this API can be found at http://www.newsgator.com/ngs/api/NewsGatorRESTAPI.pdf.

It has been recently updated so even if you have seen this before you may want to take another look.  As for returning JSON, we do not support that right now via this API.

Let me know if you need any further information.


Darryl

Post #30655
Posted 8/20/2007 1:33:45 PM
Forum Member

Forum Member

Group: Forum Members
Last Login: 2/4/2008 8:46:29 AM
Posts: 22, Visits: 862
Thanks. I know about the new changes in the REST API, they are very useful. I wanted to use the API before but the main problem was the missing “Incrementally” methods. Can we use the undocumented API? (I understand that it can change) The only thing I will need some help is in the ‘Options’ parameters, that is a number and there isn’t any way I know what it means…
(I know what number to send to get the same results that the NG Online sends, but nothing more…)

One thing that will be useful is that each Post result item in an API response, contains in which Clipped Folders that Post was added. So we don’t need to ask for all clipped items. Is there any way this feature could be added in the REST API Incrementally methods?

TIA

Post #30669
Posted 8/21/2007 8:32:30 AM
NewsGator

NewsGator

Group: Administrators
Last Login: 4/29/2008 3:48:02 PM
Posts: 30, Visits: 48
Hello,

The biggest issue with the new API under www.newsgator.com is it is still changing quite a bit and will certainly break you down the road.  With that said I would love to find a way to get you what you need.  If you are just looking for the "incremental" type API's we should be able to do that via the existing services.newsgator.com API's. 

Regardless of the API set you are calling, to do things incrementally we need a sync token.  Both API's would require something very similar here.  The sync token has been part of the services.newsgator.com API for a long time now.  If you are using the sync token with the existing API's you are already getting the incremental change functionality.

There has been a lot of talk on our API team about implementing something you describe with returning clipping information with the post data, so watch the NewsGator API Blog (http://blogs.newsgator.com/newsgator_api/).  I will post there when that change is in for you to start playing with. 

Please feel free to let me know more about what you are doing and I can help you find the best way to get that done with the appropriate API.

Darryl

Post #30685
Posted 8/23/2007 9:28:40 PM
Forum Member

Forum Member

Group: Forum Members
Last Login: 2/4/2008 8:46:29 AM
Posts: 22, Visits: 862
Hello. With incremental methods, I mean:
* I call GetNews with maxposts=20. And I get the first 20 posts.
* I call GetNews with page=2&maxposts=20. And I get the “next” 20 posts (21-40).

Is there any way to do that in services.NG.com API?

In services.newsgator.com API, can you add support for calling GetNews but for a folder (that will retrieve posts from all feeds/folders inside that folder)? I tried and it works on www.NG.com , but not on services.NG.com.

Thanks,
Ariel

Post #30720
Posted 8/24/2007 11:23:05 AM
NewsGator

NewsGator

Group: Administrators
Last Login: 4/29/2008 3:48:02 PM
Posts: 30, Visits: 48
Ok, now I get what you are looking for.  Email me directly, I think I have something to help you out.

darryld@newsgator.com

Darryl

Post #30727
Posted 8/24/2007 11:25:54 AM
Forum Member

Forum Member

Group: Forum Members
Last Login: 2/4/2008 8:46:29 AM
Posts: 22, Visits: 862
Other difference between services.NG and www.NG is that services.NG doesn’t seems to allow sorting Posts. Is there any way to sort results like in www.NG?

TIA

Post #30728
Posted 8/28/2007 8:21:32 AM
Forum Member

Forum Member

Group: Forum Members
Last Login: 2/4/2008 8:46:29 AM
Posts: 22, Visits: 862
I sent you an email, thanks.
Post #30806
« Prev Topic | Next Topic »


All times are GMT -7:00, Time now is 6:34am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.344. 9 queries. Compression Disabled.

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