Introduction
The Related Twitter Results is a feature that uses the Twitter Search API, in conjunction with JSON and javascript, to provide a means to receive real time Twitter results alongside your GSA search results.
Details
==> NOTE: Google does not warranty or in any way guarantee the reliability of this code. Use it at your own risk.
==> Miniumum Requirements:
- The Related Twitter Results REQUIRES GSA v6.0 or higher.
- Javascript must be enabled on the users browser.
Changes Since v1.0:
Known Issues:
The Related Twitter Results is a feature that uses the Twitter Search API, in conjunction with JSON and javascript, to provide a means to receive real time Twitter results alongside your GSA search results.
Here is the data flow for the Related Twitter Reeults:
1. Query is submitted to GSA
2. Results are returned and XSLT is applied
3. JSON query is submitted to Twitter
4. JSON is returned, parsed, and Twitter results are displayed
Functions:
- twLoad(id, searchURL)
- the id is the div id in the xslt that the Related Twitter Results will be placed into.
- searchURL is the complete set of URL parameters that have to be passed to the javascript, in order to retain all the appropriate search criteria. If you are calling this from a GSA Frontend, then you will need to use the {$search_url_escaped} variable.
- twSetTitle(title)
- the title to display at the top of the Related Twitter Results.
- twSetTriggerWord(word)
- set the word or phrase that will kick off a twitter search.
- twSetUseTrigger(useTrigger)
- set whether the trigger word is needed. 1 is for yes, 0 is for no.
- twSetMoreLabel(label)
- set the label to be displayed for the Twitter more link
- twSetMaxResults(maxResults)
- set the maximum number of results to be returned by Twitter
For the installation instructions, please see the appropriate files:
GSA v6.0 - installation_instructions_v6.0.txt
To report any issues, or provide any feedback, please contact: fmackenz@gmail.com.
does this work with the google mini?
Is GSA using the new twitter search engine https://twitter.com/#!/search-home or still the old one http://search.twitter.com/?