Python
import requests
url = "https://staging.branta.pro/v2/payments"
api_token = "your token here"
payload = {
"destinations": [
{
"value": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
"zk": False,
}
],
"ttl": "86400"
}
headers = {
"API_KEY": api_token,
"Content-Type": "application/json"
}
try:
response = requests.post(url, json=payload, headers=headers)
print("Response:", response.status_code)
except requests.exceptions.RequestException as e:
print("An error occurred:", e)Last updated