POST Connect to another agent using it's invitation URL
{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation
BODY json

{
  "agentName": "",
  "invitationUrl": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"agentName\": \"\",\n  \"invitationUrl\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation" {:content-type :json
                                                                                                                               :form-params {:agentName ""
                                                                                                                                             :invitationUrl ""}})
require "http/client"

url = "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"agentName\": \"\",\n  \"invitationUrl\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation"),
    Content = new StringContent("{\n  \"agentName\": \"\",\n  \"invitationUrl\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"agentName\": \"\",\n  \"invitationUrl\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation"

	payload := strings.NewReader("{\n  \"agentName\": \"\",\n  \"invitationUrl\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 44

{
  "agentName": "",
  "invitationUrl": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"agentName\": \"\",\n  \"invitationUrl\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"agentName\": \"\",\n  \"invitationUrl\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"agentName\": \"\",\n  \"invitationUrl\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation")
  .header("content-type", "application/json")
  .body("{\n  \"agentName\": \"\",\n  \"invitationUrl\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  agentName: '',
  invitationUrl: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation',
  headers: {'content-type': 'application/json'},
  data: {agentName: '', invitationUrl: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"agentName":"","invitationUrl":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "agentName": "",\n  "invitationUrl": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"agentName\": \"\",\n  \"invitationUrl\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({agentName: '', invitationUrl: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation',
  headers: {'content-type': 'application/json'},
  body: {agentName: '', invitationUrl: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  agentName: '',
  invitationUrl: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation',
  headers: {'content-type': 'application/json'},
  data: {agentName: '', invitationUrl: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"agentName":"","invitationUrl":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"agentName": @"",
                              @"invitationUrl": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"agentName\": \"\",\n  \"invitationUrl\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'agentName' => '',
    'invitationUrl' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation', [
  'body' => '{
  "agentName": "",
  "invitationUrl": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'agentName' => '',
  'invitationUrl' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'agentName' => '',
  'invitationUrl' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "agentName": "",
  "invitationUrl": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "agentName": "",
  "invitationUrl": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"agentName\": \"\",\n  \"invitationUrl\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation"

payload = {
    "agentName": "",
    "invitationUrl": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation"

payload <- "{\n  \"agentName\": \"\",\n  \"invitationUrl\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"agentName\": \"\",\n  \"invitationUrl\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation') do |req|
  req.body = "{\n  \"agentName\": \"\",\n  \"invitationUrl\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation";

    let payload = json!({
        "agentName": "",
        "invitationUrl": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation \
  --header 'content-type: application/json' \
  --data '{
  "agentName": "",
  "invitationUrl": ""
}'
echo '{
  "agentName": "",
  "invitationUrl": ""
}' |  \
  http POST {{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "agentName": "",\n  "invitationUrl": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "agentName": "",
  "invitationUrl": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/accept-invitation")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Create new aries agent invitation that other agents can use to connect.
{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation
BODY json

{
  "agentName": "",
  "invitationDomain": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"agentName\": \"\",\n  \"invitationDomain\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation" {:content-type :json
                                                                                                                                              :form-params {:agentName ""
                                                                                                                                                            :invitationDomain ""}})
require "http/client"

url = "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"agentName\": \"\",\n  \"invitationDomain\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation"),
    Content = new StringContent("{\n  \"agentName\": \"\",\n  \"invitationDomain\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"agentName\": \"\",\n  \"invitationDomain\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation"

	payload := strings.NewReader("{\n  \"agentName\": \"\",\n  \"invitationDomain\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 47

{
  "agentName": "",
  "invitationDomain": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"agentName\": \"\",\n  \"invitationDomain\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"agentName\": \"\",\n  \"invitationDomain\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"agentName\": \"\",\n  \"invitationDomain\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation")
  .header("content-type", "application/json")
  .body("{\n  \"agentName\": \"\",\n  \"invitationDomain\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  agentName: '',
  invitationDomain: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation',
  headers: {'content-type': 'application/json'},
  data: {agentName: '', invitationDomain: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"agentName":"","invitationDomain":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "agentName": "",\n  "invitationDomain": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"agentName\": \"\",\n  \"invitationDomain\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({agentName: '', invitationDomain: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation',
  headers: {'content-type': 'application/json'},
  body: {agentName: '', invitationDomain: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  agentName: '',
  invitationDomain: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation',
  headers: {'content-type': 'application/json'},
  data: {agentName: '', invitationDomain: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"agentName":"","invitationDomain":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"agentName": @"",
                              @"invitationDomain": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"agentName\": \"\",\n  \"invitationDomain\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'agentName' => '',
    'invitationDomain' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation', [
  'body' => '{
  "agentName": "",
  "invitationDomain": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'agentName' => '',
  'invitationDomain' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'agentName' => '',
  'invitationDomain' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "agentName": "",
  "invitationDomain": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "agentName": "",
  "invitationDomain": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"agentName\": \"\",\n  \"invitationDomain\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation"

payload = {
    "agentName": "",
    "invitationDomain": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation"

payload <- "{\n  \"agentName\": \"\",\n  \"invitationDomain\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"agentName\": \"\",\n  \"invitationDomain\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation') do |req|
  req.body = "{\n  \"agentName\": \"\",\n  \"invitationDomain\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation";

    let payload = json!({
        "agentName": "",
        "invitationDomain": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation \
  --header 'content-type: application/json' \
  --data '{
  "agentName": "",
  "invitationDomain": ""
}'
echo '{
  "agentName": "",
  "invitationDomain": ""
}' |  \
  http POST {{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "agentName": "",\n  "invitationDomain": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "agentName": "",
  "invitationDomain": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/create-new-connection-invitation")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Get all Aries agents configured in this connector plugin.
{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents")
require "http/client"

url = "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents"

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents"

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents"))
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents');

echo $response->getBody();
setUrl('{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.post('/baseUrl/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents";

    let client = reqwest::Client::new();
    let response = client.post(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents
http POST {{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-agents")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Get all connections of given aries agent.
{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections
BODY json

{
  "agentName": "",
  "filter": {
    "did": "",
    "invitationDid": "",
    "outOfBandId": "",
    "role": "",
    "state": "",
    "theirDid": "",
    "threadId": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"agentName\": \"\",\n  \"filter\": {\n    \"did\": \"\",\n    \"invitationDid\": \"\",\n    \"outOfBandId\": \"\",\n    \"role\": \"\",\n    \"state\": \"\",\n    \"theirDid\": \"\",\n    \"threadId\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections" {:content-type :json
                                                                                                                             :form-params {:agentName ""
                                                                                                                                           :filter {:did ""
                                                                                                                                                    :invitationDid ""
                                                                                                                                                    :outOfBandId ""
                                                                                                                                                    :role ""
                                                                                                                                                    :state ""
                                                                                                                                                    :theirDid ""
                                                                                                                                                    :threadId ""}}})
require "http/client"

url = "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"agentName\": \"\",\n  \"filter\": {\n    \"did\": \"\",\n    \"invitationDid\": \"\",\n    \"outOfBandId\": \"\",\n    \"role\": \"\",\n    \"state\": \"\",\n    \"theirDid\": \"\",\n    \"threadId\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections"),
    Content = new StringContent("{\n  \"agentName\": \"\",\n  \"filter\": {\n    \"did\": \"\",\n    \"invitationDid\": \"\",\n    \"outOfBandId\": \"\",\n    \"role\": \"\",\n    \"state\": \"\",\n    \"theirDid\": \"\",\n    \"threadId\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"agentName\": \"\",\n  \"filter\": {\n    \"did\": \"\",\n    \"invitationDid\": \"\",\n    \"outOfBandId\": \"\",\n    \"role\": \"\",\n    \"state\": \"\",\n    \"theirDid\": \"\",\n    \"threadId\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections"

	payload := strings.NewReader("{\n  \"agentName\": \"\",\n  \"filter\": {\n    \"did\": \"\",\n    \"invitationDid\": \"\",\n    \"outOfBandId\": \"\",\n    \"role\": \"\",\n    \"state\": \"\",\n    \"theirDid\": \"\",\n    \"threadId\": \"\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 175

{
  "agentName": "",
  "filter": {
    "did": "",
    "invitationDid": "",
    "outOfBandId": "",
    "role": "",
    "state": "",
    "theirDid": "",
    "threadId": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"agentName\": \"\",\n  \"filter\": {\n    \"did\": \"\",\n    \"invitationDid\": \"\",\n    \"outOfBandId\": \"\",\n    \"role\": \"\",\n    \"state\": \"\",\n    \"theirDid\": \"\",\n    \"threadId\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"agentName\": \"\",\n  \"filter\": {\n    \"did\": \"\",\n    \"invitationDid\": \"\",\n    \"outOfBandId\": \"\",\n    \"role\": \"\",\n    \"state\": \"\",\n    \"theirDid\": \"\",\n    \"threadId\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"agentName\": \"\",\n  \"filter\": {\n    \"did\": \"\",\n    \"invitationDid\": \"\",\n    \"outOfBandId\": \"\",\n    \"role\": \"\",\n    \"state\": \"\",\n    \"theirDid\": \"\",\n    \"threadId\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections")
  .header("content-type", "application/json")
  .body("{\n  \"agentName\": \"\",\n  \"filter\": {\n    \"did\": \"\",\n    \"invitationDid\": \"\",\n    \"outOfBandId\": \"\",\n    \"role\": \"\",\n    \"state\": \"\",\n    \"theirDid\": \"\",\n    \"threadId\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  agentName: '',
  filter: {
    did: '',
    invitationDid: '',
    outOfBandId: '',
    role: '',
    state: '',
    theirDid: '',
    threadId: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections',
  headers: {'content-type': 'application/json'},
  data: {
    agentName: '',
    filter: {
      did: '',
      invitationDid: '',
      outOfBandId: '',
      role: '',
      state: '',
      theirDid: '',
      threadId: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"agentName":"","filter":{"did":"","invitationDid":"","outOfBandId":"","role":"","state":"","theirDid":"","threadId":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "agentName": "",\n  "filter": {\n    "did": "",\n    "invitationDid": "",\n    "outOfBandId": "",\n    "role": "",\n    "state": "",\n    "theirDid": "",\n    "threadId": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"agentName\": \"\",\n  \"filter\": {\n    \"did\": \"\",\n    \"invitationDid\": \"\",\n    \"outOfBandId\": \"\",\n    \"role\": \"\",\n    \"state\": \"\",\n    \"theirDid\": \"\",\n    \"threadId\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  agentName: '',
  filter: {
    did: '',
    invitationDid: '',
    outOfBandId: '',
    role: '',
    state: '',
    theirDid: '',
    threadId: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections',
  headers: {'content-type': 'application/json'},
  body: {
    agentName: '',
    filter: {
      did: '',
      invitationDid: '',
      outOfBandId: '',
      role: '',
      state: '',
      theirDid: '',
      threadId: ''
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  agentName: '',
  filter: {
    did: '',
    invitationDid: '',
    outOfBandId: '',
    role: '',
    state: '',
    theirDid: '',
    threadId: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections',
  headers: {'content-type': 'application/json'},
  data: {
    agentName: '',
    filter: {
      did: '',
      invitationDid: '',
      outOfBandId: '',
      role: '',
      state: '',
      theirDid: '',
      threadId: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"agentName":"","filter":{"did":"","invitationDid":"","outOfBandId":"","role":"","state":"","theirDid":"","threadId":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"agentName": @"",
                              @"filter": @{ @"did": @"", @"invitationDid": @"", @"outOfBandId": @"", @"role": @"", @"state": @"", @"theirDid": @"", @"threadId": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"agentName\": \"\",\n  \"filter\": {\n    \"did\": \"\",\n    \"invitationDid\": \"\",\n    \"outOfBandId\": \"\",\n    \"role\": \"\",\n    \"state\": \"\",\n    \"theirDid\": \"\",\n    \"threadId\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'agentName' => '',
    'filter' => [
        'did' => '',
        'invitationDid' => '',
        'outOfBandId' => '',
        'role' => '',
        'state' => '',
        'theirDid' => '',
        'threadId' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections', [
  'body' => '{
  "agentName": "",
  "filter": {
    "did": "",
    "invitationDid": "",
    "outOfBandId": "",
    "role": "",
    "state": "",
    "theirDid": "",
    "threadId": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'agentName' => '',
  'filter' => [
    'did' => '',
    'invitationDid' => '',
    'outOfBandId' => '',
    'role' => '',
    'state' => '',
    'theirDid' => '',
    'threadId' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'agentName' => '',
  'filter' => [
    'did' => '',
    'invitationDid' => '',
    'outOfBandId' => '',
    'role' => '',
    'state' => '',
    'theirDid' => '',
    'threadId' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "agentName": "",
  "filter": {
    "did": "",
    "invitationDid": "",
    "outOfBandId": "",
    "role": "",
    "state": "",
    "theirDid": "",
    "threadId": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "agentName": "",
  "filter": {
    "did": "",
    "invitationDid": "",
    "outOfBandId": "",
    "role": "",
    "state": "",
    "theirDid": "",
    "threadId": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"agentName\": \"\",\n  \"filter\": {\n    \"did\": \"\",\n    \"invitationDid\": \"\",\n    \"outOfBandId\": \"\",\n    \"role\": \"\",\n    \"state\": \"\",\n    \"theirDid\": \"\",\n    \"threadId\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections"

payload = {
    "agentName": "",
    "filter": {
        "did": "",
        "invitationDid": "",
        "outOfBandId": "",
        "role": "",
        "state": "",
        "theirDid": "",
        "threadId": ""
    }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections"

payload <- "{\n  \"agentName\": \"\",\n  \"filter\": {\n    \"did\": \"\",\n    \"invitationDid\": \"\",\n    \"outOfBandId\": \"\",\n    \"role\": \"\",\n    \"state\": \"\",\n    \"theirDid\": \"\",\n    \"threadId\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"agentName\": \"\",\n  \"filter\": {\n    \"did\": \"\",\n    \"invitationDid\": \"\",\n    \"outOfBandId\": \"\",\n    \"role\": \"\",\n    \"state\": \"\",\n    \"theirDid\": \"\",\n    \"threadId\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections') do |req|
  req.body = "{\n  \"agentName\": \"\",\n  \"filter\": {\n    \"did\": \"\",\n    \"invitationDid\": \"\",\n    \"outOfBandId\": \"\",\n    \"role\": \"\",\n    \"state\": \"\",\n    \"theirDid\": \"\",\n    \"threadId\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections";

    let payload = json!({
        "agentName": "",
        "filter": json!({
            "did": "",
            "invitationDid": "",
            "outOfBandId": "",
            "role": "",
            "state": "",
            "theirDid": "",
            "threadId": ""
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections \
  --header 'content-type: application/json' \
  --data '{
  "agentName": "",
  "filter": {
    "did": "",
    "invitationDid": "",
    "outOfBandId": "",
    "role": "",
    "state": "",
    "theirDid": "",
    "threadId": ""
  }
}'
echo '{
  "agentName": "",
  "filter": {
    "did": "",
    "invitationDid": "",
    "outOfBandId": "",
    "role": "",
    "state": "",
    "theirDid": "",
    "threadId": ""
  }
}' |  \
  http POST {{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "agentName": "",\n  "filter": {\n    "did": "",\n    "invitationDid": "",\n    "outOfBandId": "",\n    "role": "",\n    "state": "",\n    "theirDid": "",\n    "threadId": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "agentName": "",
  "filter": [
    "did": "",
    "invitationDid": "",
    "outOfBandId": "",
    "role": "",
    "state": "",
    "theirDid": "",
    "threadId": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/get-connections")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Request proof matching provided requriements from connected peer agent.
{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof
BODY json

{
  "agentName": "",
  "connectionId": "",
  "proofAttributes": [
    {
      "name": "",
      "isValueEqual": "",
      "isCredentialDefinitionIdEqual": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"agentName\": \"\",\n  \"connectionId\": \"\",\n  \"proofAttributes\": [\n    {\n      \"name\": \"\",\n      \"isValueEqual\": \"\",\n      \"isCredentialDefinitionIdEqual\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof" {:content-type :json
                                                                                                                           :form-params {:agentName ""
                                                                                                                                         :connectionId ""
                                                                                                                                         :proofAttributes [{:name ""
                                                                                                                                                            :isValueEqual ""
                                                                                                                                                            :isCredentialDefinitionIdEqual ""}]}})
require "http/client"

url = "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"agentName\": \"\",\n  \"connectionId\": \"\",\n  \"proofAttributes\": [\n    {\n      \"name\": \"\",\n      \"isValueEqual\": \"\",\n      \"isCredentialDefinitionIdEqual\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof"),
    Content = new StringContent("{\n  \"agentName\": \"\",\n  \"connectionId\": \"\",\n  \"proofAttributes\": [\n    {\n      \"name\": \"\",\n      \"isValueEqual\": \"\",\n      \"isCredentialDefinitionIdEqual\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"agentName\": \"\",\n  \"connectionId\": \"\",\n  \"proofAttributes\": [\n    {\n      \"name\": \"\",\n      \"isValueEqual\": \"\",\n      \"isCredentialDefinitionIdEqual\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof"

	payload := strings.NewReader("{\n  \"agentName\": \"\",\n  \"connectionId\": \"\",\n  \"proofAttributes\": [\n    {\n      \"name\": \"\",\n      \"isValueEqual\": \"\",\n      \"isCredentialDefinitionIdEqual\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 169

{
  "agentName": "",
  "connectionId": "",
  "proofAttributes": [
    {
      "name": "",
      "isValueEqual": "",
      "isCredentialDefinitionIdEqual": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"agentName\": \"\",\n  \"connectionId\": \"\",\n  \"proofAttributes\": [\n    {\n      \"name\": \"\",\n      \"isValueEqual\": \"\",\n      \"isCredentialDefinitionIdEqual\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"agentName\": \"\",\n  \"connectionId\": \"\",\n  \"proofAttributes\": [\n    {\n      \"name\": \"\",\n      \"isValueEqual\": \"\",\n      \"isCredentialDefinitionIdEqual\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"agentName\": \"\",\n  \"connectionId\": \"\",\n  \"proofAttributes\": [\n    {\n      \"name\": \"\",\n      \"isValueEqual\": \"\",\n      \"isCredentialDefinitionIdEqual\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof")
  .header("content-type", "application/json")
  .body("{\n  \"agentName\": \"\",\n  \"connectionId\": \"\",\n  \"proofAttributes\": [\n    {\n      \"name\": \"\",\n      \"isValueEqual\": \"\",\n      \"isCredentialDefinitionIdEqual\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  agentName: '',
  connectionId: '',
  proofAttributes: [
    {
      name: '',
      isValueEqual: '',
      isCredentialDefinitionIdEqual: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof',
  headers: {'content-type': 'application/json'},
  data: {
    agentName: '',
    connectionId: '',
    proofAttributes: [{name: '', isValueEqual: '', isCredentialDefinitionIdEqual: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"agentName":"","connectionId":"","proofAttributes":[{"name":"","isValueEqual":"","isCredentialDefinitionIdEqual":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "agentName": "",\n  "connectionId": "",\n  "proofAttributes": [\n    {\n      "name": "",\n      "isValueEqual": "",\n      "isCredentialDefinitionIdEqual": ""\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"agentName\": \"\",\n  \"connectionId\": \"\",\n  \"proofAttributes\": [\n    {\n      \"name\": \"\",\n      \"isValueEqual\": \"\",\n      \"isCredentialDefinitionIdEqual\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  agentName: '',
  connectionId: '',
  proofAttributes: [{name: '', isValueEqual: '', isCredentialDefinitionIdEqual: ''}]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof',
  headers: {'content-type': 'application/json'},
  body: {
    agentName: '',
    connectionId: '',
    proofAttributes: [{name: '', isValueEqual: '', isCredentialDefinitionIdEqual: ''}]
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  agentName: '',
  connectionId: '',
  proofAttributes: [
    {
      name: '',
      isValueEqual: '',
      isCredentialDefinitionIdEqual: ''
    }
  ]
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof',
  headers: {'content-type': 'application/json'},
  data: {
    agentName: '',
    connectionId: '',
    proofAttributes: [{name: '', isValueEqual: '', isCredentialDefinitionIdEqual: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"agentName":"","connectionId":"","proofAttributes":[{"name":"","isValueEqual":"","isCredentialDefinitionIdEqual":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"agentName": @"",
                              @"connectionId": @"",
                              @"proofAttributes": @[ @{ @"name": @"", @"isValueEqual": @"", @"isCredentialDefinitionIdEqual": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"agentName\": \"\",\n  \"connectionId\": \"\",\n  \"proofAttributes\": [\n    {\n      \"name\": \"\",\n      \"isValueEqual\": \"\",\n      \"isCredentialDefinitionIdEqual\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'agentName' => '',
    'connectionId' => '',
    'proofAttributes' => [
        [
                'name' => '',
                'isValueEqual' => '',
                'isCredentialDefinitionIdEqual' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof', [
  'body' => '{
  "agentName": "",
  "connectionId": "",
  "proofAttributes": [
    {
      "name": "",
      "isValueEqual": "",
      "isCredentialDefinitionIdEqual": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'agentName' => '',
  'connectionId' => '',
  'proofAttributes' => [
    [
        'name' => '',
        'isValueEqual' => '',
        'isCredentialDefinitionIdEqual' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'agentName' => '',
  'connectionId' => '',
  'proofAttributes' => [
    [
        'name' => '',
        'isValueEqual' => '',
        'isCredentialDefinitionIdEqual' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "agentName": "",
  "connectionId": "",
  "proofAttributes": [
    {
      "name": "",
      "isValueEqual": "",
      "isCredentialDefinitionIdEqual": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "agentName": "",
  "connectionId": "",
  "proofAttributes": [
    {
      "name": "",
      "isValueEqual": "",
      "isCredentialDefinitionIdEqual": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"agentName\": \"\",\n  \"connectionId\": \"\",\n  \"proofAttributes\": [\n    {\n      \"name\": \"\",\n      \"isValueEqual\": \"\",\n      \"isCredentialDefinitionIdEqual\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof"

payload = {
    "agentName": "",
    "connectionId": "",
    "proofAttributes": [
        {
            "name": "",
            "isValueEqual": "",
            "isCredentialDefinitionIdEqual": ""
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof"

payload <- "{\n  \"agentName\": \"\",\n  \"connectionId\": \"\",\n  \"proofAttributes\": [\n    {\n      \"name\": \"\",\n      \"isValueEqual\": \"\",\n      \"isCredentialDefinitionIdEqual\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"agentName\": \"\",\n  \"connectionId\": \"\",\n  \"proofAttributes\": [\n    {\n      \"name\": \"\",\n      \"isValueEqual\": \"\",\n      \"isCredentialDefinitionIdEqual\": \"\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof') do |req|
  req.body = "{\n  \"agentName\": \"\",\n  \"connectionId\": \"\",\n  \"proofAttributes\": [\n    {\n      \"name\": \"\",\n      \"isValueEqual\": \"\",\n      \"isCredentialDefinitionIdEqual\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof";

    let payload = json!({
        "agentName": "",
        "connectionId": "",
        "proofAttributes": (
            json!({
                "name": "",
                "isValueEqual": "",
                "isCredentialDefinitionIdEqual": ""
            })
        )
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof \
  --header 'content-type: application/json' \
  --data '{
  "agentName": "",
  "connectionId": "",
  "proofAttributes": [
    {
      "name": "",
      "isValueEqual": "",
      "isCredentialDefinitionIdEqual": ""
    }
  ]
}'
echo '{
  "agentName": "",
  "connectionId": "",
  "proofAttributes": [
    {
      "name": "",
      "isValueEqual": "",
      "isCredentialDefinitionIdEqual": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "agentName": "",\n  "connectionId": "",\n  "proofAttributes": [\n    {\n      "name": "",\n      "isValueEqual": "",\n      "isCredentialDefinitionIdEqual": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "agentName": "",
  "connectionId": "",
  "proofAttributes": [
    [
      "name": "",
      "isValueEqual": "",
      "isCredentialDefinitionIdEqual": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-aries/request-proof")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()