https://github.com/roosoft/call_secure_api
Call a secure REST endpoint with a certificate and a macaroon
https://github.com/roosoft/call_secure_api
Last synced: over 1 year ago
JSON representation
Call a secure REST endpoint with a certificate and a macaroon
- Host: GitHub
- URL: https://github.com/roosoft/call_secure_api
- Owner: RooSoft
- Created: 2022-03-07T15:13:31.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-07T20:35:32.000Z (over 4 years ago)
- Last Synced: 2025-01-17T06:27:28.011Z (over 1 year ago)
- Language: Elixir
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Call Secure API
This mostly is a proof of concept to call a LND REST API on a Umbrel... still, it's written in an abstract way to enable calling any secure REST endpoint.
## Example
Get Umbrel's LND state, passing the cert and the macaroon to get the service's state
Parameters:
1. TLS Certificate
1. Macaroon
1. URL
1. Output filename
```bash
elixir call_secure_api.exs ~/.lnd/lnd.cert ~/.lnd/readonly.macaroon https://umbrel:8080/v1/graph graph.json
```