-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
294 lines (240 loc) · 14.5 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Alfred Flik - An Alfred App extension from Mashery</title>
<link rel="shortcut icon" href="http://mashery.github.com/assets/ico/favicon.ico">
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
<!-- overriding with Bootstrap and mashery-tools.css -->
<link href="http://mashery.github.com/assets/css/tools-details-page.css" rel="stylesheet">
<link href="http://mashery.github.com/assets/css/bootstrap.css" rel="stylesheet">
<link href="http://mashery.github.com/assets/css/bootstrap-responsive.css" rel="stylesheet">
<link href="http://mashery.github.com/assets/css/docs.css" rel="stylesheet">
<link href="http://mashery.github.com/assets/js/google-code-prettify/prettify.css" rel="stylesheet">
<link href="http://mashery.github.com/assets/css/mashery-tools.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- BEGIN Google Analytics -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-476443-10']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- END Google Analytics -->
</head>
<body class="tool-details-page">
<div class="wrapper">
<!-- BEGIN mashery navigation bar -->
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<div id="logo"><img src="http://content.developer.mashery.com/images/mashery_intel_logo.png" class="bs-icon"></div>
<button data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar" type="button">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- <a class="brand" href="./index.html">Bootstrap</a> -->
<div class="nav-collapse collapse">
<ul class="nav">
<li class="">
<a href="http://dev.mashery.com">Home</a>
</li>
<li class="">
<a href="http://dev.mashery.com/apis">APIs</a>
</li>
<li class="active">
<a href="http://mashery.github.com">Tools</a>
</li>
<li class="">
<a href="http://mashery.appstores.com">Apps</a>
</li>
<li class="">
<a href="http://masherydev.tumblr.com">Blog</a>
</li>
<li class="">
<a href="http://developer.mashery.com/events">Events</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<!-- END mashery navigation bar -->
<header>
<h1>Alfred Flik</h1>
<p>An Alfred app extension</p>
<p><a href="https://github.com/mashery/alfred-flik/raw/master/Alfred-Flik.zip" class="btn btn-primary btn-large" >Download Extension</a></p>
<ul class="github-links">
<li style="width:179px;"><a href="https://github.com/mashery/alfred-flik">View project on <strong style="padding-top:4px;">GitHub</strong></a></li>
</ul>
<div class="btn-toolbar" style="float:left;">
<div class="btn-group">
<button class="btn btn-success">More Alfred Extensions</button>
<button class="btn btn-success dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="http://mashery.github.com/alfred-flik/">Alfred Flik</a></li>
<li><a href="http://mashery.github.com/rovi-artist-age/">Rovi Artist Age</a></li>
<li><a href="http://mashery.github.com/alfred-show-me-the-klout/">Show Me The Klout</a></li>
<li class="divider"></li>
<li><a href="http://mashery.github.com/io-alfred">View All</a></li>
</ul>
</div><!-- /btn-group -->
</div>
</header>
<section>
<!-- BEGIN subnav -->
<div class="subnav">
<ul class="nav nav-pills">
<li><a href="http://mashery.github.com">All Mashery Tools</a></li>
<li class="dropdown">
<a href="#" data-toggle="dropdown" class="dropdown-toggle">I/O Alfred <b class="caret"></b></a>
<ul class="dropdown-menu">
<li class=""><a href="http://mashery.github.com/alfred-flik/">Alfred Flik</a></li>
<li class=""><a href="http://mashery.github.com/rovi-artist-age/">Rovi Artist Age</a></li>
<li><a href="http://mashery.github.com/alfred-show-me-the-klout/">Show Me The Klout</a></li>
<li class="divider"></li>
<li><a href="http://mashery.github.com/io-alfred">View All</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" data-toggle="dropdown" class="dropdown-toggle">I/O Wraps <b class="caret"></b></a>
<ul class="dropdown-menu">
<li class=""><a href="http://mashery.github.com/io-wraps-rovi-php/">Rovi</a></li>
<li><a href="http://mashery.github.com/io-wraps-usatoday-php/">USA TODAY</a></li>
<li><a href="http://mashery.github.com/io-wraps-whitli-php/">Whit.li</a></li>
<li class="divider"></li>
<li><a href="http://mashery.github.com/io-wraps">View All</a></li>
</ul>
</li>
</ul>
</div>
<!-- END subnav -->
<h2>What is Alfred Flik?</h2>
<p><strong>AlfredFlik</strong> is an <a href="http://www.alfredapp.com/">Alfred</a> extension built using Python, that finds similar movies using <strong>Rovi's Metadata and Search API</strong> and then allow you to text them to a phone number using Twilio's API.</p>
<hr class="soften"><h2>What is Alfred?</h2>
<p><a href="http://alfredapp.com">Alfred</a> is an award-winning productivity application for Mac OS X, which aims to save you time in searching your local computer and the web. Whether it's maps, Amazon, eBay, Wikipedia, you can feed your web addiction quicker than ever.</p>
<p>The real power of Alfred lies in it's <a href="http://www.alfredapp.com/powerpack/">powerpack</a> that allows you to create your very own Terminal shell scripts, AppleScripts, workflows, search filters and file groups to extend Alfred.</p>
<hr class="soften"><h2>Summary</h2>
<p>Say, you're a fan of Arnold and you watched Terminator last week with your friend. You can't get enough of the action and you wanna watch more movies along the same lines. You can now use Alfred-Flik - a handy extension that lets you specify a movie name and the name/phone number of the person you'd like to text the list of movies to. Alfred-Flik then queries <strong>Rovi's Metadata and Search API</strong>, pulls up a list of similar movies. It also finds the ratings of these movies via Rotten Tomatoes. Finally it sends it as an SMS to the phone number you provide using <strong>Twilio</strong>. </p>
<hr class="soften"><h2>Requirements</h2>
<ol>
<li>
<a href="http://www.alfredapp.com/">Alfred</a> + <a href="http://www.alfredapp.com/powerpack/">Alfred Powerpack</a>
</li>
<li><a href="http://developer.rovicorp.com">Rovi API Key</a></li>
<li><a href="http://twilio.com">Twilio API Key</a></li>
<li><a href="http://growl.info">Growl</a></li>
<li><a href="http://www.youtube.com/results?search_query=get+a+mac">Nice and shiny Mac</a> - Of course you have one!</li>
</ol>
<hr class="soften"><h2>How to Use</h2>
<ol>
<li><p>Make sure Alfred is running. </p></li>
<li>
<p>Just hit your Alfred keyboard shortcut. In my case I have it configured it as CMD + SPACE. (The default is probably ALT + SPACE)</p>
<p><img src="https://github.com/mashery/alfred-flik/raw/master/development/images/alfred_launch_bar.png" alt="Alfred Launch Bar"></p>
</li>
<li>
<p>Type the keyword <strong>movie</strong> followed by the <strong>name of the movie</strong> you want to search by and then the <strong>name/phone number</strong> of the person you'd like to text the results to (You can change the keyword by editing the info.plist file) </p>
<p>Using the phone number</p>
<p><img src="https://github.com/mashery/alfred-flik/raw/master/development/images/alfred_launch_bar_fill_1.png" alt="Alfred Launch Bar"></p>
<p>Using the address book described in <strong>call_twilio.py</strong> file</p>
<p><img src="https://github.com/mashery/alfred-flik/raw/master/development/images/alfred_launch_bar_fill_2.png" alt="Alfred Launch Bar"></p>
</li>
<li>
<p>A text message is sent to your friend </p>
<p><img src="https://github.com/mashery/alfred-flik/raw/master/development/images/text_message.png" alt="Alfred Text Message"></p>
</li>
<li>
<p>Also, you get a Growl notification confirming that the text was sent and the list of the movies that were sent.</p>
<p><img src="https://github.com/mashery/alfred-flik/raw/master/development/images/alfred_growl.png" alt="Alfred Growl Notification"></p>
</li>
</ol><hr class="soften"><h2>Examples</h2>
<pre><code><pre>movie terminator john</pre>
<pre>movie "safety not guaranteed" +1417123456</pre>
</code></pre>
<hr class="soften"><h2>Installation</h2>
<ol>
<li>
<p>Download the extension <a href="https://github.com/mashery/alfred-flik/raw/master/Alfred-Flik.zip">here</a>
</p>
<li>
<p>Double click on the .alfredextension file you just download. The extension will install and open up the preferences window in Alfred.</p>
</li>
<li>
<p>Right click on the extension on the left side bar in Alfred (Extension tab) and click on "Show in Finder". The source files for the extension will open up in Finder. </p>
</li>
<li>
<p>Open the file "rovi_auth.py" and type in your type in your <strong> Rovi API key</strong> & <strong>Shared Secret</strong>. Get your Rovi (Metadata and Search) API Key <a href="http://developer.rovicorp.com">here</a></p>
<p><img src="https://github.com/mashery/alfred-flik/raw/master/development/images/rovi_api_key.png" alt="Type your Rovi API Key"></p>
</li>
<li>
<p>Open the file "call_twilio.py" and type in your Twilio account id and toke id. Get your Twilio account & token id <a href="http://twilio.com">here</a></p>
<p><img src="https://github.com/mashery/alfred-flik/raw/master/development/images/twilio_api_key.png" alt="Type your Twilio API Key"></p>
</li>
<li>
<p>Install all dependencies. Open Terminal and type the following (If you run into permission issues, try with sudo) -</p>
<p>Twilio's Python module</p>
<pre>easy_install twilio</pre>
<p>SimpleJSON</p>
<pre>easy_install simplejson</pre> </li>
<li><p>You're done. Just give Alfred a whirl now. Refer <a href="#how-to-use">How to Use</a> above. </p></li>
</ol><hr class="soften"><h2>Development</h2>
<p>Be sure to follow the configuration steps above and use this step-by-step guide to tweak to your heart's content.</p>
<ol>
<li>
<p>Grab the latest source</p>
<pre>git clone git://github.com/mashery/alfred-flik.git</pre>
</li>
<li><p>All the Rovi search related action takes place in the file <strong>'rovi_search_.py'</strong></p></li>
<li><p>All the Rovi auth related action takes place in the file <strong>'rovi_auth.py'</strong></p></li>
<li><p>All the Twilio related action takes place in the file <strong>"call_twilio.py"</strong></p></li>
<li><p>Tweak away</p></li>
</ol><hr class="soften">
<h2>About</h2>
<ul>
<li>Designed and built with lots of <span class="love">love</span> in <strong>New York</strong> & <strong>San Francisco</strong> by the biggest little <a href="http://twitter.com/masherydev">Developer Outreach team</a> on seven continents.</li>
<li>No warranty expressed or implied. Software as is.</li>
<li>Code licensed under the <a href="http://www.opensource.org/licenses/mit-license.html">MIT License</a>. Documentation licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</li>
</ul>
</section>
<footer>
<div class="project-icons">
<a class="mashery-icon" href="http://dev.mashery.com"><img class="bs-icon" src="http://mashery.github.com/assets/img/api-icons/mashery-icon-bw.png"></a>
<a class="rovi-icon" href="http://developer.rovicorp.com"><img class="bs-icon" src="http://mashery.github.com/assets/img/api-icons/rovi-icon-bw.png"></a>
<a class="apple-icon" href="http://apple.com"><img class="bs-icon" src="http://mashery.github.com/assets/img/api-icons/apple-icon-bw.png"></a>
<a class="alfred-icon" href="http://alfredapp.com"><img class="bs-icon" src="http://mashery.github.com/assets/img/glyphicons/alfred_icon_30.png"></a>
</div>
<p>Check out all open source tools from Mashery on <a href="http://mashery.github.com">Github</a></p>
</footer>
</div>
<script src="javascripts/scale.fix.js"></script>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
<script src="http://mashery.github.com/assets/js/jquery.js"></script>
<script src="http://mashery.github.com/assets/js/google-code-prettify/prettify.js"></script>
<script src="http://mashery.github.com/assets/js/bootstrap-transition.js"></script>
<script src="http://mashery.github.com/assets/js/bootstrap-alert.js"></script>
<script src="http://mashery.github.com/assets/js/bootstrap-modal.js"></script>
<script src="http://mashery.github.com/assets/js/bootstrap-dropdown.js"></script>
<script src="http://mashery.github.com/assets/js/bootstrap-scrollspy.js"></script>
<script src="http://mashery.github.com/assets/js/bootstrap-tab.js"></script>
<script src="http://mashery.github.com/assets/js/bootstrap-tooltip.js"></script>
<script src="http://mashery.github.com/assets/js/bootstrap-popover.js"></script>
<script src="http://mashery.github.com/assets/js/bootstrap-button.js"></script>
<script src="http://mashery.github.com/assets/js/bootstrap-collapse.js"></script>
<script src="http://mashery.github.com/assets/js/bootstrap-carousel.js"></script>
<script src="http://mashery.github.com/assets/js/bootstrap-typeahead.js"></script>
<script src="http://mashery.github.com/assets/js/application.js"></script>
</body>
</html>