.NET API
Is there existing .net api for cashboard?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Seth B on 28 Aug, 2013 08:43 PM
There has been a public API for Cashboard available at https://api.cashboardapp.com for a couple of years now.
I've written Ruby and Javascript API wrapper implementations, but there is no public .NET implementation I'm aware of at this time.
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.
Documentation for the API is here.
2 Posted by Lukasz Stanczyk on 29 Oct, 2013 02:56 PM
Seth,
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?
After I am done I will make the .net API public.
Support Staff 3 Posted by Seth B on 29 Oct, 2013 08:08 PM
Cool, sounds good Lukasz - but I don't have any "test accounts". Just sign
up for another account and use the 14-day trial to test your API. If you
need further time, email me and I'll extend the trial for a few months for
more testing.
Best,
- Seth
4 Posted by Lukasz Stanczyk on 29 Oct, 2013 09:55 PM
Will do thanks.
5 Posted by Lukasz Stanczyk on 30 Oct, 2013 03:30 PM
I created a test account, and everything seems to be working fine except project lists.
here is a request I am sending:
POST https://api.cashboardapp.com/project_lists/ HTTP/1.1
Authorization: Basic YXBpdGVzdDpIMU4tOEVMLTVWSi1HWkQ=
Accept: application/json, application/xml, text/json, text/x-json, text/javascript, text/xml
User-Agent: RestSharp 104.1.0.0
Content-Type: application/x-www-form-urlencoded
Host: api.cashboardapp.com
Content-Length: 167
Expect: 100-continue
Accept-Encoding: gzip, deflate
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
And I get a response - project does not exist:
HTTP/1.1 400 Bad Request
Date: Wed, 30 Oct 2013 15:27:56 GMT
Server: Apache
X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.17
Cache-Control: no-cache
X-Runtime: 618
Set-Cookie: session=21956bccba2357714107fa19ecfa43ac; domain=.cashboardapp.com; path=/; HttpOnly
Set-Cookie: _session_id=a18b7becc7e04cfa2eb61762688af7be; domain=.cashboardapp.com; path=/; HttpOnly
Status: 400
Cache-Control: max-age=31536000
Expires: Thu, 30 Oct 2014 15:27:56 GMT
Vary: Accept-Encoding,User-Agent
Content-Length: 30
Connection: close
Content-Type: application/json; charset=utf-8
[["project","does not exist"]]
Any thoughts?
Support Staff 6 Posted by Seth B on 30 Oct, 2013 04:49 PM
Can you send the original JSON you're sending to the app? To me it looks like you're not namespacing it properly.
For instance, JSON should look something like...
7 Posted by Lukasz Stanczyk on 30 Oct, 2013 05:49 PM
you were right it was a namespace issue.
Seth B closed this discussion on 30 Oct, 2013 06:30 PM.