tag:help.cashboardapp.com,2012-10-23:/discussions/api-discussion/36-net-apiCashboard: Discussion 2018-10-19T08:13:02Ztag:help.cashboardapp.com,2012-10-23:Comment/284883172013-08-28T19:34:56Z2013-08-28T19:34:56Z.NET API <div><p>Is there existing .net api for cashboard?</p></div>Lukasz Stanczyktag:help.cashboardapp.com,2012-10-23:Comment/284883172013-08-28T20:43:25Z2013-08-28T20:43:25Z.NET API <div><p>There has been a public API for Cashboard available at <a href=
"https://api.cashboardapp.com">https://api.cashboardapp.com</a> for
a couple of years now.</p>
<p>I've written Ruby and Javascript API wrapper implementations,
but there is no public .NET implementation I'm aware of at this
time.</p>
<p>However, our API is a simple REST implementation, so it should
be trivial for you to write a wrapper in the language of your
choice.</p>
<p><a href="https://api.cashboardapp.com">Documentation for the API
is here.</a></p></div>Seth Btag:help.cashboardapp.com,2012-10-23:Comment/284883172013-10-29T14:56:05Z2013-10-29T14:56:05Z.NET API <div><p>Seth,<br>
I am finalizing .net api library and would like to test it without
polluting my production account. Is there any chance you could set
me up with a test account?<br>
After I am done I will make the .net API public.</p></div>Lukasz Stanczyktag:help.cashboardapp.com,2012-10-23:Comment/284883172013-10-29T20:08:48Z2013-10-29T20:08:48Z.NET API <div><p>Cool, sounds good Lukasz - but I don't have any "test accounts".
Just sign<br>
up for another account and use the 14-day trial to test your API.
If you<br>
need further time, email me and I'll extend the trial for a few
months for<br>
more testing.</p>
<p>Best,</p>
<ul>
<li>Seth</li>
</ul></div>Seth Btag:help.cashboardapp.com,2012-10-23:Comment/284883172013-10-29T21:55:55Z2013-10-29T21:55:55Z.NET API <div><p>Will do thanks.</p></div>Lukasz Stanczyktag:help.cashboardapp.com,2012-10-23:Comment/284883172013-10-30T15:30:35Z2013-10-30T15:30:35Z.NET API <div><p>I created a test account, and everything seems to be working
fine except project lists.</p>
<p>here is a request I am sending:<br>
POST <a href=
"https://api.cashboardapp.com/project_lists/">https://api.cashboardapp.com/project_lists/</a>
HTTP/1.1<br>
Authorization: Basic YXBpdGVzdDpIMU4tOEVMLTVWSi1HWkQ=<br>
Accept: application/json, application/xml, text/json, text/x-json,
text/javascript, text/xml<br>
User-Agent: RestSharp 104.1.0.0<br>
Content-Type: application/x-www-form-urlencoded<br>
Host: api.cashboardapp.com<br>
Content-Length: 167<br>
Expect: 100-continue<br>
Accept-Encoding: gzip, deflate</p>
<p>
title=FogBugz%20Time%20Entries&created_at=10%2F30%2F2013%209%3A27%3A53%20AM&rank=0&is_archived=False&project_id=96042&id=0&updated_at=10%2F30%2F2013%209%3A27%3A53%20AM</p>
<p>And I get a response - project does not exist:<br>
HTTP/1.1 400 Bad Request<br>
Date: Wed, 30 Oct 2013 15:27:56 GMT<br>
Server: Apache<br>
X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.17<br>
Cache-Control: no-cache<br>
X-Runtime: 618<br>
Set-Cookie: session=21956bccba2357714107fa19ecfa43ac;
domain=.cashboardapp.com; path=/; HttpOnly<br>
Set-Cookie: _session_id=a18b7becc7e04cfa2eb61762688af7be;
domain=.cashboardapp.com; path=/; HttpOnly<br>
Status: 400<br>
Cache-Control: max-age=31536000<br>
Expires: Thu, 30 Oct 2014 15:27:56 GMT<br>
Vary: Accept-Encoding,User-Agent<br>
Content-Length: 30<br>
Connection: close<br>
Content-Type: application/json; charset=utf-8</p>
<p>[["project","does not exist"]]</p>
<p>Any thoughts?</p></div>Lukasz Stanczyktag:help.cashboardapp.com,2012-10-23:Comment/284883172013-10-30T16:49:34Z2013-10-30T16:49:34Z.NET API <div><p>Can you send the original JSON you're sending to the app? To me
it looks like you're not namespacing it properly.</p>
<p>For instance, JSON should look something like...</p>
<pre>
<code>{
project_list: {
project_id: 123,
title: 'my list title',
// etc...
}
}</code>
</pre></div>Seth Btag:help.cashboardapp.com,2012-10-23:Comment/284883172013-10-30T17:49:14Z2013-10-30T17:49:14Z.NET API <div><p>you were right it was a namespace issue.</p></div>Lukasz Stanczyk