Closed MG-ng closed 2 years ago
sorry cant help here, i wrote this like 3 years ago and totally don't remember how it works under the hood. but other people create their own API clients (like lnbits, you could look there), and everything works
Turns out it was just me using .post()
instead of .get()
despite the docs saying clearly that you should use get on the getinfo function 😅
Thank you very much! LNbits is very interesting (but server side) and during the search for other python clients I found the solution here
Hi, I have a question about communicating with LndHub using python requests. I think I don't get the authorization correctly.
First I type
import requests
thenwhich works well and then
which also works fine and delivers with
r2.json()
arefresh_token
and anaccess_token
.But if I do now a
r3.json()
or ar3.content
it prints404
orb'404'
.I don't know what I'm doing wrong :/
I looked at the BlueWallet code and translated this param to a header field https://github.com/BlueWallet/BlueWallet/blob/13708383437d3c66ea536250e46c88138e9827d0/class/wallets/lightning-custodian-wallet.js#L565
I tried to send the same as the BlueWallet app but somehow it don't work. The log also just prints a 404:
Thank you for your help!