diff --git a/examples/example-daterange.php b/examples/example-daterange.php new file mode 100644 index 0000000..4268662 --- /dev/null +++ b/examples/example-daterange.php @@ -0,0 +1,23 @@ +LogIn($email, $passwd) === true) + { + $sites = $gdata->GetSites(); + foreach($sites as $site) + { + $gdata->SetDaterange($daterange); + $gdata->DownloadCSV($site); + } + } + } catch (Exception $e) { + die($e->getMessage()); + } +?> \ No newline at end of file diff --git a/examples/example-downloaded.php b/examples/example-downloaded.php new file mode 100644 index 0000000..a730541 --- /dev/null +++ b/examples/example-downloaded.php @@ -0,0 +1,25 @@ +LogIn($email, $passwd) === true) + { + $sites = $gdata->GetSites(); + foreach($sites as $site) + { + $gdata->DownloadCSV($site, "./csv"); + } + + $files = $gdata->GetDownloadedFiles(); + foreach($files as $file) + { + print "Saved $file
"; + } + } + } catch (Exception $e) { + die($e->getMessage()); + } +?> \ No newline at end of file diff --git a/examples/example-language.php b/examples/example-language.php new file mode 100644 index 0000000..93af2b4 --- /dev/null +++ b/examples/example-language.php @@ -0,0 +1,34 @@ +LogIn($email, $passwd) === true) + { + $gdata->SetLanguage($language); + $gdata->SetDaterange($daterange); + $gdata->SetTables($tables); + + $sites = $gdata->GetSites(); + foreach($sites as $site) + { + $gdata->DownloadCSV($site); + } + } + } catch (Exception $e) { + die($e->getMessage()); + } +?> \ No newline at end of file diff --git a/examples/example-simple.php b/examples/example-simple.php new file mode 100644 index 0000000..9f39a92 --- /dev/null +++ b/examples/example-simple.php @@ -0,0 +1,18 @@ +LogIn($email, $passwd) === true) + { + $gdata->DownloadCSV($website); + } + } catch (Exception $e) { + die($e->getMessage()); + } +?> \ No newline at end of file diff --git a/examples/example-tables.php b/examples/example-tables.php new file mode 100644 index 0000000..4b20e58 --- /dev/null +++ b/examples/example-tables.php @@ -0,0 +1,24 @@ +LogIn($email, $passwd) === true) + { + $gdata->SetTables($tables); + $gdata->DownloadCSV($website); + } + } catch (Exception $e) { + die($e->getMessage()); + } +?> \ No newline at end of file