Hi list, I succesfully created some code that uses aqbanking API with aqhbci backend. I managed to get transaction list out from the HBCI server, now i want to get the current balance. Using the api docs, i could get sth. like this to work:
// begin code snippet job = AB_JobGetBalance_new(ab); AB_Banking_EnqueueJob(ab, job); accstat = AB_JobGetBalance_GetAccountStatus(job); balance = AB_AccountStatus_GetBookedBalance(accstat); val = AB_Balance_GetValue(balance); balance = AB_Value_GetValue(val); // EOC This works and gives the correct balance of the bankaccount (tested on postbank via pintan, aqbanking v2.2.4 gwen 2.5.0). I had to digg a little into the aqbanking sourcecode to find AB_Balance_GetValue and AB_Banking_ExecuteQueue which is marked as deprecated, but I could not find any other solution to accomplish this. The simplified api still uses AB_Banking_ExecuteQueue to get the balance. Now what is the prefered, not deprecated way of getting the balance? For retrieving the Transactions i use the context style which works quite good. Greets, Timo P.S: I found out that in the above setup AB_Banking_ExecuteQueueWithCtx(..) does not return an errorcode when wrong pin is given, instead it returns 0 as if successful. I looked into the sources but get lost very quickly in the huge maze of code when trying to track this down. Perhaps there is somebody more familiar with the code and could fix this? -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Aqbanking-devel mailing list Aqbanking-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/aqbanking-devel