cybercog/youtrack-rest-php

GET request error

rickeyf opened this issue · 0 comments

In example for time tracking of issue we refer to the next request
GET /api/issues/{issueID}/timeTracking?{fields}

For GET request we need send params in 'query' key for Guzzle Http, but in function buildOptions we can see that it is impossible to do.
image

In result we got wrong request
image

The solution is to change the $defaultOptions parameter
$defaultOptions = [ 'headers' => $this->buildHeaders() ];
and add additional action for value $options