bunq / tinker_java Goto Github PK
View Code? Open in Web Editor NEWInstall Tinker by just running this command: bash <(curl -s https://tinker.bunq.com/java/setup.sh)
License: MIT License
Install Tinker by just running this command: bash <(curl -s https://tinker.bunq.com/java/setup.sh)
License: MIT License
Currently users start without money, to change this a request will be sent to a predetermined user and will be accepted automatically.
Some improvements to be made:
go-pro
file is missing. See https://github.com/bunq/tinker_php/blob/develop/go-pro for comparisonCreatePsd2Configuration
file, there is a print out that is incorrect (bunq-psd.conf
should be bunq-psd2.conf
)CreatePsd2Configuration
file, the Tinker header should be printedThere are likely more such easy improvements.
reference: bunq/tinker_php#11
Update SDK version to 1.13.0
i found out my current sandbox-key didn't work anymore, support pointed me to you guys having a Tinker thingie ๐
but i get the same exception trying to run the first statement (which i guess is the place to start), i guess i'm missing some sandbox-key-init step somewhere?
java -jar tinker/tinker.jar UserOverview
โโโโโโโโโโโโโโโโ โโโโโโ โโโโโโโโโโโโโโโโโโ โโโโโโโ โโโ โโโโโโโ
โโโโโโโโโโโโโโโโโ โโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโ
โโโ โโโโโโโโโ โโโโโโโโโโ โโโโโโ โโโโโโโโโโโโโโโโโ โโโโโโ โโโโ
โโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโ โโโ
โโโ โโโโโโ โโโโโโโโโ โโโโโโโโโโโโโโ โโโโโโโโโ โโโโโโโโโโโโโโโ
โโโ โโโโโโ โโโโโโโโ โโโโโโโโโโโโโโ โโโโโโโโโ โโโโโ โโโโโโโ
Exception in thread "main" com.bunq.sdk.exception.BadRequestException: Response id to help bunq debug: 21e5a57d-0636-462a-b0ea-518322dccfa1.
Error message: User credentials are incorrect. Incorrect API key or IP address.
at com.bunq.sdk.exception.ExceptionFactory.createExceptionForResponse(ExceptionFactory.java:40)
at com.bunq.sdk.http.ApiClient.createApiExceptionRequestUnsuccessful(ApiClient.java:355)
at com.bunq.sdk.http.ApiClient.assertResponseSuccess(ApiClient.java:336)
at com.bunq.sdk.http.ApiClient.createBunqResponseRaw(ApiClient.java:312)
at com.bunq.sdk.http.ApiClient.post(ApiClient.java:208)
at com.bunq.sdk.model.core.DeviceServerInternal.create(DeviceServerInternal.java:21)
at com.bunq.sdk.context.ApiContext.initializeDeviceRegistration(ApiContext.java:181)
at com.bunq.sdk.context.ApiContext.initialize(ApiContext.java:164)
at com.bunq.sdk.context.ApiContext.create(ApiContext.java:127)
at com.bunq.sdk.context.ApiContext.create(ApiContext.java:109)
at com.bunq.sdk.context.ApiContext.create(ApiContext.java:101)
at com.bunq.tinker.libs.BunqLib.setupContext(BunqLib.java:91)
at com.bunq.tinker.libs.BunqLib.<init>(BunqLib.java:79)
at com.bunq.tinker.UserOverview.run(UserOverview.java:26)
at com.bunq.tinker.utils.TinkerRunner.main(TinkerRunner.java:21)
The tinker script mentions that I have to adjust 'this file' to be able to see more but it's not clear what 'this file is'.
Also it's not clear how I can recompile the code.
Possibly related to #15
When running:
java -jar tinker/tinker.jar UserOverview
I get the following error:
Exception in thread "main" com.bunq.sdk.exception.UncaughtExceptionError: Uncaught exception "Certificate pinning failure!
Peer certificate chain:
sha256/9Y+oZve6H+r17Kdn+lN5sT0ijgxLyDGIuQtUwLupawA=: CN=sandbox.bunq.com
sha256/JSMzqOOrtyOT1kmau6zKhgT676hGgczD5VMdRMyJZFA=: CN=Amazon, OU=Server CA 1B, O=Amazon, C=US
sha256/++MBgDH5WGvL9Bcn5Be30cRcL0f5O+NyoXuWtQdX1aI=: CN=Amazon Root CA 1, O=Amazon, C=US
sha256/KwccWaCgrnaw6tsrrSO61FgLacNgG2MMLq8GE6+oP5I=: CN=Starfield Services Root Certificate Authority - G2, O="Starfield Technologies, Inc.", L=Scottsdale, ST=Arizona, C=US
Pinned certificates for public-api.sandbox.bunq.com:
sha256/GhNvDokiMyXzhGft+xXWFGchUmmh8R5dQEnO4xu81NY=".
at com.bunq.sdk.http.ApiClient.get(ApiClient.java:442)
at com.bunq.sdk.model.generated.endpoint.User.list(User.java:79)
at com.bunq.sdk.model.generated.endpoint.User.list(User.java:85)
at com.bunq.sdk.context.UserContext.(UserContext.java:29)
at com.bunq.sdk.context.BunqContext.loadApiContext(BunqContext.java:18)
at com.bunq.tinker.libs.BunqLib.setupContext(BunqLib.java:101)
at com.bunq.tinker.libs.BunqLib.(BunqLib.java:79)
at com.bunq.tinker.UserOverview.run(UserOverview.java:26)
at com.bunq.tinker.utils.TinkerRunner.main(TinkerRunner.java:21)
I use a fresh install of the tinker_java app.
java -version
java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)
Reference: bunq/tinker_php#7
The sandbox-user
user endpoint is being deprecated and will be replaced by sandbox-user-person
and sandbox-user-company
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.