Twitter Site Configuration

From ADF Docs
Revision as of 20:49, 13 August 2010 by Cmora (talk | contribs) (Created page with '== 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 Se…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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 this link for more details visit Twitter's @Anywhere site. 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.

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 (papertweet.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.