aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/call-sm-binding-method_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/call-sm-binding-method_test.sh')
-rwxr-xr-xscripts/call-sm-binding-method_test.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/call-sm-binding-method_test.sh b/scripts/call-sm-binding-method_test.sh
new file mode 100755
index 0000000..e3f1139
--- /dev/null
+++ b/scripts/call-sm-binding-method_test.sh
@@ -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}
+