Hi everybody,
I'm trying to code up a gift for my girlfriend who recently moved to London. She uses one of my accounts and passes so she can benefit from ZeroFX while she is living there. But this also means I have to keep her informed on her balance and transactions. Because bunq is so cool that it has its own API, I thought: let's create a SPA with React where she can view the current balance of the account that she is using and a few of her latest transactions.
However, I can't get passed the 'reading-the-docs-and-using-the-Postman-Sandbox-collection' stage. I tried to initiate the calls myself, like sandbox-user, with a POST request by using fetch. However, I get the CORS policy error.
Then, I tried to use the 'create_sandbox_api.js' example from the bunqJSClient (https://github.com/bunqCommunity/bunqJSClient/blob/master/examples/create_sandbox_apikey.js) but I get an error saying 'Module not found: Can't resolve '../dist/BunqJSClient'.
Basically, I'm at a total loss here when it comes to creating a React SPA with the bunq api. Is there anyone who can help me? If I need to provide any further information, just let me know. Any help would be greatly appreciated.