-
Notifications
You must be signed in to change notification settings - Fork 6
KeyValue API
unreg edited this page Oct 29, 2016
·
9 revisions
from actorbot.api import keyvalue
from actorbot.bots import Conversation
class ExampleConversation(Conversation):
def sample(self):
out_msg = keyvalue.SetValue(self._get_id(),
keyspace='test', key='counter', value='42')
self.send(out_msg)from actorbot.api import keyvalue
from actorbot.bots import Conversation
class ExampleConversation(Conversation):
def sample(self):
out_msg = keyvalue.GetValue(self._get_id(),
keyspace='test', key='counter')
self.send(out_msg)from actorbot.api import keyvalue
from actorbot.bots import Conversation
class ExampleConversation(Conversation):
def sample(self):
out_msg = keyvalue.GetKeys(self._get_id(), keyspace='test')
self.send(out_msg)from actorbot.api import keyvalue
from actorbot.bots import Conversation
class ExampleConversation(Conversation):
def sample(self):
out_msg = keyvalue.DeleteValue(self._get_id(),
keyspace='test', key='counter')
self.send(out_msg)