示例#1
0
def call(msg='', channel=''):
    shared = ProtoShared()
    api = client_api.Client()
    cmd = api.send_ping(msg=msg, channel=channel, pingId='PING')

    print('Response: %s' % shared.pingName(cmd.ping.pingId))
    print('message sent: %s' % cmd.ping.msg)
    print('to channel: %s' % cmd.ping.channel)
示例#2
0
文件: client.py 项目: mad01/examples
def call(msg='', channel=''):
    shared = ProtoShared()
    api = client_api.Client()
    cmd = api.send_ping(
        msg=msg,
        channel=channel,
        pingId='PING'
        )

    print('Response: %s' % shared.pingName(cmd.ping.pingId))
    print('message sent: %s' % cmd.ping.msg)
    print('to channel: %s' % cmd.ping.channel)