- Install the cli
curl -s -L https://releases.hoop.dev/release/install-cli.sh | sh- Create the systemd unit
| 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" |
| apiVersion: networking.istio.io/v1alpha3 | |
| kind: VirtualService | |
| metadata: | |
| name: google-proxy-test | |
| spec: | |
| hosts: | |
| - google-proxy-test.mydomain.tld | |
| gateways: | |
| - istio-gateway | |
| http: |
| apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| labels: | |
| app: nginx-ig | |
| name: nginx-ig | |
| spec: | |
| replicas: 2 | |
| selector: | |
| matchLabels: |