Skip to content

Commit

Permalink
Merge pull request #4 from stemsmit/patch-1
Browse files Browse the repository at this point in the history
URI change for dailySummary to match Wakatime API
  • Loading branch information
Mario Bašić committed Nov 25, 2015
2 parents e159ab0 + 3eedc6d commit 96f2593
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

**WakaTime API for PHP**

This is a PHP package for WakaTime API. It offers all the methods from [WakaTime API](https://wakatime.com/api) with additional methods for total hours logged.
This is a PHP package for WakaTime API. It offers all the methods from [WakaTime API](https://wakatime.com/developers) with additional methods for total hours logged.

If you are using [Laravel](http://laravel.com/) check out [WakaTime Reports and Laravel](http://mariobasic.com/wakatime-reports-and-laravel/) on my blog.

Expand Down Expand Up @@ -52,23 +52,23 @@ You can get your Api Key from your [settings page](https://wakatime.com/settings
$wakatime->currentUser()
```

See: https://wakatime.com/api#users-current for details.
See: https://wakatime.com/developers/#users for details.

#### dailySummary

```php
$wakatime->dailySummary($startDate, $endDate, $project = null)
```

See: https://wakatime.com/api#summary-daily for details.
See: https://wakatime.com/developers/#summaries for details.

#### stats

```php
$wakatime->stats($range, $project = null)
```

See: https://wakatime.com/developers#stats for details.
See: https://wakatime.com/developers/#stats for details.

### Additional methods

Expand Down
2 changes: 1 addition & 1 deletion src/WakaTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function dailySummary($startDate, $endDate, $project = null)
{
if ($project !== null) $project = "&project={$project}";

return $this->guzzle->get("{$this->url}/summaries?start={$startDate}&end={$endDate}&api_key={$this->getApiKey()}" . $project)->json();
return $this->guzzle->get("{$this->url}/users/current/summaries?start={$startDate}&end={$endDate}&api_key={$this->getApiKey()}" . $project)->json();
}

/**
Expand Down

0 comments on commit 96f2593

Please sign in to comment.