cahyofebrianto/bca-api — reverse-engineered prompt
Reverse engineered prompt
Build me a small Go library that makes it easy for an app to talk to the Bank BCA API. I want a simple config where I can put the sandbox or production URL, client credentials, API key and secret, corporate ID, origin host, channel ID, credential ID, and log file path.
The library should handle authentication for me, including getting an access token and automatically retrying once or twice if a request fails because the token is unauthorized. It should support checking a corporate account balance, sending a fund transfer, sending a domestic transfer, and doing a FIRE account inquiry.
Please include request and response structs that are easy to use, request signing, proper context support, and JSON logs that include useful tracking IDs so errors can be traced later. Add tests for auth, signatures, banking calls, and FIRE calls, plus a short README example showing how someone would use it in a Go program. Look up the current BCA docs online if you need to.
Want more depth? Deep Reverse