Skip to content

Instantly share code, notes, and snippets.

@IbrahimTareq
Created July 22, 2018 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IbrahimTareq/a00124a7b518ec87ea21aee9de4ef51b to your computer and use it in GitHub Desktop.
Save IbrahimTareq/a00124a7b518ec87ea21aee9de4ef51b to your computer and use it in GitHub Desktop.
Code snippet on how to delete a signature key using the MessageMedia Signature Key Management Node.js SDK.
const lib = require('messagemedia-signingkeys-sdk');
// Configuration parameters and credentials
lib.Configuration.basicAuthUserName = "API_KEY"; // The username to use with basic authentication
lib.Configuration.basicAuthPassword = "API_SECRET"; // The password to use with basic authentication
var controller = lib.SignatureKeyManagementController;
var keyId = "7ca628a8-08b0-4e42-aeb8-960b37049c31";
controller.deleteSignatureKey(keyId, function(error, response, context) {
console.log(response);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment