-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Api url has changed #5
Comments
Thanks @pedrolauro. How do I get the new API URL for the /registration endpoint? |
nice! thanks for pointing it out @pedrolauro, I'm going to take a look soon |
@digelim Just try to login at Nubank's website and watch for XHR requests into the dev tools Network tab. I found the new URL doing that. |
when I first started doing the API wrapper there was an endpoint that enlisted all the other possible ones, if this one still exists maybe we could use it to always be up to date |
After you successfully authenticated with that new url (and also the old one), the response includes a range of api's urls, for all kinds of functions for Nubank. But none for Nuconta, though.. Btw, why the hell are we discussing this in english? lol =D |
About the NuConta I don't think they made it public yet, gonna try to dig on that but probably is not allowed (if anyone from NuBank is reading this, please, let us know!) |
summoning @rafaelcorreiapoli |
Thanks @grsabreu. One of the urls mentioned by pedrolauro is called "savings". But I don't know how to use that, sorry. There is no documentation :( |
Quem consegue me ajudar no básico? Quero testar essa API, mas como faço pra executar o script?
Apontando pra classe createNuBank(); meu código completo:
Detalhe. Não sou familiarizado com o NodeJs. |
@RNT17 Tente usar
|
There's 2 discovery URI's that can be used to get all API endpoints: |
@danilobarion1986 cool man. Can you create a PR for us with this change? |
I'm developing an automated workflow to get my bills with Ruby because I'm not so familiar with Javascript... When I finish the part of use dynamic URL's I could try to translate it to Javascript and then open a PR here :) Meanwhile, it's possible to call those endpoints manually and replace them in the code. |
@danilobarion1986 are you considering the qrcode step required to get the "events link"? |
Yes, this is the exact workflow to authenticate. As I said before, I won't be able to make a PR with the javascript code, but I finish my ruby automation (it can be viewed here). Before I made it I tried to use a python automation, but I encounter some errors with it and then decided to roll out my own. |
Thanks! |
Cool @dygufa ! But if everybody needs a QR Code to log in them I agree with you that is better to launch a new breaking version and deprecate this one |
Hi, just passing by to say that I decided to create a project to create a JS library for Nubank's API with all the QR Code authentication and stuff. Thanks for your ruby project @danilobarion1986, it was a great help. I already made an npm package for it, you can check it here. |
Just saw your comment on the npm lib you wrote, really appreciate man! |
I've been using this lib for a couple months, with everything ok.
Now I'm getting this error:
FetchError: request to https://prod-auth.nubank.com.br/api/token failed, reason: write EPROTO 140736572793792:error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate:../deps/openssl/openssl/ssl/s3_ pkt.c:1498:SSL alert number 42 140736572793792:error:1409E0E5:SSL routines:ssl3_write_bytes:ssl handshake failure:../deps/openssl/openssl/ssl/s3_pkt.c:659
I think the api URL has changed to this new url:
https://prod-s0-webapp-proxy.nubank.com.br/api/proxy/AJxL5LBUC2Tx4PB-W6VD1SEIOd2xp14EDQ.aHR0cHM6Ly9wcm9kLWdsb2JhbC1hdXRoLm51YmFuay5jb20uYnIvYXBpL3Rva2Vu
The text was updated successfully, but these errors were encountered: