126

Mike King - Storytelling by Numbers MKTFEST 2014

Embed Size (px)

DESCRIPTION

Get videos from all our lectures - http://video.marketingfestival.cz Marketing Festival - World-Class Digital Marketing Event #mktfest Czech Republic

Citation preview

Page 1: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

gt

This is a comment

This is also a comment

on multiple lines

$a = 5

+

ndash

$f = lsquomarketingrsquo rsquofestivalrsquo

Sets the value of $f to

ldquomarketingfestivalrdquo

if ( condition )

do things

elseif( condition)

do other things

else

do other things

$a = 50

if($a == 49)

echo ldquoa is 49rdquo

elseif($a == 52)

echo ldquoa is 52rdquo

else

echo ldquoa is not a known numberrdquo

while foreach

for (initial value of counter loop

ending condition counter increment or

decrement)

do things

$count = 40

For ($x=1$xlt($count+1)$x++)

echo $x ldquoltBrgtrdquo

$count = 40

For ($x=1$xlt$count$x++)

for ($y=0$ylt10$y++)

echo $x+$y ldquoltBrgtrdquo

$variable[0] = ldquothis is

first element of an arrayrdquo

$variable[1] = ldquothis is

second element of an

arrayrdquo

$variable[ldquoelementrdquo] = ldquothis

is first associative element

of an arrayrdquo

$variable[ldquosecondrdquo] = ldquothis

is second associative

element of an arrayrdquo

$variable[ldquoelementrdquo][ldquoscorerdquo] = 80

$variable[ldquosecondrdquo][5] = ldquothis is

the 6 element within the second

elementrdquo

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoinsert file name

herecsvrdquo)

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoexamplecsvrdquo)

print_r($csv)

ltphp

include_once restclientphp

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

$response = $api-gtget(count array(v =gt 10 url

=gthttpwwwmarketingfestivalcz))

if($response-gtinfo-gthttp_code == 200)

$twitterResponse = $response-gtdecode_response()

echo tweet count is $twitterResponse-gtcount

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 2: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

gt

This is a comment

This is also a comment

on multiple lines

$a = 5

+

ndash

$f = lsquomarketingrsquo rsquofestivalrsquo

Sets the value of $f to

ldquomarketingfestivalrdquo

if ( condition )

do things

elseif( condition)

do other things

else

do other things

$a = 50

if($a == 49)

echo ldquoa is 49rdquo

elseif($a == 52)

echo ldquoa is 52rdquo

else

echo ldquoa is not a known numberrdquo

while foreach

for (initial value of counter loop

ending condition counter increment or

decrement)

do things

$count = 40

For ($x=1$xlt($count+1)$x++)

echo $x ldquoltBrgtrdquo

$count = 40

For ($x=1$xlt$count$x++)

for ($y=0$ylt10$y++)

echo $x+$y ldquoltBrgtrdquo

$variable[0] = ldquothis is

first element of an arrayrdquo

$variable[1] = ldquothis is

second element of an

arrayrdquo

$variable[ldquoelementrdquo] = ldquothis

is first associative element

of an arrayrdquo

$variable[ldquosecondrdquo] = ldquothis

is second associative

element of an arrayrdquo

$variable[ldquoelementrdquo][ldquoscorerdquo] = 80

$variable[ldquosecondrdquo][5] = ldquothis is

the 6 element within the second

elementrdquo

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoinsert file name

herecsvrdquo)

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoexamplecsvrdquo)

print_r($csv)

ltphp

include_once restclientphp

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

$response = $api-gtget(count array(v =gt 10 url

=gthttpwwwmarketingfestivalcz))

if($response-gtinfo-gthttp_code == 200)

$twitterResponse = $response-gtdecode_response()

echo tweet count is $twitterResponse-gtcount

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 3: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

gt

This is a comment

This is also a comment

on multiple lines

$a = 5

+

ndash

$f = lsquomarketingrsquo rsquofestivalrsquo

Sets the value of $f to

ldquomarketingfestivalrdquo

if ( condition )

do things

elseif( condition)

do other things

else

do other things

$a = 50

if($a == 49)

echo ldquoa is 49rdquo

elseif($a == 52)

echo ldquoa is 52rdquo

else

echo ldquoa is not a known numberrdquo

while foreach

for (initial value of counter loop

ending condition counter increment or

decrement)

do things

$count = 40

For ($x=1$xlt($count+1)$x++)

echo $x ldquoltBrgtrdquo

$count = 40

For ($x=1$xlt$count$x++)

for ($y=0$ylt10$y++)

echo $x+$y ldquoltBrgtrdquo

$variable[0] = ldquothis is

first element of an arrayrdquo

$variable[1] = ldquothis is

second element of an

arrayrdquo

$variable[ldquoelementrdquo] = ldquothis

is first associative element

of an arrayrdquo

$variable[ldquosecondrdquo] = ldquothis

is second associative

element of an arrayrdquo

$variable[ldquoelementrdquo][ldquoscorerdquo] = 80

$variable[ldquosecondrdquo][5] = ldquothis is

the 6 element within the second

elementrdquo

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoinsert file name

herecsvrdquo)

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoexamplecsvrdquo)

print_r($csv)

ltphp

include_once restclientphp

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

$response = $api-gtget(count array(v =gt 10 url

=gthttpwwwmarketingfestivalcz))

if($response-gtinfo-gthttp_code == 200)

$twitterResponse = $response-gtdecode_response()

echo tweet count is $twitterResponse-gtcount

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 4: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

gt

This is a comment

This is also a comment

on multiple lines

$a = 5

+

ndash

$f = lsquomarketingrsquo rsquofestivalrsquo

Sets the value of $f to

ldquomarketingfestivalrdquo

if ( condition )

do things

elseif( condition)

do other things

else

do other things

$a = 50

if($a == 49)

echo ldquoa is 49rdquo

elseif($a == 52)

echo ldquoa is 52rdquo

else

echo ldquoa is not a known numberrdquo

while foreach

for (initial value of counter loop

ending condition counter increment or

decrement)

do things

$count = 40

For ($x=1$xlt($count+1)$x++)

echo $x ldquoltBrgtrdquo

$count = 40

For ($x=1$xlt$count$x++)

for ($y=0$ylt10$y++)

echo $x+$y ldquoltBrgtrdquo

$variable[0] = ldquothis is

first element of an arrayrdquo

$variable[1] = ldquothis is

second element of an

arrayrdquo

$variable[ldquoelementrdquo] = ldquothis

is first associative element

of an arrayrdquo

$variable[ldquosecondrdquo] = ldquothis

is second associative

element of an arrayrdquo

$variable[ldquoelementrdquo][ldquoscorerdquo] = 80

$variable[ldquosecondrdquo][5] = ldquothis is

the 6 element within the second

elementrdquo

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoinsert file name

herecsvrdquo)

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoexamplecsvrdquo)

print_r($csv)

ltphp

include_once restclientphp

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

$response = $api-gtget(count array(v =gt 10 url

=gthttpwwwmarketingfestivalcz))

if($response-gtinfo-gthttp_code == 200)

$twitterResponse = $response-gtdecode_response()

echo tweet count is $twitterResponse-gtcount

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 5: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

ltphp

gt

This is a comment

This is also a comment

on multiple lines

$a = 5

+

ndash

$f = lsquomarketingrsquo rsquofestivalrsquo

Sets the value of $f to

ldquomarketingfestivalrdquo

if ( condition )

do things

elseif( condition)

do other things

else

do other things

$a = 50

if($a == 49)

echo ldquoa is 49rdquo

elseif($a == 52)

echo ldquoa is 52rdquo

else

echo ldquoa is not a known numberrdquo

while foreach

for (initial value of counter loop

ending condition counter increment or

decrement)

do things

$count = 40

For ($x=1$xlt($count+1)$x++)

echo $x ldquoltBrgtrdquo

$count = 40

For ($x=1$xlt$count$x++)

for ($y=0$ylt10$y++)

echo $x+$y ldquoltBrgtrdquo

$variable[0] = ldquothis is

first element of an arrayrdquo

$variable[1] = ldquothis is

second element of an

arrayrdquo

$variable[ldquoelementrdquo] = ldquothis

is first associative element

of an arrayrdquo

$variable[ldquosecondrdquo] = ldquothis

is second associative

element of an arrayrdquo

$variable[ldquoelementrdquo][ldquoscorerdquo] = 80

$variable[ldquosecondrdquo][5] = ldquothis is

the 6 element within the second

elementrdquo

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoinsert file name

herecsvrdquo)

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoexamplecsvrdquo)

print_r($csv)

ltphp

include_once restclientphp

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

$response = $api-gtget(count array(v =gt 10 url

=gthttpwwwmarketingfestivalcz))

if($response-gtinfo-gthttp_code == 200)

$twitterResponse = $response-gtdecode_response()

echo tweet count is $twitterResponse-gtcount

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 6: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

ltphp

gt

This is a comment

This is also a comment

on multiple lines

$a = 5

+

ndash

$f = lsquomarketingrsquo rsquofestivalrsquo

Sets the value of $f to

ldquomarketingfestivalrdquo

if ( condition )

do things

elseif( condition)

do other things

else

do other things

$a = 50

if($a == 49)

echo ldquoa is 49rdquo

elseif($a == 52)

echo ldquoa is 52rdquo

else

echo ldquoa is not a known numberrdquo

while foreach

for (initial value of counter loop

ending condition counter increment or

decrement)

do things

$count = 40

For ($x=1$xlt($count+1)$x++)

echo $x ldquoltBrgtrdquo

$count = 40

For ($x=1$xlt$count$x++)

for ($y=0$ylt10$y++)

echo $x+$y ldquoltBrgtrdquo

$variable[0] = ldquothis is

first element of an arrayrdquo

$variable[1] = ldquothis is

second element of an

arrayrdquo

$variable[ldquoelementrdquo] = ldquothis

is first associative element

of an arrayrdquo

$variable[ldquosecondrdquo] = ldquothis

is second associative

element of an arrayrdquo

$variable[ldquoelementrdquo][ldquoscorerdquo] = 80

$variable[ldquosecondrdquo][5] = ldquothis is

the 6 element within the second

elementrdquo

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoinsert file name

herecsvrdquo)

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoexamplecsvrdquo)

print_r($csv)

ltphp

include_once restclientphp

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

$response = $api-gtget(count array(v =gt 10 url

=gthttpwwwmarketingfestivalcz))

if($response-gtinfo-gthttp_code == 200)

$twitterResponse = $response-gtdecode_response()

echo tweet count is $twitterResponse-gtcount

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 7: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

ltphp

gt

This is a comment

This is also a comment

on multiple lines

$a = 5

+

ndash

$f = lsquomarketingrsquo rsquofestivalrsquo

Sets the value of $f to

ldquomarketingfestivalrdquo

if ( condition )

do things

elseif( condition)

do other things

else

do other things

$a = 50

if($a == 49)

echo ldquoa is 49rdquo

elseif($a == 52)

echo ldquoa is 52rdquo

else

echo ldquoa is not a known numberrdquo

while foreach

for (initial value of counter loop

ending condition counter increment or

decrement)

do things

$count = 40

For ($x=1$xlt($count+1)$x++)

echo $x ldquoltBrgtrdquo

$count = 40

For ($x=1$xlt$count$x++)

for ($y=0$ylt10$y++)

echo $x+$y ldquoltBrgtrdquo

$variable[0] = ldquothis is

first element of an arrayrdquo

$variable[1] = ldquothis is

second element of an

arrayrdquo

$variable[ldquoelementrdquo] = ldquothis

is first associative element

of an arrayrdquo

$variable[ldquosecondrdquo] = ldquothis

is second associative

element of an arrayrdquo

$variable[ldquoelementrdquo][ldquoscorerdquo] = 80

$variable[ldquosecondrdquo][5] = ldquothis is

the 6 element within the second

elementrdquo

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoinsert file name

herecsvrdquo)

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoexamplecsvrdquo)

print_r($csv)

ltphp

include_once restclientphp

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

$response = $api-gtget(count array(v =gt 10 url

=gthttpwwwmarketingfestivalcz))

if($response-gtinfo-gthttp_code == 200)

$twitterResponse = $response-gtdecode_response()

echo tweet count is $twitterResponse-gtcount

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 8: Mike King - Storytelling by Numbers MKTFEST 2014

ltphp

gt

This is a comment

This is also a comment

on multiple lines

$a = 5

+

ndash

$f = lsquomarketingrsquo rsquofestivalrsquo

Sets the value of $f to

ldquomarketingfestivalrdquo

if ( condition )

do things

elseif( condition)

do other things

else

do other things

$a = 50

if($a == 49)

echo ldquoa is 49rdquo

elseif($a == 52)

echo ldquoa is 52rdquo

else

echo ldquoa is not a known numberrdquo

while foreach

for (initial value of counter loop

ending condition counter increment or

decrement)

do things

$count = 40

For ($x=1$xlt($count+1)$x++)

echo $x ldquoltBrgtrdquo

$count = 40

For ($x=1$xlt$count$x++)

for ($y=0$ylt10$y++)

echo $x+$y ldquoltBrgtrdquo

$variable[0] = ldquothis is

first element of an arrayrdquo

$variable[1] = ldquothis is

second element of an

arrayrdquo

$variable[ldquoelementrdquo] = ldquothis

is first associative element

of an arrayrdquo

$variable[ldquosecondrdquo] = ldquothis

is second associative

element of an arrayrdquo

$variable[ldquoelementrdquo][ldquoscorerdquo] = 80

$variable[ldquosecondrdquo][5] = ldquothis is

the 6 element within the second

elementrdquo

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoinsert file name

herecsvrdquo)

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoexamplecsvrdquo)

print_r($csv)

ltphp

include_once restclientphp

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

$response = $api-gtget(count array(v =gt 10 url

=gthttpwwwmarketingfestivalcz))

if($response-gtinfo-gthttp_code == 200)

$twitterResponse = $response-gtdecode_response()

echo tweet count is $twitterResponse-gtcount

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 9: Mike King - Storytelling by Numbers MKTFEST 2014

This is a comment

This is also a comment

on multiple lines

$a = 5

+

ndash

$f = lsquomarketingrsquo rsquofestivalrsquo

Sets the value of $f to

ldquomarketingfestivalrdquo

if ( condition )

do things

elseif( condition)

do other things

else

do other things

$a = 50

if($a == 49)

echo ldquoa is 49rdquo

elseif($a == 52)

echo ldquoa is 52rdquo

else

echo ldquoa is not a known numberrdquo

while foreach

for (initial value of counter loop

ending condition counter increment or

decrement)

do things

$count = 40

For ($x=1$xlt($count+1)$x++)

echo $x ldquoltBrgtrdquo

$count = 40

For ($x=1$xlt$count$x++)

for ($y=0$ylt10$y++)

echo $x+$y ldquoltBrgtrdquo

$variable[0] = ldquothis is

first element of an arrayrdquo

$variable[1] = ldquothis is

second element of an

arrayrdquo

$variable[ldquoelementrdquo] = ldquothis

is first associative element

of an arrayrdquo

$variable[ldquosecondrdquo] = ldquothis

is second associative

element of an arrayrdquo

$variable[ldquoelementrdquo][ldquoscorerdquo] = 80

$variable[ldquosecondrdquo][5] = ldquothis is

the 6 element within the second

elementrdquo

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoinsert file name

herecsvrdquo)

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoexamplecsvrdquo)

print_r($csv)

ltphp

include_once restclientphp

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

$response = $api-gtget(count array(v =gt 10 url

=gthttpwwwmarketingfestivalcz))

if($response-gtinfo-gthttp_code == 200)

$twitterResponse = $response-gtdecode_response()

echo tweet count is $twitterResponse-gtcount

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 10: Mike King - Storytelling by Numbers MKTFEST 2014

$a = 5

+

ndash

$f = lsquomarketingrsquo rsquofestivalrsquo

Sets the value of $f to

ldquomarketingfestivalrdquo

if ( condition )

do things

elseif( condition)

do other things

else

do other things

$a = 50

if($a == 49)

echo ldquoa is 49rdquo

elseif($a == 52)

echo ldquoa is 52rdquo

else

echo ldquoa is not a known numberrdquo

while foreach

for (initial value of counter loop

ending condition counter increment or

decrement)

do things

$count = 40

For ($x=1$xlt($count+1)$x++)

echo $x ldquoltBrgtrdquo

$count = 40

For ($x=1$xlt$count$x++)

for ($y=0$ylt10$y++)

echo $x+$y ldquoltBrgtrdquo

$variable[0] = ldquothis is

first element of an arrayrdquo

$variable[1] = ldquothis is

second element of an

arrayrdquo

$variable[ldquoelementrdquo] = ldquothis

is first associative element

of an arrayrdquo

$variable[ldquosecondrdquo] = ldquothis

is second associative

element of an arrayrdquo

$variable[ldquoelementrdquo][ldquoscorerdquo] = 80

$variable[ldquosecondrdquo][5] = ldquothis is

the 6 element within the second

elementrdquo

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoinsert file name

herecsvrdquo)

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoexamplecsvrdquo)

print_r($csv)

ltphp

include_once restclientphp

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

$response = $api-gtget(count array(v =gt 10 url

=gthttpwwwmarketingfestivalcz))

if($response-gtinfo-gthttp_code == 200)

$twitterResponse = $response-gtdecode_response()

echo tweet count is $twitterResponse-gtcount

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 11: Mike King - Storytelling by Numbers MKTFEST 2014

+

ndash

$f = lsquomarketingrsquo rsquofestivalrsquo

Sets the value of $f to

ldquomarketingfestivalrdquo

if ( condition )

do things

elseif( condition)

do other things

else

do other things

$a = 50

if($a == 49)

echo ldquoa is 49rdquo

elseif($a == 52)

echo ldquoa is 52rdquo

else

echo ldquoa is not a known numberrdquo

while foreach

for (initial value of counter loop

ending condition counter increment or

decrement)

do things

$count = 40

For ($x=1$xlt($count+1)$x++)

echo $x ldquoltBrgtrdquo

$count = 40

For ($x=1$xlt$count$x++)

for ($y=0$ylt10$y++)

echo $x+$y ldquoltBrgtrdquo

$variable[0] = ldquothis is

first element of an arrayrdquo

$variable[1] = ldquothis is

second element of an

arrayrdquo

$variable[ldquoelementrdquo] = ldquothis

is first associative element

of an arrayrdquo

$variable[ldquosecondrdquo] = ldquothis

is second associative

element of an arrayrdquo

$variable[ldquoelementrdquo][ldquoscorerdquo] = 80

$variable[ldquosecondrdquo][5] = ldquothis is

the 6 element within the second

elementrdquo

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoinsert file name

herecsvrdquo)

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoexamplecsvrdquo)

print_r($csv)

ltphp

include_once restclientphp

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

$response = $api-gtget(count array(v =gt 10 url

=gthttpwwwmarketingfestivalcz))

if($response-gtinfo-gthttp_code == 200)

$twitterResponse = $response-gtdecode_response()

echo tweet count is $twitterResponse-gtcount

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 12: Mike King - Storytelling by Numbers MKTFEST 2014

$f = lsquomarketingrsquo rsquofestivalrsquo

Sets the value of $f to

ldquomarketingfestivalrdquo

if ( condition )

do things

elseif( condition)

do other things

else

do other things

$a = 50

if($a == 49)

echo ldquoa is 49rdquo

elseif($a == 52)

echo ldquoa is 52rdquo

else

echo ldquoa is not a known numberrdquo

while foreach

for (initial value of counter loop

ending condition counter increment or

decrement)

do things

$count = 40

For ($x=1$xlt($count+1)$x++)

echo $x ldquoltBrgtrdquo

$count = 40

For ($x=1$xlt$count$x++)

for ($y=0$ylt10$y++)

echo $x+$y ldquoltBrgtrdquo

$variable[0] = ldquothis is

first element of an arrayrdquo

$variable[1] = ldquothis is

second element of an

arrayrdquo

$variable[ldquoelementrdquo] = ldquothis

is first associative element

of an arrayrdquo

$variable[ldquosecondrdquo] = ldquothis

is second associative

element of an arrayrdquo

$variable[ldquoelementrdquo][ldquoscorerdquo] = 80

$variable[ldquosecondrdquo][5] = ldquothis is

the 6 element within the second

elementrdquo

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoinsert file name

herecsvrdquo)

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoexamplecsvrdquo)

print_r($csv)

ltphp

include_once restclientphp

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

$response = $api-gtget(count array(v =gt 10 url

=gthttpwwwmarketingfestivalcz))

if($response-gtinfo-gthttp_code == 200)

$twitterResponse = $response-gtdecode_response()

echo tweet count is $twitterResponse-gtcount

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 13: Mike King - Storytelling by Numbers MKTFEST 2014

if ( condition )

do things

elseif( condition)

do other things

else

do other things

$a = 50

if($a == 49)

echo ldquoa is 49rdquo

elseif($a == 52)

echo ldquoa is 52rdquo

else

echo ldquoa is not a known numberrdquo

while foreach

for (initial value of counter loop

ending condition counter increment or

decrement)

do things

$count = 40

For ($x=1$xlt($count+1)$x++)

echo $x ldquoltBrgtrdquo

$count = 40

For ($x=1$xlt$count$x++)

for ($y=0$ylt10$y++)

echo $x+$y ldquoltBrgtrdquo

$variable[0] = ldquothis is

first element of an arrayrdquo

$variable[1] = ldquothis is

second element of an

arrayrdquo

$variable[ldquoelementrdquo] = ldquothis

is first associative element

of an arrayrdquo

$variable[ldquosecondrdquo] = ldquothis

is second associative

element of an arrayrdquo

$variable[ldquoelementrdquo][ldquoscorerdquo] = 80

$variable[ldquosecondrdquo][5] = ldquothis is

the 6 element within the second

elementrdquo

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoinsert file name

herecsvrdquo)

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoexamplecsvrdquo)

print_r($csv)

ltphp

include_once restclientphp

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

$response = $api-gtget(count array(v =gt 10 url

=gthttpwwwmarketingfestivalcz))

if($response-gtinfo-gthttp_code == 200)

$twitterResponse = $response-gtdecode_response()

echo tweet count is $twitterResponse-gtcount

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 14: Mike King - Storytelling by Numbers MKTFEST 2014

$a = 50

if($a == 49)

echo ldquoa is 49rdquo

elseif($a == 52)

echo ldquoa is 52rdquo

else

echo ldquoa is not a known numberrdquo

while foreach

for (initial value of counter loop

ending condition counter increment or

decrement)

do things

$count = 40

For ($x=1$xlt($count+1)$x++)

echo $x ldquoltBrgtrdquo

$count = 40

For ($x=1$xlt$count$x++)

for ($y=0$ylt10$y++)

echo $x+$y ldquoltBrgtrdquo

$variable[0] = ldquothis is

first element of an arrayrdquo

$variable[1] = ldquothis is

second element of an

arrayrdquo

$variable[ldquoelementrdquo] = ldquothis

is first associative element

of an arrayrdquo

$variable[ldquosecondrdquo] = ldquothis

is second associative

element of an arrayrdquo

$variable[ldquoelementrdquo][ldquoscorerdquo] = 80

$variable[ldquosecondrdquo][5] = ldquothis is

the 6 element within the second

elementrdquo

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoinsert file name

herecsvrdquo)

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoexamplecsvrdquo)

print_r($csv)

ltphp

include_once restclientphp

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

$response = $api-gtget(count array(v =gt 10 url

=gthttpwwwmarketingfestivalcz))

if($response-gtinfo-gthttp_code == 200)

$twitterResponse = $response-gtdecode_response()

echo tweet count is $twitterResponse-gtcount

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 15: Mike King - Storytelling by Numbers MKTFEST 2014

while foreach

for (initial value of counter loop

ending condition counter increment or

decrement)

do things

$count = 40

For ($x=1$xlt($count+1)$x++)

echo $x ldquoltBrgtrdquo

$count = 40

For ($x=1$xlt$count$x++)

for ($y=0$ylt10$y++)

echo $x+$y ldquoltBrgtrdquo

$variable[0] = ldquothis is

first element of an arrayrdquo

$variable[1] = ldquothis is

second element of an

arrayrdquo

$variable[ldquoelementrdquo] = ldquothis

is first associative element

of an arrayrdquo

$variable[ldquosecondrdquo] = ldquothis

is second associative

element of an arrayrdquo

$variable[ldquoelementrdquo][ldquoscorerdquo] = 80

$variable[ldquosecondrdquo][5] = ldquothis is

the 6 element within the second

elementrdquo

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoinsert file name

herecsvrdquo)

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoexamplecsvrdquo)

print_r($csv)

ltphp

include_once restclientphp

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

$response = $api-gtget(count array(v =gt 10 url

=gthttpwwwmarketingfestivalcz))

if($response-gtinfo-gthttp_code == 200)

$twitterResponse = $response-gtdecode_response()

echo tweet count is $twitterResponse-gtcount

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 16: Mike King - Storytelling by Numbers MKTFEST 2014

$count = 40

For ($x=1$xlt($count+1)$x++)

echo $x ldquoltBrgtrdquo

$count = 40

For ($x=1$xlt$count$x++)

for ($y=0$ylt10$y++)

echo $x+$y ldquoltBrgtrdquo

$variable[0] = ldquothis is

first element of an arrayrdquo

$variable[1] = ldquothis is

second element of an

arrayrdquo

$variable[ldquoelementrdquo] = ldquothis

is first associative element

of an arrayrdquo

$variable[ldquosecondrdquo] = ldquothis

is second associative

element of an arrayrdquo

$variable[ldquoelementrdquo][ldquoscorerdquo] = 80

$variable[ldquosecondrdquo][5] = ldquothis is

the 6 element within the second

elementrdquo

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoinsert file name

herecsvrdquo)

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoexamplecsvrdquo)

print_r($csv)

ltphp

include_once restclientphp

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

$response = $api-gtget(count array(v =gt 10 url

=gthttpwwwmarketingfestivalcz))

if($response-gtinfo-gthttp_code == 200)

$twitterResponse = $response-gtdecode_response()

echo tweet count is $twitterResponse-gtcount

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 17: Mike King - Storytelling by Numbers MKTFEST 2014

$count = 40

For ($x=1$xlt$count$x++)

for ($y=0$ylt10$y++)

echo $x+$y ldquoltBrgtrdquo

$variable[0] = ldquothis is

first element of an arrayrdquo

$variable[1] = ldquothis is

second element of an

arrayrdquo

$variable[ldquoelementrdquo] = ldquothis

is first associative element

of an arrayrdquo

$variable[ldquosecondrdquo] = ldquothis

is second associative

element of an arrayrdquo

$variable[ldquoelementrdquo][ldquoscorerdquo] = 80

$variable[ldquosecondrdquo][5] = ldquothis is

the 6 element within the second

elementrdquo

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoinsert file name

herecsvrdquo)

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoexamplecsvrdquo)

print_r($csv)

ltphp

include_once restclientphp

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

$response = $api-gtget(count array(v =gt 10 url

=gthttpwwwmarketingfestivalcz))

if($response-gtinfo-gthttp_code == 200)

$twitterResponse = $response-gtdecode_response()

echo tweet count is $twitterResponse-gtcount

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 18: Mike King - Storytelling by Numbers MKTFEST 2014

$variable[0] = ldquothis is

first element of an arrayrdquo

$variable[1] = ldquothis is

second element of an

arrayrdquo

$variable[ldquoelementrdquo] = ldquothis

is first associative element

of an arrayrdquo

$variable[ldquosecondrdquo] = ldquothis

is second associative

element of an arrayrdquo

$variable[ldquoelementrdquo][ldquoscorerdquo] = 80

$variable[ldquosecondrdquo][5] = ldquothis is

the 6 element within the second

elementrdquo

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoinsert file name

herecsvrdquo)

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoexamplecsvrdquo)

print_r($csv)

ltphp

include_once restclientphp

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

$response = $api-gtget(count array(v =gt 10 url

=gthttpwwwmarketingfestivalcz))

if($response-gtinfo-gthttp_code == 200)

$twitterResponse = $response-gtdecode_response()

echo tweet count is $twitterResponse-gtcount

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 19: Mike King - Storytelling by Numbers MKTFEST 2014

$variable[ldquoelementrdquo] = ldquothis

is first associative element

of an arrayrdquo

$variable[ldquosecondrdquo] = ldquothis

is second associative

element of an arrayrdquo

$variable[ldquoelementrdquo][ldquoscorerdquo] = 80

$variable[ldquosecondrdquo][5] = ldquothis is

the 6 element within the second

elementrdquo

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoinsert file name

herecsvrdquo)

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoexamplecsvrdquo)

print_r($csv)

ltphp

include_once restclientphp

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

$response = $api-gtget(count array(v =gt 10 url

=gthttpwwwmarketingfestivalcz))

if($response-gtinfo-gthttp_code == 200)

$twitterResponse = $response-gtdecode_response()

echo tweet count is $twitterResponse-gtcount

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 20: Mike King - Storytelling by Numbers MKTFEST 2014

$variable[ldquoelementrdquo][ldquoscorerdquo] = 80

$variable[ldquosecondrdquo][5] = ldquothis is

the 6 element within the second

elementrdquo

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoinsert file name

herecsvrdquo)

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoexamplecsvrdquo)

print_r($csv)

ltphp

include_once restclientphp

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

$response = $api-gtget(count array(v =gt 10 url

=gthttpwwwmarketingfestivalcz))

if($response-gtinfo-gthttp_code == 200)

$twitterResponse = $response-gtdecode_response()

echo tweet count is $twitterResponse-gtcount

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 21: Mike King - Storytelling by Numbers MKTFEST 2014

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoinsert file name

herecsvrdquo)

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoexamplecsvrdquo)

print_r($csv)

ltphp

include_once restclientphp

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

$response = $api-gtget(count array(v =gt 10 url

=gthttpwwwmarketingfestivalcz))

if($response-gtinfo-gthttp_code == 200)

$twitterResponse = $response-gtdecode_response()

echo tweet count is $twitterResponse-gtcount

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 22: Mike King - Storytelling by Numbers MKTFEST 2014

ltphp

include_once ldquocsv-handlersphprdquo

$csv = csv_to_array(ldquoexamplecsvrdquo)

print_r($csv)

ltphp

include_once restclientphp

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

$response = $api-gtget(count array(v =gt 10 url

=gthttpwwwmarketingfestivalcz))

if($response-gtinfo-gthttp_code == 200)

$twitterResponse = $response-gtdecode_response()

echo tweet count is $twitterResponse-gtcount

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 23: Mike King - Storytelling by Numbers MKTFEST 2014

ltphp

include_once restclientphp

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

$response = $api-gtget(count array(v =gt 10 url

=gthttpwwwmarketingfestivalcz))

if($response-gtinfo-gthttp_code == 200)

$twitterResponse = $response-gtdecode_response()

echo tweet count is $twitterResponse-gtcount

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 24: Mike King - Storytelling by Numbers MKTFEST 2014

if($response-gtinfo-gthttp_code == 200)

$twitterResponse = $response-gtdecode_response()

echo tweet count is $twitterResponse-gtcount

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 25: Mike King - Storytelling by Numbers MKTFEST 2014

ltphp

include_once ldquocsv-handlersphprdquo

makeCSV ($csv ldquotestcsvrdquo)

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 26: Mike King - Storytelling by Numbers MKTFEST 2014

ltphp

include_once restclientphp

include_once csv-handlersphp

$csv = csv_to_array(urlscsv)

$countOfCsvLines = count($csv)

$api = new RestClient(array(

base_url =gt httpurlsapitwittercom1urls

format =gt json

))

echo ltTablegtlttrgtlttdgtURLlttdgtlttdgtTweet Countlttdgtlttrgt

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 27: Mike King - Storytelling by Numbers MKTFEST 2014

for($x=0$xlt$countOfCsvLines$x++)

echo lttrgt

$result = $api-gtget(count array(v =gt 10 url

=gt$csv[$x][urls]))

echo lttdgt$csv[$x][urls]lttdgt

if($result-gtinfo-gthttp_code == 200)

$twitterResponse = $result-gtdecode_response()

$socialShares[$x][urls] = $csv[$x][urls]

$socialShares[$x][tweetCount] =

$twitterResponse-gtcount

else

$socialShares[$x][tweetCount] = unknown

echo lttdgt$socialShares[$x][tweetCount]lttdgt

echo lttrgt

echo ltTablegt

makeCSV($socialSharessharescsv)

echo lta href=sharescsvgtSharescsvltagt

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 28: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 29: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 30: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 31: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 32: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 33: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 34: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 35: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 36: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 37: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 38: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 39: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 40: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 41: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 42: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 43: Mike King - Storytelling by Numbers MKTFEST 2014

X-Quota-Remaining

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 44: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 45: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 46: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 47: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 48: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 49: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 50: Mike King - Storytelling by Numbers MKTFEST 2014

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 51: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 52: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 53: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 54: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 55: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 56: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 57: Mike King - Storytelling by Numbers MKTFEST 2014

iPullRank

THANK YOU ANY QUESTIONS

Page 58: Mike King - Storytelling by Numbers MKTFEST 2014

THANK YOU ANY QUESTIONS