Add sound manager initial source code
[staging/soundmanager.git] / test / call-sm-binding-method_test.sh
diff --git a/test/call-sm-binding-method_test.sh b/test/call-sm-binding-method_test.sh
new file mode 100755 (executable)
index 0000000..e3f1139
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+echo "please call method after launch afb-client-demo"
+echo "  # ./sm-binding-test.sh"
+echo "To get soundmanager api "
+echo "example) monitor get {\"apis\":[\"monitor\"]}"
+echo "example) soundmanager disconnect {\"mainConnectionID\":1}"
+port=12345
+token=123456
+if test $1;then
+port=$1
+fi
+if test $2; then
+token=$2
+fi
+afb-client-demo ws://localhost:${port}/api?token=${token}
+