Skip to content

Commit 661bbe5

Browse files
authored
Removed body from GET requests
1 parent 71aaade commit 661bbe5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/TogglApi.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ public function getDashboardForWorkspace($workspaceId)
420420
*/
421421
public function getMe($related = false)
422422
{
423-
return $this->GET('me', [], ['with_related_data' => $related]);
423+
return $this->GET('me', ['with_related_data' => $related]);
424424
}
425425

426426
/**
@@ -868,7 +868,7 @@ public function getTimeEntries()
868868
*/
869869
public function getTimeEntriesInRange($start, $end)
870870
{
871-
return $this->GET('time_entries', [], ['start_date' => $start, 'end_date' => $end]);
871+
return $this->GET('time_entries', ['start_date' => $start, 'end_date' => $end]);
872872
}
873873

874874
/**
@@ -918,10 +918,10 @@ public function deleteTimeEntry($timeEntryId)
918918
*
919919
* @return bool|mixed|object
920920
*/
921-
private function GET($endpoint, $body = array(), $query = array())
921+
private function GET($endpoint, $query = array())
922922
{
923923
try {
924-
$response = $this->client->get($endpoint, ['body' => json_encode($body), 'query' => $query]);
924+
$response = $this->client->get($endpoint, ['query' => $query]);
925925

926926
return $this->checkResponse($response);
927927
} catch (ClientException $e) {

0 commit comments

Comments
 (0)