From 45abd9751e3e7d5428bad81a433b85feae328a04 Mon Sep 17 00:00:00 2001 From: luca-marie Date: Tue, 13 Sep 2016 15:16:20 +0200 Subject: Restructuring README and documentation in doc file --- doc/TWITTER_FEED.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 doc/TWITTER_FEED.md (limited to 'doc/TWITTER_FEED.md') diff --git a/doc/TWITTER_FEED.md b/doc/TWITTER_FEED.md new file mode 100644 index 0000000..12dc1be --- /dev/null +++ b/doc/TWITTER_FEED.md @@ -0,0 +1,36 @@ +Display of status updates from twitter on main view (access to tweets via Twitter API) +--------------------------- + +This is a feature to include status updates that displays most recent tweets +of a (determined) twitter account (accessed via Twitter API). +If you chose to use it, the feature gets included in `home/index` of +LEAP web app (as part of the main view). + +## How to use it ## + +* Create Twitter Application on https://apps.twitter.com/ + * Visit https://apps.twitter.com/ and log in with the twitter account you want to use + * Make sure you have a mobile phone number registered with your account to be able to proceed + * Choose the option to `Create New App` + * Fill in Application Details and Developer Agreement and `Create your Twitter application` + * Choose the section "Keys and Access Tokens" to get your consumer key and consumer secret + * Optional: Go to section "Permissions" and change the "Access" from `Read and Write` (by default) to `Read only` + * Have your consumer key and secret by hand for one of the next steps + +* Activate the feature within your local LEAP Web Application + * If not already existing create a secrets-file in /config with the name secrets.yml (`/config/secrets.yml`) + * Secrets-file should contain the following, make sure its in YAML: {"development"=> {"twitter"=>{"enabled"=>false, "twitter_handle"=>"", "bearer_token"=>"", "twitter_picture"=>nil}}, "test"=>{"twitter"=>{"enabled"=>false, "twitter_handle"=>"", "bearer_token"=>"", "twitter_picture"=>nil}}} + * To have your bearer token created, run script in terminal being in the file of leap_web: `script/generate_bearer_token` + * To have the script run properly you have to add before running: `--key your_consumerkey --secret your_consumersecret` + * Add also `--projectroot your_projectroot --twitterhandle your_twitterhandle` as well to not have manually put the data in your secrets-file + * The full command looks like this: `script/generate_bearer_token --key your_consumerkey --secret your_consumersecret --projectroot your_projectroot --twitterhandle your_twitterhandle` + * If you didn't give all your information to the script, had a typo or want to change anything else, please do so by finding the secrets-file at `/config/secrets.yml` + * Make sure that the correct twitterhandle and bearer-token is included + +* Deactivate your bearer token + * To deactivate your generated bearer token you can run script/invalidate_bearer_token + * The full command looks like this: script/invalidate_bearer_token --key your_consumerkey --secret your_consumersecret --token your_bearer_token + +### Default avatar image ### + +This feature uses by default the the twitter bird as avatar picture (Twitter_Logo_Blue.png). By using the Twitter trademarks in these Brand Guidelines, you agree to follow these Twitter Trademark Guidelines (the “Guidelines”) as well as our Terms of Service and all other Twitter rules and policies. Find more details here: https://brand.twitter.com/. -- cgit v1.2.3 From b19280e9937276d908d90be5da7c65cdfbb64be1 Mon Sep 17 00:00:00 2001 From: luca-marie Date: Tue, 13 Sep 2016 15:21:12 +0200 Subject: Fixed typo --- doc/TWITTER_FEED.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/TWITTER_FEED.md') diff --git a/doc/TWITTER_FEED.md b/doc/TWITTER_FEED.md index 12dc1be..bfe2a1d 100644 --- a/doc/TWITTER_FEED.md +++ b/doc/TWITTER_FEED.md @@ -1,4 +1,4 @@ -Display of status updates from twitter on main view (access to tweets via Twitter API) +# Display of status updates from twitter on main view # --------------------------- This is a feature to include status updates that displays most recent tweets @@ -33,4 +33,4 @@ LEAP web app (as part of the main view). ### Default avatar image ### -This feature uses by default the the twitter bird as avatar picture (Twitter_Logo_Blue.png). By using the Twitter trademarks in these Brand Guidelines, you agree to follow these Twitter Trademark Guidelines (the “Guidelines”) as well as our Terms of Service and all other Twitter rules and policies. Find more details here: https://brand.twitter.com/. +This feature uses by default the twitter bird as avatar picture (Twitter_Logo_Blue.png). By using the Twitter trademarks in these Brand Guidelines, you agree to follow these Twitter Trademark Guidelines (the “Guidelines”) as well as our Terms of Service and all other Twitter rules and policies. Please find more details here: https://brand.twitter.com/. -- cgit v1.2.3 From 8a9c46dd6bd2538bf9f126ec6901d4ce3ebd2758 Mon Sep 17 00:00:00 2001 From: luca-marie Date: Tue, 13 Sep 2016 15:23:11 +0200 Subject: Fixed typo --- doc/TWITTER_FEED.md | 1 - 1 file changed, 1 deletion(-) (limited to 'doc/TWITTER_FEED.md') diff --git a/doc/TWITTER_FEED.md b/doc/TWITTER_FEED.md index bfe2a1d..218bc26 100644 --- a/doc/TWITTER_FEED.md +++ b/doc/TWITTER_FEED.md @@ -1,5 +1,4 @@ # Display of status updates from twitter on main view # ---------------------------- This is a feature to include status updates that displays most recent tweets of a (determined) twitter account (accessed via Twitter API). -- cgit v1.2.3 From e768e50cce83cf3e1ff3f5ac7b1b58f73368daef Mon Sep 17 00:00:00 2001 From: luca-marie Date: Tue, 13 Sep 2016 15:41:42 +0200 Subject: added twitter guidelines for usage of twitter image --- doc/TWITTER_FEED.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/TWITTER_FEED.md') diff --git a/doc/TWITTER_FEED.md b/doc/TWITTER_FEED.md index 218bc26..972e683 100644 --- a/doc/TWITTER_FEED.md +++ b/doc/TWITTER_FEED.md @@ -32,4 +32,4 @@ LEAP web app (as part of the main view). ### Default avatar image ### -This feature uses by default the twitter bird as avatar picture (Twitter_Logo_Blue.png). By using the Twitter trademarks in these Brand Guidelines, you agree to follow these Twitter Trademark Guidelines (the “Guidelines”) as well as our Terms of Service and all other Twitter rules and policies. Please find more details here: https://brand.twitter.com/. +This feature uses by default the twitter bird as avatar picture (Twitter_Logo_Blue.png). By using the Twitter trademarks, you agree to follow these Twitter Trademark Guidelines (the “Guidelines”) as well as Twitter's Terms of Service and all other Twitter rules and policies. Please find more details here: https://brand.twitter.com/. -- cgit v1.2.3 From b66eb2b7af58cd4354f0c5262a7061e3d20e317c Mon Sep 17 00:00:00 2001 From: luca-marie Date: Tue, 13 Sep 2016 15:46:45 +0200 Subject: Clarifying on how to use twitter brand logo --- doc/TWITTER_FEED.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/TWITTER_FEED.md') diff --git a/doc/TWITTER_FEED.md b/doc/TWITTER_FEED.md index 972e683..dd3954c 100644 --- a/doc/TWITTER_FEED.md +++ b/doc/TWITTER_FEED.md @@ -32,4 +32,4 @@ LEAP web app (as part of the main view). ### Default avatar image ### -This feature uses by default the twitter bird as avatar picture (Twitter_Logo_Blue.png). By using the Twitter trademarks, you agree to follow these Twitter Trademark Guidelines (the “Guidelines”) as well as Twitter's Terms of Service and all other Twitter rules and policies. Please find more details here: https://brand.twitter.com/. +This feature uses by default the twitter bird as avatar picture (Twitter_Logo_Blue.png). By using the Twitter trademarks, you agree to follow the Twitter Trademark Guidelines as well as Twitter's Terms of Service and all other Twitter rules and policies. Please find more details here: https://brand.twitter.com/. -- cgit v1.2.3