Skip to content

Commit

Permalink
Simplified report center usage
Browse files Browse the repository at this point in the history
  • Loading branch information
martinamps committed Mar 1, 2013
1 parent 2abd554 commit efd71da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ if (!$api->isLoggedIn() && !$api->login()) {

$params = [
'reportcenter' => true,
'token' => $api->dashboardToken(),
'start_date' => '2013-02-22',
'end_date' => '2013-03-01',
'timezone' => 'Pacific+Time+(US+%26+Canada)'
Expand Down
1 change: 1 addition & 0 deletions shopify.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public function doRequest($method, $function, $parameters) {
$url = self::_REPORT_CENTER . $function;
$reportCenter = true;
$parameters['callback'] = 'fake_function';
$parameters['token'] = $this->dashboardToken();
unset($parameters['reportcenter']);
} else {
$url = (!filter_var($function, FILTER_VALIDATE_URL) ? $this->store : '') . $function;
Expand Down

0 comments on commit efd71da

Please sign in to comment.