GithubHelp home page GithubHelp logo

bunq / tinker_java Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 6.0 108 KB

Install Tinker by just running this command: bash <(curl -s https://tinker.bunq.com/java/setup.sh)

License: MIT License

Shell 34.16% Java 65.84%
java tinker banking-applications bunq-api bank-integration bank-account payment banking-api

tinker_java's People

Contributors

andrederoos avatar angelomelonas avatar jordyheemskerk avatar lexym avatar nickvandegroes avatar ogkevin avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

tinker_java's Issues

General Improvements

Some improvements to be made:

  • The documentation for the go-pro file is missing. See https://github.com/bunq/tinker_php/blob/develop/go-pro for comparison
  • In the CreatePsd2Configuration file, there is a print out that is incorrect (bunq-psd.conf should be bunq-psd2.conf)
  • In the CreatePsd2Configuration file, the Tinker header should be printed

There are likely more such easy improvements.

Deprecate sandbox-user

The sandbox-user user endpoint is being deprecated and will be replaced by sandbox-user-person and sandbox-user-company.

User credentials are incorrect. Incorrect API key or IP address.

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)

Certificate pinning failure

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)

Not clear which file to adjust to tinker.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.