Danske Bank API
Hello! So I got this comment from Kristian in my latest post about a peak inside the Danske Bank iPhone app. To share my efforts, you can download my DanskeBankAPI in .NET here. At the time it supports checking your accounts, searching and paging through transactions etc., but not actually making an transaction.The example app to show some functionality is:
A simple example code for using the API is (actually the code for the above form):
- db.login(textBox1.Text, textBox2.Text);
- Models.Account acc = db.getAccounts();
- if (acc.Length > 0) label1.Text = acc.Balance.ToString();
The first line creates a session (required) and the next line logins using two textboxes (and the CPR and mobilbank code). The latest two lines simple gets the accounts and prints the first accounts balance to a label.
Download and test out the project if you want, all the source is right there, so take a look if you are suspicious.