Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
@iPullRank
@iPullRank
@iPullRank
@iPullRank
@iPullRank
@iPullRank
@iPullRank
<?php 
?>
// This is a comment 
/* This is also a comment 
on multiple lines*/
$a = 5;
+ – / *
$f = ‘marketing’ . ’festival’; 
// Sets the value of $f to “marketingfestival”
if ( condition ) 
{ 
do things 
} 
elseif( condition) 
{ 
do other things 
} 
else{ 
do other things 
}
$a = 50; 
if($a ==49) 
{ 
echo “a is 49”; 
} 
elseif($a == 52) 
{ 
echo “a is 52”; 
} 
else{ 
echo “a is not a known numbe...
while foreach 
for (initial value of counter; loop ending condition; counter increment or decrement) 
{ 
do things 
}
$count = 40; 
For ($x=1;$x<($count+1);$x++) 
{ 
echo $x . “<Br/>”; 
}
$count = 40; 
For ($x=1;$x<$count;$x++) 
{ 
for ($y=0;$y<10;$y++) 
{ 
echo $x+$y . “<Br/>”; 
} 
}
$variable[0] = “this is first element of an array”; 
$variable[1] = “this is second element of an array”;
$variable[“element”] = “this is first associative element of an array”; 
$variable[“second”] = “this is second associative...
$variable[“element”][“score”]= 80; 
$variable[“second”][5] = “this is the 6 element within the second element”;
<?php 
include_once“csv-handlers.php”; 
$csv = csv_to_array(“insert file name here.csv”);
<?php 
include_once“csv-handlers.php”; 
$csv = csv_to_array(“example.csv”); 
print_r($csv);
<?php 
include_once"restclient.php"; 
$api= new RestClient(array( 
'base_url' => "http://urls.api.twitter.com/1/urls", 
'f...
if($response->info->http_code== 200) 
{ 
$twitterResponse= $response->decode_response(); 
echo 'tweet count is ' .$twitter...
<?php 
include_once“csv-handlers.php”; 
makeCSV($csv, “test.csv”);
<?php 
include_once"restclient.php"; 
include_once"csv-handlers.php"; 
$csv = csv_to_array("urls.csv"); 
$countOfCsvLines=...
for($x=0;$x<$countOfCsvLines;$x++) 
{ 
echo '<tr>'; 
$result = $api->get("count", array("v" => "1.0", "url" =>$csv[$x]['ur...
@iPullRank
@iPullRank
@iPullRank
@iPullRank
@iPullRank
@iPullRank
@iPullRank
@iPullRank
@iPullRank
@iPullRank
@iPullRank
@iPullRank
@iPullRank
@iPullRank
@iPullRank
X-Quota-Remaining 
<?php 
include_once“”;
@iPullRank
@iPullRank
@iPullRank
@iPullRank
@iPullRank
@iPullRank
<?php 
include_once“”;
@iPullRank
@iPullRank
@iPullRank
@iPullRank
@iPullRank
@iPullRank
@iPullRank
THANK YOU 
ANY QUESTIONS?
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
Storytelling By Numbers
You’ve finished this document.
Download and read it offline.
Upcoming SlideShare
How to generate those leads all day everyday
Next
Upcoming SlideShare
How to generate those leads all day everyday
Next
Download to read offline and view in fullscreen.

Share

Storytelling By Numbers

Download to read offline

Mike King's Marketing Festival presentation on using APIs and visualizing data.

Related Books

Free with a 30 day trial from Scribd

See all

Storytelling By Numbers

  1. @iPullRank
  2. @iPullRank
  3. @iPullRank
  4. @iPullRank
  5. @iPullRank
  6. @iPullRank
  7. @iPullRank
  8. <?php ?>
  9. // This is a comment /* This is also a comment on multiple lines*/
  10. $a = 5;
  11. + – / *
  12. $f = ‘marketing’ . ’festival’; // Sets the value of $f to “marketingfestival”
  13. if ( condition ) { do things } elseif( condition) { do other things } else{ do other things }
  14. $a = 50; if($a ==49) { echo “a is 49”; } elseif($a == 52) { echo “a is 52”; } else{ echo “a is not a known number”; }
  15. while foreach for (initial value of counter; loop ending condition; counter increment or decrement) { do things }
  16. $count = 40; For ($x=1;$x<($count+1);$x++) { echo $x . “<Br/>”; }
  17. $count = 40; For ($x=1;$x<$count;$x++) { for ($y=0;$y<10;$y++) { echo $x+$y . “<Br/>”; } }
  18. $variable[0] = “this is first element of an array”; $variable[1] = “this is second element of an array”;
  19. $variable[“element”] = “this is first associative element of an array”; $variable[“second”] = “this is second associative element of an array”;
  20. $variable[“element”][“score”]= 80; $variable[“second”][5] = “this is the 6 element within the second element”;
  21. <?php include_once“csv-handlers.php”; $csv = csv_to_array(“insert file name here.csv”);
  22. <?php include_once“csv-handlers.php”; $csv = csv_to_array(“example.csv”); print_r($csv);
  23. <?php include_once"restclient.php"; $api= new RestClient(array( 'base_url' => "http://urls.api.twitter.com/1/urls", 'format' => "json" )); $response = $api->get("count", array("v" => "1.0", "url" =>"http://www.marketingfestival.cz"));
  24. if($response->info->http_code== 200) { $twitterResponse= $response->decode_response(); echo 'tweet count is ' .$twitterResponse->count; }
  25. <?php include_once“csv-handlers.php”; makeCSV($csv, “test.csv”);
  26. <?php include_once"restclient.php"; include_once"csv-handlers.php"; $csv = csv_to_array("urls.csv"); $countOfCsvLines= count($csv); $api= new RestClient(array( 'base_url' => "http://urls.api.twitter.com/1/urls", 'format' => "json" )); echo '<Table><tr><td>URL</td><td>Tweet Count</td></tr>';
  27. for($x=0;$x<$countOfCsvLines;$x++) { echo '<tr>'; $result = $api->get("count", array("v" => "1.0", "url" =>$csv[$x]['urls'])); echo '<td>'.$csv[$x]['urls'].'</td>'; if($result->info->http_code== 200) { $twitterResponse= $result->decode_response(); $socialShares[$x]['urls'] = $csv[$x]['urls']; $socialShares[$x]['tweetCount'] = $twitterResponse->count; } else{ $socialShares[$x]['tweetCount'] = 'unknown'; } echo '<td>'.$socialShares[$x]['tweetCount'].'</td>'; echo '</tr>'; } echo '</Table>'; makeCSV($socialShares,"shares.csv"); echo '<a href="shares.csv">Shares.csv</a>';
  28. @iPullRank
  29. @iPullRank
  30. @iPullRank
  31. @iPullRank
  32. @iPullRank
  33. @iPullRank
  34. @iPullRank
  35. @iPullRank
  36. @iPullRank
  37. @iPullRank
  38. @iPullRank
  39. @iPullRank
  40. @iPullRank
  41. @iPullRank
  42. @iPullRank
  43. X-Quota-Remaining <?php include_once“”;
  44. @iPullRank
  45. @iPullRank
  46. @iPullRank
  47. @iPullRank
  48. @iPullRank
  49. @iPullRank
  50. <?php include_once“”;
  51. @iPullRank
  52. @iPullRank
  53. @iPullRank
  54. @iPullRank
  55. @iPullRank
  56. @iPullRank
  57. @iPullRank
  58. THANK YOU ANY QUESTIONS?
  • DevieDjuanitaEkaSEMM

    Jun. 22, 2019
  • MohamedAbdelaalAhmed

    Mar. 13, 2019
  • BheemaRaj1

    Nov. 8, 2017
  • DavidRFeig

    May. 29, 2016
  • Cemoulto

    Jan. 6, 2016
  • SinaKimDiehlmann

    Nov. 21, 2015
  • Barbara_Braehmer

    Nov. 21, 2015
  • kendallyb

    Sep. 12, 2015
  • PALFRED53

    Mar. 6, 2015
  • DrJeffGrover

    Feb. 19, 2015
  • BrandyMcIntosh

    Jan. 27, 2015
  • tiborzahorecz7

    Jan. 18, 2015
  • atner

    Jan. 17, 2015
  • yvesmk

    Jan. 7, 2015
  • saurabh1979

    Dec. 13, 2014
  • hhitzler

    Dec. 5, 2014
  • TJSaylor

    Nov. 28, 2014
  • BostonMartin

    Nov. 25, 2014
  • TerminixIndonesia

    Nov. 23, 2014
  • milkmen

    Nov. 18, 2014

Mike King's Marketing Festival presentation on using APIs and visualizing data.

Views

Total views

24,106

On Slideshare

0

From embeds

0

Number of embeds

1,478

Actions

Downloads

201

Shares

0

Comments

0

Likes

60

×