mirror of
https://github.com/aljazceru/payments-rest-api.git
synced 2025-12-20 06:54:23 +01:00
example_client cleanup
This commit is contained in:
@@ -187,8 +187,8 @@ class BreezClient:
|
||||
# Example usage
|
||||
if __name__ == "__main__":
|
||||
# Configuration
|
||||
API_URL = "http://localhost:8000" # Change to your deployed API URL
|
||||
API_KEY = "kurac" # Set your API key here
|
||||
API_URL = "<url-to-your-api>" # Change to your deployed API URL
|
||||
API_KEY = "<api-key-you-set>" # Set your API key here
|
||||
|
||||
# Initialize client
|
||||
breez = BreezClient(api_url=API_URL, api_key=API_KEY)
|
||||
@@ -225,4 +225,4 @@ if __name__ == "__main__":
|
||||
# Onchain payment example (commented out for safety)
|
||||
# print("\n⛓️ Sending Onchain Payment...")
|
||||
# result = breez.send_onchain(address="bitcoin_address_here", amount_sat=10000)
|
||||
# print(json.dumps(result, indent=2))
|
||||
# print(json.dumps(result, indent=2))
|
||||
|
||||
Reference in New Issue
Block a user