Hook.KeyValues Class
Methods
get
(
Promise
-
key
-
callback
Parameters:
-
key
String -
callback
Function
Returns:
Promise:
Example:
Get a key value
client.keys.get('my-custom-key', function(key) {
console.log(key.value);
});
set
(
Promise
-
key
-
value
Parameters:
-
key
String -
value
String | Number
Returns:
Promise:
Example:
Set a key value
client.keys.set('my-custom-key', 'custom value').then(function(key) {
console.log(key);
});