mirror of https://github.com/apache/druid.git
Fixed interactive twitter example to ask for consumer/access keys and secrets upon run.
This commit is contained in:
parent
58780094a9
commit
0bd4e8b016
|
@ -13,10 +13,16 @@ if [ ! -e "$PF" ]; then
|
||||||
touch created
|
touch created
|
||||||
touch $PF
|
touch $PF
|
||||||
chmod 700 $PF
|
chmod 700 $PF
|
||||||
echo " Your twitter user login name and pw is needed "
|
echo " Your twitter OAuth information is needed. Go to https://twitter.com/oauth_clients/new to register a new application and retrieve your keys "
|
||||||
read -p 'twitter username? ' TWIT_USER
|
read -p 'Twitter consumer key? ' CONSUMER_KEY
|
||||||
read -s -p 'twitter password? ' TWIT_PW
|
read -p 'Twitter consumer secret? ' CONSUMER_SECRET
|
||||||
echo "user=${TWIT_USER}" >> $PF
|
read -p 'Twitter access token? ' ACCESS_TOKEN
|
||||||
echo "password=${TWIT_PW}" >> $PF
|
read -p 'Twitter access token secret? ' ACCESS_TOKEN_SECRET
|
||||||
TWIT_PW=""
|
echo "debug=true" >> $PF
|
||||||
|
echo "oauth.consumerKey=${CONSUMER_KEY}" >> $PF
|
||||||
|
echo "oauth.consumerSecret=${CONSUMER_SECRET}" >> $PF
|
||||||
|
echo "oauth.accessToken=${ACCESS_TOKEN}" >> $PF
|
||||||
|
echo "oauth.accessTokenSecret=${ACCESS_TOKEN_SECRET}" >> $PF
|
||||||
|
CONSUMER_SECRET=""
|
||||||
|
ACCESS_TOKEN_SECRET=""
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue