Skip to content

Commit

Permalink
bunq/sdk_java#26 Deprecated sandbox-user endpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
angelomelonas committed Jun 3, 2020
1 parent 5f53aef commit 341787c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/bunq/tinker/libs/BunqLib.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ public class BunqLib {
private static final String ERROR_COULD_NOT_FIND_CONFIG_FILE = "Could not find a bunq configuration to load.";

/**
* FileName constatns.
* FileName constants.
*/
private static final String FILE_NAME_BUNQ_CONF_PRODUCTION = "bunq-production.conf";
private static final String FILE_NAME_BUNQ_CONF_SANDBOX = "bunq-sandbox.conf";

/**
* Field constatns.
* Field constants.
*/
private static final String FIELD_RESPONSE = "Response";
private static final String FIELD_API_KEY = "ApiKey";
Expand Down Expand Up @@ -291,7 +291,7 @@ private SandboxUser generateNewSandboxUser() {
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
.url("https://public-api.sandbox.bunq.com/v1/sandbox-user")
.url("https://public-api.sandbox.bunq.com/v1/sandbox-user-person")
.post(RequestBody.create(null, new byte[0]))
.addHeader("x-bunq-client-request-id", "1234")
.addHeader("cache-control", "no-cache")
Expand Down

0 comments on commit 341787c

Please sign in to comment.