diff options
Diffstat (limited to 'remoting/tools')
-rwxr-xr-x | remoting/tools/gethosts.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/remoting/tools/gethosts.sh b/remoting/tools/gethosts.sh new file mode 100755 index 0000000..dc31202 --- /dev/null +++ b/remoting/tools/gethosts.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# Simple shell script to get list of available hosts from the Chromoting +# Directory API using the saved AuthToken. +authToken=`sed -n 2p ~/.chromotingDirectoryAuthToken` +url="https://www.googleapis.com/chromoting/v1/@me/hosts" +curl --header "Content-Type: application/json" --header "Authorization: GoogleLogin Auth=$authToken" -L "$url" +echo |