forked from chrisle/seer.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Klout.html
434 lines (312 loc) · 9.96 KB
/
Klout.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
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Namespace: Klout</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http:https://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le styles -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-responsive.min.css" rel="stylesheet">
<link href="css/seerjs.css" rel="stylesheet">
<link href="js/google-code-prettify/prettify.css" rel="stylesheet">
<style>
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}
</style>
<link href="css/bootstrap-responsive.min.css" rel="stylesheet">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-11852503-1']);
_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:https://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body onload="prettyPrint()">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="index.html">Seer SEO Toolbox</a>
<div class="nav-collapse">
<ul class="nav">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#apis"> APIs <b class="caret"></b> </a>
<ul class="dropdown-menu">
<!-- <li><a href="#">Google Adwords</a></li> -->
<li><a href="GoogleAnalytics.html">Google Analytics</a></li>
<li><a href="Klout.html">Klout</a></li>
<li><a href="Majestic.html">Majestic</a></li>
<li><a href="Raven.html">Raven</a></li>
<li><a href="Seomoz.html">SEOmoz</a></li>
<li><a href="Twitter.html">Twitter</a></li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#Architecture"> Other <b class="caret"></b> </a>
<ul class="dropdown-menu">
<li><a href="GoogleScraper.html">Google Scraper</a></li>
<li><a href="OnPage.html">On-page Analysis</a></li>
<li><a href="Redirection.html">Redirection</a></li>
<li><a href="Utils.html">Utilities</a></li>
<li><a href="ArrayTransform.html">Arrays and cells</a></li>
<li><a href="Hashes.html">Hash Calculations</a></li>
</ul>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container" id="seerjs-docs">
<div class="page-header">
<h1>Klout API</h1>
</div>
<div class="row">
<div class="span4">
<h2>
<a href="#getKloutAll">getKloutAll</a>
</h2>
<p>Gets all data from Klout, including Klout score, for one or many Twitter users.</p>
</div>
<div class="span4">
<h2>
<a href="#getKloutScore">getKloutScore</a>
</h2>
<p>Gets just the Klout score for one or many Twitter users.</p>
</div>
</div>
<div class="row">
<div class="span12 columns">
<section id="getKloutAll">
<div class="page-header">
<h1 id="getKloutAll">
getKloutAll
</h1>
</div>
<div class="row">
<div class="span12 columns">
<h3>Function</h3>
<pre class="prettyprint">=getKloutAll(usersRange)</pre>
</div>
</div>
<div class="row">
<div class="span3 columns">
<h3>Details</h3>
<p> This function will return all the data made available by the Klout API.
<div class="alert alert-success">
<strong>Tip:</strong> Select Twitter accounts in multiples of 5. Klout
processes them five at a time.
</div>
<div class="alert alert-error">
<strong>Limitation:</strong> Google Docs might timeout if you select
too many Twitter users. Try a smaller number of users.
</div> </p>
</div>
<div class="span9 columns">
<h3>Parameters</h3>
<p>
<table class="table table-bordered">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>usersRange</code></td>
<td class="type">
Array | Range
</td>
<td class="description last">Range of cells of user's Twitter names<br/>
<span class="label label-info">Note</span>
Twitter names needs to be be without the @ symbol.</td>
</tr>
</tbody>
</table>
</p>
<h3>Returns</h3>
<p><table class="table table-condensed">
<thead>
<tr>
<th>Column</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>twitter_id</code></td>
<td> Twitter ID</td>
</tr><tr>
<td><code>kscore</code></td>
<td> Klout score</td>
</tr><tr>
<td><code>slope</code></td>
<td> Scope</td>
</tr><tr>
<td><code>description</code></td>
<td> Description of the score</td>
</tr><tr>
<td><code>kclass_id</code></td>
<td> Klout classification ID</td>
</tr><tr>
<td><code>kclass</code></td>
<td> Klout classification</td>
</tr><tr>
<td><code>kclass_description</code></td>
<td> Klout classification description</td>
</tr><tr>
<td><code>network_score</code></td>
<td> Network score</td>
</tr><tr>
<td><code>amplification_score</code></td>
<td> Amplification score</td>
</tr><tr>
<td><code>true_reach</code></td>
<td> True reach score</td>
</tr><tr>
<td><code>delta_1day</code></td>
<td> Change in Klout score over 1 day</td>
</tr><tr>
<td><code>delta_5day</code></td>
<td> Change in Klout score over 5 days</td>
</tr>
</tbody>
</table>
</p>
</div>
</div>
<div class="page-header">
<h3>Examples</h3>
</div>
<div class="row">
<div class="span3">
<p>
<h4>Klout data for one person</h4>
</p>
</div>
<div class="span9">
<p> <pre class="prettyprint">=getKloutAll("djchrisle")</pre> </p>
</div>
<div class="span3">
<p>
<h4>Klout data for many people</h4>
</p>
</div>
<div class="span9">
<p> <pre class="prettyprint">Cells:
A2: djchrisle
A3: wilreynolds
A4: seerinteractive
=getKlout(A2:A4)</pre> </p>
</div>
</div>
</section>
</div>
</div>
<div class="row">
<div class="span12 columns">
<section id="getKloutScore">
<div class="page-header">
<h1 id="getKloutScore">
getKloutScore
</h1>
</div>
<div class="row">
<div class="span12 columns">
<h3>Function</h3>
<pre class="prettyprint">=getKloutScore(usersRange)</pre>
</div>
</div>
<div class="row">
<div class="span3 columns">
<h3>Details</h3>
<p> If all you need is the Klout score this function provides a shortcut
to getKloutAll that will only return the Klout score. </p>
</div>
<div class="span9 columns">
<h3>Parameters</h3>
<p>
<table class="table table-bordered">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>usersRange</code></td>
<td class="type">
Array | Range
</td>
<td class="description last">Range of cells of user's Twitter names<br/>
<span class="label label-info">Note</span>
Twitter names needs to be be without the @ symbol.</td>
</tr>
</tbody>
</table>
</p>
</div>
</div>
<div class="page-header">
<h3>Examples</h3>
</div>
<div class="row">
<div class="span3">
<p>
<h4>Klout score for one person</h4>
</p>
</div>
<div class="span9">
<p> <pre class="prettyprint">=getKloutScore("djchrisle")</pre> </p>
</div>
<div class="span3">
<p>
<h4>Klout score for many people</h4>
</p>
</div>
<div class="span9">
<p> <pre class="prettyprint">Cells:
A2: djchrisle
A3: wilreynolds
A4: seerinteractive
=getKloutScore(A2:A4)</pre> </p>
</div>
</div>
</section>
</div>
</div>
<footer class="footer">
<div class="row">
<div class="span12 columns">
<hr />
<p>
By <a href="http:https://www.chrisle.me">Chris Le</a> (<a href="https://twitter.com/iamchrisle">@iamchrisle</a>) &
<a href="http:https://www.seerinteractive.com">Seer Interactive (<a href="https://twitter.com/seerinteractive">@SEERinteractive</a>)
</p>
</div>
</div>
</footer>
</div>
<script src="js/jquery-1.7.1.min.js"></script>
<script src="js/google-code-prettify/prettify.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>