Skip to content

Commit a9effcc

Browse files
committed
Fixed "tables" example.
1 parent 04eeb3f commit a9effcc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

examples/example-tables.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111
# Valid values are 'TOP_PAGES', 'TOP_QUERIES',
1212
# 'CONTENT_ERRORS', 'CONTENT_KEYWORDS', 'INTERNAL_LINKS',
1313
# 'EXTERNAL_LINKS' and 'SOCIAL_ACTIVITY'.
14-
$tables = array('TOP_QUERIES');
14+
$tableName = 'TOP_QUERIES';
1515

16-
$client = Gwt_Client::create($email, $passwd)
16+
$client = Gwt_Client::create($email, $password)
1717
->setDaterange(
1818
new DateTime('-10 day', new DateTimeZone('UTC')),
1919
new DateTime('-9 day', new DateTimeZone('UTC'))
2020
)
21+
->setWebsite($website)
2122
->addProcessor(
2223
Gwt_Processor_CsvWriter::factory(array(
2324
'savePath' => '.',
@@ -27,7 +28,8 @@
2728
)
2829
;
2930

30-
$filenames = $client->getTableData($tableName);
31+
echo $client->getTableData($tableName);
32+
3133

3234
} catch (Exception $e) {
3335
die($e->getMessage());

0 commit comments

Comments
 (0)