Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit 96f2593

Browse files
author
Mario Bašić
committed
Merge pull request #4 from stemsmit/patch-1
URI change for dailySummary to match Wakatime API
2 parents e159ab0 + 3eedc6d commit 96f2593

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
**WakaTime API for PHP**
66

7-
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.
7+
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.
88

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

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

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

5757
#### dailySummary
5858

5959
```php
6060
$wakatime->dailySummary($startDate, $endDate, $project = null)
6161
```
6262

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

6565
#### stats
6666

6767
```php
6868
$wakatime->stats($range, $project = null)
6969
```
7070

71-
See: https://wakatime.com/developers#stats for details.
71+
See: https://wakatime.com/developers/#stats for details.
7272

7373
### Additional methods
7474

src/WakaTime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function dailySummary($startDate, $endDate, $project = null)
6363
{
6464
if ($project !== null) $project = "&project={$project}";
6565

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

6969
/**

0 commit comments

Comments
 (0)