<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>aC forum: Adding time through the API - 400 bad request</title>
  <link>http://www.activecollab.com/forums/topic/5336/</link>
  <description>Recent posts on topic: Adding time through the API - 400 bad request</description>
  <dc:language>en-us</dc:language>
  <pubDate>Mon, 13 Feb 2012 14:56:12 CET</pubDate>
  
  <item>
    <link>http://www.activecollab.com/forums/post/23734/#post23734</link>
    <guid>http://www.activecollab.com/forums/post/23734/#post23734</guid>
    <title>Post #7 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>Good to know, thanks :)</p>]]></description>
    <pubDate>Wed, 18 Nov 2009 12:43:39 CET</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/23713/#post23713</link>
    <guid>http://www.activecollab.com/forums/post/23713/#post23713</guid>
    <title>Post #6 by mkornblum</title>
    <dc:creator>mkornblum</dc:creator>
    <description><![CDATA[<p>I'm a PHP developer usually, but have been learning AS3 to make an AIR app that communicates with the API. <br />
<br />
AS3 doesn't easily create variables in the format that the API needs (e.g. time[value] as a POST var) - you need a little hack in order to do this, just so you know ;-)</p>]]></description>
    <pubDate>Tue, 17 Nov 2009 11:01:36 CET</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/23703/#post23703</link>
    <guid>http://www.activecollab.com/forums/post/23703/#post23703</guid>
    <title>Post #5 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>We'll see to make use of API easier in the future for developers. Can you please tell me which platform do you use? PHP, .NET, Java? Something else?</p>]]></description>
    <pubDate>Tue, 17 Nov 2009 04:49:23 CET</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/23680/#post23680</link>
    <guid>http://www.activecollab.com/forums/post/23680/#post23680</guid>
    <title>Post #4 by mkornblum</title>
    <dc:creator>mkornblum</dc:creator>
    <description><![CDATA[<p>Great, that worked - thanks Ilija. Is there an API quickstart guide - it took me a long time to figure out all the little quirks, and it might be useful for others...</p>]]></description>
    <pubDate>Sat, 14 Nov 2009 01:40:58 CET</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/23667/#post23667</link>
    <guid>http://www.activecollab.com/forums/post/23667/#post23667</guid>
    <title>Post #3 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>submitted=submitted should be POST, not GET variable.</p>]]></description>
    <pubDate>Fri, 13 Nov 2009 15:56:43 CET</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/23657/#post23657</link>
    <guid>http://www.activecollab.com/forums/post/23657/#post23657</guid>
    <title>Post #2 by mkornblum</title>
    <dc:creator>mkornblum</dc:creator>
    <description><![CDATA[<p>I forgot to mention - this request simply gives me a '400 Bad Request' error...</p>]]></description>
    <pubDate>Fri, 13 Nov 2009 01:35:02 CET</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/23656/#post23656</link>
    <guid>http://www.activecollab.com/forums/post/23656/#post23656</guid>
    <title>Post #1 by mkornblum</title>
    <dc:creator>mkornblum</dc:creator>
    <description><![CDATA[<p>Hi,<br />
<br />
I'm trying to develop an arduino-based hardware 'button' for recording time against tickets.<br />
<br />
I've built an AS3 AIR client for AC which successfully gets all the projects and tickets I need, but I've been struggling for days now to post a new time record.<br />
<br />
I'm sending the submitted=submitted, token and path_info vars as GET on the end of the query string, and the time[xxx] as POST. If I do anything else I get a validation error, and this seems the right format from browsing these forums. The API is read-write enabled.<br />
<br />
Here's a raw request header as an example:<br />
<br />
POST /api.php?token=xxxxxxxxxxxxxxxxxx&amp;path_info=/projects/53/time/add&amp;submitted=submitted HTTP/1.1<br />
Host: xxxxxxxxxxxxxx<br />
Content-Type: application/x-www-form-urlencoded<br />
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/523+ (KHTML, like Gecko) AdobeAIR/1.1<br />
Referer: app:/ArduinoCollab.swf<br />
X-Flash-Version: 9,0,124,0<br />
Accept: */*<br />
Accept-Language: en-us<br />
Accept-Encoding: gzip, deflate<br />
Cookie: PHPSESSID=h5ektpbgc5f1b26fqd75f58m71; X-Mapping-hppgikmp=85AE45C9C376FCA50012721BE0710536<br />
Content-Length: 83<br />
Connection: keep-alive<br />
<br />
time%5Buser%5Fid%5D=9&amp;time%5Bvalue%5D=5%3A30&amp;time%5Brecord%5Fdate%5D=2009%2D11%2D13<br />
<br />
I'm sending:<br />
<br />
time[user_id]=9<br />
time[value]=5:30<br />
time[record_date]=2009-11-13<br />
<br />
Can anyone see anything wrong with this? Any help gratefully received!!</p>]]></description>
    <pubDate>Fri, 13 Nov 2009 01:34:03 CET</pubDate>
  </item>
</channel>
</rss>
