This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
controller.getSignatureKeyList(function(error, response, context) { | |
console.log(response); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
controller.getEnabledSignatureKey(function(error, response, context) { | |
console.log(response); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
controller.deleteDisableTheCurrentEnabledSignatureKey(function(error, response, context) { | |
console.log(response); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 body = new lib.EnableSignatureKeyRequest({ | |
"key_id": "7ca628a8-08b0-4e42-aeb8-960b37049c31" // Example of what a key_id could look like |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
// The body of the request | |
var body = new lib.CreateSignatureKeyRequest({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const lib = require('messagemedia-conversations-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.AppUsersController; | |
var appUserId = 'appUserId'; | |
var message = new BaseMessageDto({"key":"value"}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const lib = require('messagemedia-conversations-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.AppUsersController; | |
var appUserId = 'appUserId'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const lib = require('messagemedia-conversations-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.AppUsersController; | |
var appUserId = 'appUserId'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const lib = require('messagemedia-conversations-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.AppUsersController; | |
controller.getAppUsers(function(error, response, context) { | |
console.log(response); |
NewerOlder