This method lists the available issuer profile . The weightage for this API is 1
Lists the available issuer profile under the given instance.
Take a look at how you might call this method using our official libraries, or via curl
:
curl --location -g --request POST 'https://api.krypcore.com/api/v0/did/listIssuerProfile' \
--header 'Authorization: xxxxxxxxxxxxxxxxx' \
--header 'DappId: xxxxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"limit": 5,
"page": 1,
"search": ""
}'
var axios = require('axios');
var data = JSON.stringify({
"limit": 5,
"page": 1,
"search": ""
});
var config = {
method: 'post',
url: 'https://api.krypcore.com/api/v0/did/listIssuerProfile',
headers: {
'Authorization': 'xxxxxxxxxxxxxxxxx',
'DappId': 'xxxxxxxxxxxxxxxxx',
'Content-Type': 'application/json'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
import requests
import json
url = "https://api.krypcore.com/api/v0/did/listIssuerProfile"
payload = json.dumps({
"limit": 5,
"page": 1,
"search": ""
})
headers = {
'Authorization': 'xxxxxxxxxxxxxxxxx',
'DappId': 'xxxxxxxxxxxxxxxxx',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.krypcore.com/api/v0/did/listIssuerProfile"
method := "POST"
payload := strings.NewReader(`{
"limit": 5,
"page": 1,
"search": ""
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "xxxxxxxxxxxxxxxxx")
req.Header.Add("DappId", "xxxxxxxxxxxxxxxxx")
req.Header.Add("Content-Type", "application/json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}