SDK Documentation
1. Installation
<script src="https://issuance.akowe.app/sdk"></script>2. Initialize the SDK
<script>
const certApp = new CertificateSDK({
onLoad: (res) => {
console.log("SDK Loaded:", res);
},
onCreateCompleted: (data) => {
console.log("New template created:", data);
// Send this `data` to your Template Create API
},
onEditCompleted: (data) => {
console.log("Template edited:", data);
// Send this `data` to your Template Edit API
},
onClose: () => {
console.log("Modal closed");
// Call this when after a successful request to template Create or Edit endpoint
},
onError: (err) => {
console.error("SDK error:", err);
}
});
</script>3. Create a New Template
4. Edit an Existing Template
5. Closing the Modal
6. Typical Workflow
7. Error Handling
8. Full Example
Last updated