storytelling by numbers

126

Upload: michael-king

Post on 14-Jun-2015

5.976 views

Category:

Data & Analytics


0 download

DESCRIPTION

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

TRANSCRIPT

Page 1: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

$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: Storytelling By Numbers

+

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: Storytelling By Numbers

$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: Storytelling By Numbers

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: Storytelling By Numbers

$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: Storytelling By Numbers

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: Storytelling By Numbers

$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: Storytelling By Numbers

$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: Storytelling By Numbers

$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: Storytelling By Numbers

$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: Storytelling By Numbers

$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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

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: Storytelling By Numbers

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 45: Storytelling By Numbers

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 46: Storytelling By Numbers

iPullRank

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 47: Storytelling By Numbers

iPullRank

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 48: Storytelling By Numbers

iPullRank

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 49: Storytelling By Numbers

iPullRank

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 50: Storytelling By Numbers

ltphp

include_once ldquordquo

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 51: Storytelling By Numbers

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 52: Storytelling By Numbers

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 53: Storytelling By Numbers

iPullRank

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 54: Storytelling By Numbers

iPullRank

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 55: Storytelling By Numbers

iPullRank

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 56: Storytelling By Numbers

iPullRank

iPullRank

THANK YOU ANY QUESTIONS

Page 57: Storytelling By Numbers

iPullRank

THANK YOU ANY QUESTIONS

Page 58: Storytelling By Numbers

THANK YOU ANY QUESTIONS