Difference between revisions of "Twitter Site Configuration"

From ADF Docs
Jump to: navigation, search
m (Configuration Fields)
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
== Configuration Fields ==
 
== Configuration Fields ==
 
If you haven't created a Twitter @Anywhere app, go to [http://dev.twitter.com/anywhere Twitter's @Anywhere site] for more details. Read that page and hit [http://dev.twitter.com/apps/new this link] to register your Twitter application.
 
If you haven't created a Twitter @Anywhere app, go to [http://dev.twitter.com/anywhere Twitter's @Anywhere site] for more details. Read that page and hit [http://dev.twitter.com/apps/new this link] to register your Twitter application.
Also [http://bit.ly/a/sign_up sign up for Bit.ly] to be able to take advantage of their free URL shortening service.
+
Also [http://bit.ly/a/sign_up sign up for Bit.ly] to be able to take advantage of their free URL shortening service. [http://bit.ly/a/your_api_key/ get your Bit.ly api key]
  
 
Don't worry you will not have to write a single line of code to use these two API's, we just need to add those values to the configuration XML file in any text editor (like Notepad).
 
Don't worry you will not have to write a single line of code to use these two API's, we just need to add those values to the configuration XML file in any text editor (like Notepad).

Latest revision as of 20:37, 9 September 2010

Overview

The Twitter App uses an XML file to store site specific configurations. The Twitter App needs to know your Twitter @Anywhere account's Consumer Key and Consumer Secret, as well as your Bit.ly account's Login and Key.

Configuration Fields

If you haven't created a Twitter @Anywhere app, go to Twitter's @Anywhere site for more details. Read that page and hit this link to register your Twitter application. Also sign up for Bit.ly to be able to take advantage of their free URL shortening service. get your Bit.ly api key

Don't worry you will not have to write a single line of code to use these two API's, we just need to add those values to the configuration XML file in any text editor (like Notepad).

There are four components in the configuration XML file:

  1. consumerKey - You can find this in your Twitter @Anywhere app's properties.
  2. consumerSecret - Also in your Twitter @Anywhere app's properties.
  3. bitlyLogin - The username you just registered on Bit.ly's site.
  4. bitlyKey - Bit.ly's API key.

Final Step

Once your configuration XML file (twitter.xml) has been updated with the correct values from your Twitter App's and Bit.ly's registrations, move the XML file to the /cs_apps/config/ folder.