| Index: remoting/tools/gethosts.sh
|
| diff --git a/remoting/tools/gethosts.sh b/remoting/tools/gethosts.sh
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..dc31202ae0f9d03cf358035869f829ddd1159c57
|
| --- /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
|
|
|