Downloaded the BUNQ API yesterday (bash <(curl -s https://tinker.bunq.com/php/setup.sh) and installed it on CentOS 7, so for so good but when using my freshly generated API key I got two errors:
Issue 1: Sandbox
For Sandbox a (normal) authorisation error. Already contacted Bunq support and they referred me to the topic https://together.bunq.com/d/2859-sandbox-api-key_2, where I could find the answer (using the last i.e. yesterday downloaded API version) and was advised to open a new topic.
Issue 2: Production
I was referred by Bunq support to https://github.com/bunq/sdk_php/issues/7, a long closed topic which hints on upgrading to a newer curl version (which is not that easy for me to do, any hints on Centos 7/PHP 7.0/Curl 7.29.0 upgrading to a higher version fo cUrl apreciated). There was a quickfix in the post on commenting out line 163 in ApiClient.php. Thankfully this solved the production issue, so anybody encountering the same problem might use the same fix: commenting out now line 315 (CURLOPT_PINNEDPUBLICKEY), probably because the ApiClient.php changed between 2/8/2017 and yesterday), solved this issue. Also the location of ApiClient.php changed to vendor\bunq\sdk_php\Http\ApiClient.php. As the topic is closed and I spend a considerable amount of time trying to fix the error (three different servers/two different CentOS/PHP versions), maybe a suggestion to make this tempory fix a permanent one?
Just did a retest with the production fix on the sandbox problem, but no solution there, so help appreciated on the first issue.