Created
July 12, 2015 04:42
-
-
Save mehmoodz/d7e777f78a837d36fc53 to your computer and use it in GitHub Desktop.
IFTTT Google Service descriptions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"/> | |
<title>Hello World - Google Web Search API Sample</title> | |
<script src="https://www.google.com/jsapi" | |
type="text/javascript"></script> | |
<script src="https://code.jquery.com/jquery-2.1.4.min.js" ></script> | |
<script language="Javascript" type="text/javascript"> | |
//<! | |
var sm=["Amazon Alexa", "Android Battery", "Beeminder", "Epicurious", "GE Appliances Cooking", "Inoreader", "Instawell", "IntesisHome", "Kyber Calendars | |
& Reminders", "Lifelog", "Maker", "openHAB", "Pinterest", "Qapital", "Sensibo", "Trello", "U.S. Independence Day", "Weebly", "Android Device", "Android | |
Location", "Android Notifications", "Android Phone Call", "Android Photos", "Android SMS", "Android Wear", "Blogger", "Tumblr", "WordPress", "Box", | |
"Campfire", "DocSend", "Gumroad", "Harvest", "Kato", "LinkedIn", "Quip", "Salesforce Chatter", "Slack", "Square", "Stocks", "Yammer", "AppZapp", "Best Buy", | |
"Chain", "Craigslist", "eBay", "Etsy", "Fiverr", "Semantics3", "ShopYourWay", "Slice", "Stripe", "TrackIf", "Automatic", "Dash", "Mojio", "Zubie", "blink | |
(1)", "Bttn", "ecobee", "Energenie Mi|Home", "Garageio", "Greenwave Systems", "Harmony", "Homeboy", "HomeControl Flex", "HomeSeer", "Honeywell evohome", | |
"Honeywell Single-zone Thermostat", "HP Print", "iSmartAlarm", "LIFX", "littleBits", "Lutron Caséta Wireless", "Manything", "Myfox", "Nest Protect", "Nest | |
Thermostat", "Netatmo Weather Station", "ORBneXt", "Parrot Flower Power", "Particle", "Philips hue", "Rachio Iro", "Revolv", "Scout Alarm", "Sighthound | |
Video", "Smappee", "SmartThings", "ThermoSmart", "Ubi", "WallyHome", "WeMo Insight Switch", "WeMo Light Switch", "WeMo Lighting", "WeMo Maker", "WeMo | |
Motion", "WeMo Switch", "Wink: Aros", "Wink: Egg Minder", "Wink: Nimbus", "Wink: Pivot Power Genius", "Wink: Porkfolio", "Wink: Shortcuts", "Wink: Spotter", | |
"Wireless Tag", "Fitbit", "Google Glass", "Misfit", "Nike+", "UP by Jawbone", "Whistle", "Withings", "iOS Contacts", "iOS Location", "iOS Notifications", | |
"iOS Photos", "iOS Reading List", "iOS Reminders", "Date & Time", "IFTTT", "Is It Christmas?", "popSLATE", "Space", "Surfline", "Weather", "Last.fm", | |
"MixRadio", "SoundCloud", "BuzzFeed", "Digg", "Entertainment Weekly", "ESPN", "Feed", "Feedly", "InStyle", "NewsBlur", "People", "ReadingPack", "reddit", | |
"Sports Illustrated", "Sunlight Foundation", "The New York Times", "Time", "Yahoo! Fantasy Sports", "500px", "Dailymotion", "Eyefi", "ffffound!", "Flickr", | |
"Giphy", "Instagram", "Printhug", "Stockimo", "Vimeo", "YouTube", "bitly", "Boxcar 2", "Boxoh Package Tracking", "Buffer", "Delicious", "Diigo", "Dropbox", | |
"Email", "Email Digest", "Evernote", "FollowUp.cc", "Gmail", "Google Calendar", "Google Drive", "Instapaper", "Instapush", "Launch Center", "Moni.ai", | |
"Nimbus Note", "Numerous", "OneDrive", "OneNote", "Phone Call", "Pinboard", "Pocket", "Pryv", "Pushalot", "Pushbullet", "Pushover", "QualityTime", | |
"Readability", "SMS", "Todoist", "Toodledo", "App.net", "Facebook", "Facebook Pages", "Foursquare", "GitHub", "GroupMe", "Life360", "Sina Weibo", "Twitter", | |
"Yo"] | |
google.load('search', '1'); | |
var searchControl =null; | |
var index=0; | |
function OnLoad() { | |
searchControl = new google.search.SearchControl(); | |
var localSearch = new google.search.LocalSearch(); | |
searchControl.addSearcher(localSearch); | |
searchControl.addSearcher(new google.search.WebSearch()); | |
searchControl.draw(document.getElementById("searchcontrol")); | |
searchControl.setSearchCompleteCallback(this, function(sc,searcher){ | |
if ( searcher.results && searcher.results.length > 0) { | |
var sR=$($('<div>').html(searcher.results[0].html)); | |
$('#searchResult').append("<b>"+$(sR.find('.gs-title')).html()+"</b>:"+$(sR.find('.gs-snippet')).html()+"<br/><br/>"); | |
search(); | |
} | |
}); | |
search(); | |
} | |
google.setOnLoadCallback(OnLoad); | |
function search(){ | |
if(index>=sm.length){return;} | |
searchControl.execute(sm[index]); | |
index++; | |
} | |
//]]> | |
</script> | |
</head> | |
<body> | |
<div id="searchcontrol" style="display:none;">Loading</div> | |
<div id="searchResult"></div> | |
</body> | |
</html> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment