This Delete a issuer profile using method. The weightage for this API is 10
Delete 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 --globoff 'https://api.krypcore.com/api/v0/did/deleteIssuerDid' \
--header 'Authorization: xxxxxxxxxxxxxx' \
--header 'DappId: xxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data '{
"did": "did:key:z6MkhNjTaHAmf1fx9JuWXHUqGU7k4tX6RKCHkvHnXdrxZqGa"
}'
const axios = require('axios');
let data = JSON.stringify({
"did": "did:key:z6MkqXwdB44PL2W5xHABsMR5MeXFq2Z2xhdBoT2VuvDdow3n"
});
let config = {
method: 'post',
maxBodyLength: Infinity,
url: '{{web3_baseurl}}/did/deleteIssuerDid',
headers: {
'Authorization': 'xxxxxxxxxxxxxx',
'DappId': 'xxxxxxxxxxxxxx',
'Content-Type': 'application/json'
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
import requests
import json
url = "{{web3_baseurl}}/did/deleteIssuerDid"
payload = json.dumps({
"did": "did:key:z6MkqXwdB44PL2W5xHABsMR5MeXFq2Z2xhdBoT2VuvDdow3n"
})
headers = {
'Authorization': 'xxxxxxxxxxxxxx',
'DappId': 'xxxxxxxxxxxxxx',
'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 := "{{web3_baseurl}}/did/deleteIssuerDid"
method := "POST"
payload := strings.NewReader(`{
"did": "did:key:z6MkqXwdB44PL2W5xHABsMR5MeXFq2Z2xhdBoT2VuvDdow3n"
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "xxxxxxxxxxxxxx")
req.Header.Add("DappId", "xxxxxxxxxxxxxx")
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))
}