def main(argv):
parser = build_cli_parser()
opts, args = parser.parse_args(argv)
if not opts.server_url or not opts.token or not opts.id:
print "Missing required param; run with --help for usage"
sys.exit(-1)
# build a cbapi object
#
cb = cbapi.CbApi(opts.server_url, token=opts.token, ssl_verify=opts.ssl_verify)
actions = cb.feed_action_enum(opts.id)
count = 1
for action in actions:
print ""
print "Action number: %s" % count
print "-"*50
count += 1
for key in action.keys():
print "%-20s : %s" % (key, action[key])
评论列表
文章目录