go-hbci
go-hbci copied to clipboard
Documentation
It's me again :)
Thanks for merging #38! But my next question is: How to use this lib? Is there any documentation or code example?
I just need to list transactions, nothing fancy.
Thanks again.
Hi, there is no real documentation about how to use this code. The closest you can get is looking at the e2e test from the client: https://github.com/mitch000001/go-hbci/blob/61c8b3522b31b812e6da9efa78d8b0295e4bee6c/client/client_feature_test.go#L19-L41) or at the also provided CLI which showcases how to use the client: https://github.com/mitch000001/go-hbci/blob/61c8b3522b31b812e6da9efa78d8b0295e4bee6c/cmd/banking/transactions.go#L70-L85
I will try to provide additional test examples soon.
@pmoscode I added some documentation to the code. Can you give me some feedback, maybe also in the PR #42?
@mitch000001 Thanks a lot for the doc. I will try it out today evening.
Hi @mitch000001, the most help I could get from the "cmd" code.
But I'm stuck here:
clientConfig = client.Config{
URL: "https://hbci.postbank.de/banking/hbci.do",
AccountID: "",
BankID: "",
PIN: "",
EnableDebugLogging: false,
}
So, the "AccountID" is the last part of the IBAN, right? (So called "Kontonummer") The Bank ID is the BLZ? (first part of the IBAN) But what is the pin? The password from the online banking? or the card pin?
If I try the password, I get "Anmeldung fehlgeschlagen"... And I don't want to risk more login failure...
Thanks.
The PR #42 is not helping me much. I think a more "textual" doc could make things more clear.
So, the account id is your account number and the bank id is the BLZ. The Account id can also be derived from the Iban, that's the latter part with a leading zero if your account id is shorter. So you're correct. The pin is the password used to access your online banking.
Just as a side note, for me (Sparkasse), it's some kind of combination of first and last name. Same as the login of their web interface.