REST API - Question re: response to call to PostItem.aspx

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



REST API - Question re: response to call to PostItem.aspx Expand / Collapse
Author
Message
Posted 7/15/2007 2:31:56 PM


Forum Member

Forum Member

Group: Forum Members
Last Login: 8/18/2008 7:37:50 PM
Posts: 35, Visits: 63
Following up on my previous post, I see that each call to PostItem.aspx to submit post states results in a reponse with "the current state of all posts in any feed where read state has changed since the last sync."

This means that for every call, I receive a response of over 700kB, which takes anywhere from 1.5 to 4.5 seconds. That's a lot of bandwidth and time for a call that happens so frequently (in my case, to mark a post or group of posts as read).

I am not currently using any of the information in this response, so I'd love it if you could add a flag that would allow me to specify that I want the server to limit the response body to a simple "OK" or error, something like:

Request Format: application/x-www-form-urlencoded
"loc=<locationName>&r=<postId>&u=<postId>&d=<postId>&q=<0|1>"

o loc – specify the location name to submit the read state changes (OPTIONAL)
o r – mark a post read (can be specified multiple times)
o u – mark a post uread (can be specified multiple times)
o d - mark a post deleted (can be specified multiple times)
o q - specify 1 to request a "quiet" reponse from the server (i.e., omit the current state of all posts since the last sync)


Also, the draft of the new REST API documentation I have implies that this list of current posts should be limited to those that have changed since the last sync. However, I don't see how I can indicate when that happened. Should I add the last sync token from the location's OPML?

Thanks, all.


--
Dan
Post #29900
Posted 7/16/2007 4:49:34 PM
NewsGator

NewsGator

Group: Administrators
Last Login: Yesterday @ 11:40:58 AM
Posts: 3,055, Visits: 54,043
Hey Dan,

One of the API guys wants to go over this with you, we may have a beta API that you can use which could work better for you . Can you shoot an email to NewsGator Support - I'll make sure it gets to the right guys.


Jonathon McDougall
NewsGator Support
Post #29921
Posted 10/15/2007 4:10:39 PM
Forum Member

Forum Member

Group: Forum Members
Last Login: 10/20/2007 10:24:33 AM
Posts: 2, Visits: 4
I'm also having a problem with the PostItem call. I working in a low-bandwidth, low-memory environment, so parsing 600k of return data each time a call is made is not feasible (really, ANY call that returns 600k is a no-go for me). I'm trying to figure out how to work the ng:token value into the call.

My app follows this basic sequence:

- Call Subscription.aspx/ to fetch a list of feeds
- Call Feed.aspx/ for each feed to get a list of posts for that feed
- When a group of posts has been marked read, or a timer fires, call PostItem.aspx to update the server with their read status

I've tried passing ?token=reallyLongTokenString with the PostItem call (using both the token returned by Subscription.aspx and the one from Feed.aspx), but neither one seems to effect the output. Any suggestions?

Thanks!

B
Post #32149
Posted 10/16/2007 1:22:04 PM


Forum Member

Forum Member

Group: NewsGator Staff
Last Login: 8/21/2008 1:38:55 PM
Posts: 18, Visits: 99
Hi Ben,

In response to both yours and Dan's inquires, we have been working to implement the equivalent of the SOAP call PostItem.asmx/UpdatePostMetaData into the REST API.  UpdatePostMetaData handles all of the read/flag state changes for a given feed/post.  It definitely uses a sync token obtained from a previous Subscription.aspx call to keep results to a bare minimum.

We hope to have a working version available to you for use in the coming weeks, so hang on!

-Rob

NewsGator QA

Post #32179
Posted 10/20/2007 9:11:45 AM
Forum Member

Forum Member

Group: Forum Members
Last Login: 10/20/2007 10:24:33 AM
Posts: 2, Visits: 4
Rob,
That's great news, thanks! Please let me know as soon as you're ready; I'll be glad to help test it out.

B
Post #32318
Posted 7/17/2008 6:15:10 PM
Forum Member

Forum Member

Group: Forum Members
Last Login: 8/15/2008 6:06:59 PM
Posts: 10, Visits: 56
Was the UpdatePostMetaData call ever finalized? It still says TBD in the docs. I'd like to be able to set the flagged state using the REST API.
Post #41378
Posted 7/23/2008 3:51:13 PM


Forum Member

Forum Member

Group: NewsGator Staff
Last Login: 8/21/2008 1:38:55 PM
Posts: 18, Visits: 99
This has slipped due to higher priorities, but let me take a look and see where we are at with the endpoint.

Thanks,

Rob

Post #41509
« Prev Topic | Next Topic »


All times are GMT -7:00, Time now is 8:09am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.141. 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