- Install the cli
curl -s -L https://releases.hoop.dev/release/install-cli.sh | sh
- Create the systemd unit
--- | |
# Source: hoop-chart/templates/secret-configs.yaml | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: hoop-config | |
type: Opaque | |
stringData: | |
XTDB_ADDRESS: "http://127.0.0.1:3001" | |
POSTGRES_DB_URI: "postgresql://<user>:<pwd>@<host>:5432/<db>" |
# Source: hoop-chart/templates/secret-configs.yaml | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: hoop-config | |
type: Opaque | |
stringData: | |
XTDB_ADDRESS: "http://127.0.0.1:3001" | |
POSTGRES_DB_URI: "postgresql://[PG_USER]:[PG_PASSWORD]@[PG_HOST]:[PG_PORT]/[PG_DB]" | |
API_URL: "[HOOP_GATEWAY_DNS_NAME]" |
from flask import Flask, request | |
from svix.webhooks import Webhook, WebhookVerificationError | |
app = Flask(__name__) | |
# obtained in the svix web panel | |
# https://docs.runops.io/docs/webhooks/#receiving-webhooks | |
signing_secret = '' | |
@app.route("/runops", methods=['POST']) |
echo $1 $2 |
{
"contracts": [
{
"reference": "test-xaxaxa",
"contractDueDate": "2022-11-18",
"assetHolderDocumentType": "CNPJ",
"assetHolder": "<asset-holder-doc-id>",
ACCESSTOKEN= | |
curl 'https://integration.nonprod.taginfraestrutura.com.br/receivable/consent/optin' \ | |
--header "Authorization: Bearer ${ACCESSTOKEN}" \ | |
--header 'Content-Type: application/json' \ | |
--data-raw '{ | |
"optIns": [ | |
{ | |
"beneficiary":"72963718000194", | |
"assetHolder": "16036234000129", | |
"acquirer": "31688539000109", |
package main | |
import ( | |
"bytes" | |
"crypto/tls" | |
"errors" | |
"fmt" | |
"net" | |
"net/smtp" | |
"text/template" |