diff options
author | garykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-08 19:46:14 +0000 |
---|---|---|
committer | garykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-08 19:46:14 +0000 |
commit | cc1a4ca35f3095776c98f84f476b098037967c6d (patch) | |
tree | fc5200df1ba83530973a23ec988beba3173bdb15 /remoting/tools | |
parent | 63f01e39ac59725da8d30fa7570f6d85b6ed1f67 (diff) | |
download | chromium_src-cc1a4ca35f3095776c98f84f476b098037967c6d.zip chromium_src-cc1a4ca35f3095776c98f84f476b098037967c6d.tar.gz chromium_src-cc1a4ca35f3095776c98f84f476b098037967c6d.tar.bz2 |
Improve UI of Chromoting client UI to select available hosts.
BUG=53988
TEST=none
Review URL: http://codereview.chromium.org/3338014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58862 0039d316-1c4b-4281-b951-d872f2087c98
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 |