﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Newsgator Forums / NewsGator API / Extras  / REST API setting read state / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Newsgator Forums</description><link>http://forum.newsgator.com/</link><webMaster>info@newsgator.com</webMaster><lastBuildDate>Wed, 07 Jan 2009 12:31:33 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: REST API setting read state</title><link>http://forum.newsgator.com/Topic31463-8-1.aspx</link><description>Hello Chris,&lt;br&gt;&lt;br&gt;Thanks for your response, but I do use POST method for the query.&lt;br&gt;&lt;br&gt;[quote]&lt;br&gt;[b]POST[/b] /ngws/svc/PostItem.aspx HTTP/1.0&lt;br&gt;Pragma: no-cache&lt;br&gt;X-NGAPIToken: ****************&lt;br&gt;Authorization: Basic ****************=&lt;br&gt;Content-Type: application/x-www-form-urlencoded&lt;br&gt;Content-Length: 42&lt;br&gt;Host: services.newsgator.com&lt;br&gt;User-Agent: Foobar&lt;br&gt;&lt;br&gt;[b]loc=NewsGator%20Web%20Edition&amp;u=3729785502[/b]&lt;br&gt;[/quote]&lt;br&gt;&lt;br&gt;I'm going to do some more tests side by side with Newsgator online reader...&lt;br&gt;&lt;br&gt;Yannick&lt;br&gt;</description><pubDate>Tue, 06 Nov 2007 14:57:08 GMT</pubDate><dc:creator>Hardipetit</dc:creator></item><item><title>RE: REST API setting read state</title><link>http://forum.newsgator.com/Topic31463-8-1.aspx</link><description>Hi Yannick,&lt;/P&gt;&lt;P&gt;here is the link to the REST API &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.newsgator.com/ngs/api/NewsGatorRESTAPI.pdf"&gt;http://www.newsgator.com/ngs/api/NewsGatorRESTAPI.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if you look on page 26 this call is detailed.  Essentially, your "loc=NewsGator%20Web%20Edition&amp;amp;u=3729785502" needs to be in the post data portion of the request, not part of the URI.  This call is a little different from the others in that the post data cannot be part of the URI.&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chris</description><pubDate>Mon, 05 Nov 2007 15:20:31 GMT</pubDate><dc:creator>Chris Kelly</dc:creator></item><item><title>RE: REST API setting read state</title><link>http://forum.newsgator.com/Topic31463-8-1.aspx</link><description>Hello guys,&lt;br&gt;&lt;br&gt;Setting unread state still doesn't work for me.&lt;br&gt;&lt;br&gt;First I'm setting read state (works fine)&lt;br&gt;&lt;br&gt;[quote]&lt;br&gt;POST /ngws/svc/PostItem.aspx HTTP/1.0&lt;br&gt;Pragma: no-cache&lt;br&gt;X-NGAPIToken: ****************&lt;br&gt;Authorization: Basic ****************=&lt;br&gt;Content-Type: application/x-www-form-urlencoded&lt;br&gt;Content-Length: 42&lt;br&gt;Host: services.newsgator.com&lt;br&gt;User-Agent: Foobar&lt;br&gt;&lt;br&gt;loc=NewsGator%20Web%20Edition&amp;r=3729785502&lt;br&gt;[/quote]&lt;br&gt;&lt;br&gt;[quote]&lt;br&gt;HTTP/1.1 200 OK&lt;br&gt;Connection: close&lt;br&gt;Date: Thu, 01 Nov 2007 15:56:56 GMT&lt;br&gt;Server: Microsoft-IIS/6.0&lt;br&gt;MicrosoftOfficeWebServer: 5.0_Pub&lt;br&gt;X-Powered-By: ASP.NET&lt;br&gt;X-AspNet-Version: 2.0.50727&lt;br&gt;Cache-Control: private&lt;br&gt;Content-Type: application/application/xml+xml&lt;br&gt;Content-Length: 313548&lt;br&gt;&lt;br&gt;... XML stuff&lt;br&gt;[/quote]&lt;br&gt;&lt;br&gt;Then I'm trying to set unread state (looks ok from the HTTP point of view)&lt;br&gt;&lt;br&gt;[quote]&lt;br&gt;POST /ngws/svc/PostItem.aspx HTTP/1.0&lt;br&gt;Pragma: no-cache&lt;br&gt;X-NGAPIToken: ****************&lt;br&gt;Authorization: Basic ****************=&lt;br&gt;Content-Type: application/x-www-form-urlencoded&lt;br&gt;Content-Length: 42&lt;br&gt;Host: services.newsgator.com&lt;br&gt;User-Agent: Foobar&lt;br&gt;&lt;br&gt;loc=NewsGator%20Web%20Edition&amp;u=3729785502&lt;br&gt;[/quote]&lt;br&gt;&lt;br&gt;[quote]&lt;br&gt;HTTP/1.1 200 OK&lt;br&gt;Connection: close&lt;br&gt;Date: Thu, 01 Nov 2007 15:57:05 GMT&lt;br&gt;Server: Microsoft-IIS/6.0&lt;br&gt;MicrosoftOfficeWebServer: 5.0_Pub&lt;br&gt;X-Powered-By: ASP.NET&lt;br&gt;X-AspNet-Version: 2.0.50727&lt;br&gt;Cache-Control: private&lt;br&gt;Content-Type: application/application/xml+xml&lt;br&gt;Content-Length: 313548&lt;br&gt;&lt;br&gt;... XML stuff&lt;br&gt;[/quote]&lt;br&gt;&lt;br&gt;But the item doesn't reappear in my interface (a tiny reader for the Archos 605 PMP, by the way).&lt;br&gt;&lt;br&gt;Did I miss something ?&lt;br&gt;&lt;br&gt;Anyway, Newsgator is a great product.&lt;br&gt;&lt;br&gt;Thanks for that !&lt;br&gt;&lt;br&gt;Yannick&lt;br&gt;</description><pubDate>Thu, 01 Nov 2007 10:41:07 GMT</pubDate><dc:creator>Hardipetit</dc:creator></item><item><title>RE: REST API setting read state</title><link>http://forum.newsgator.com/Topic31463-8-1.aspx</link><description>&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class=smalltxt vAlign=top&gt;&lt;SPAN id=ctl02_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl12_lblFullMessage&gt;Karl, &lt;P&gt;The fix for this is now available ! ! !  We appreciate your support Karl.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Chris</description><pubDate>Wed, 31 Oct 2007 14:13:08 GMT</pubDate><dc:creator>Chris Kelly</dc:creator></item><item><title>RE: REST API setting read state</title><link>http://forum.newsgator.com/Topic31463-8-1.aspx</link><description>Karl,&lt;/P&gt;&lt;P&gt;We do have a fix for this now, and we will reply when it has been pushed to production.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rob</description><pubDate>Fri, 05 Oct 2007 11:22:04 GMT</pubDate><dc:creator>Rob Ponti</dc:creator></item><item><title>RE: REST API setting read state</title><link>http://forum.newsgator.com/Topic31463-8-1.aspx</link><description>Hi Karl, no the item will not show up again in the web reader.  I've submitted this issue as a bug (item not reappearing) and will follow up on this when a resolution is availble.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris</description><pubDate>Tue, 25 Sep 2007 09:59:18 GMT</pubDate><dc:creator>Chris Kelly</dc:creator></item><item><title>RE: REST API setting read state</title><link>http://forum.newsgator.com/Topic31463-8-1.aspx</link><description>Chris,&lt;br&gt;&lt;br&gt;Thanks very much for the response.  It was a "loose nut at the keyboard" as I had neglected to add --digest to the curl command line.  On a related note, if I issue an "unread" command (u=xxxxx) should I then see the item reappear in the web reader?&lt;br&gt;&lt;br&gt;-Karl</description><pubDate>Tue, 25 Sep 2007 09:02:53 GMT</pubDate><dc:creator>GarishKernels</dc:creator></item><item><title>RE: REST API setting read state</title><link>http://forum.newsgator.com/Topic31463-8-1.aspx</link><description>Hi Garish, I've been looking into this and can't seem to repeat the access denied response.  We currently do not have any restrictions on this method.  However, I was able to repeat this with invalid credentials.  Is the crendential issue a possibility?</description><pubDate>Mon, 24 Sep 2007 11:09:23 GMT</pubDate><dc:creator>Chris Kelly</dc:creator></item><item><title>REST API setting read state</title><link>http://forum.newsgator.com/Topic31463-8-1.aspx</link><description>Hello,  I'm having some difficulty in setting the read state of an item using the REST API.  I'm issuing:&lt;br&gt;&lt;br&gt;curl http://services.newsgator.com/ngws/svc/PostItem.aspx?loc=Egress&amp;r=3532702849 --user &lt;my username&gt;:&lt;my password&gt; --header "X-NGAPIToken: &lt;my api key&gt;" --request POST&lt;br&gt;&lt;br&gt;and I receive a 401.2 Access Denied.  Is there something obvious that I'm doing wrong?  Any help would be appreciated.  Thanks.&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><pubDate>Fri, 21 Sep 2007 08:17:15 GMT</pubDate><dc:creator>GarishKernels</dc:creator></item></channel></rss>