0

I'm using Guzzle to access Gitlab's API, i'm trying to get my project statistics but i don't know where i should use the parameter "statistics".

That's what i am doing so far:

$client = new Client(['base_uri' => 'https://gitlab.com/']);
$projects = $client->request('GET', 'api/v4/projects/PROJECT-ID',
[
    'headers' => [
        'PRIVATE-TOKEN'     => 'TOKEN',
        'statistics'        => 'true'
        ],
]);

API docs: https://docs.gitlab.com/ce/api/projects.html#get-single-project

Thank you.

Wuzi
  • 386
  • 7
  • 17

1 Answers1

5

edit

Try this:

/projects/PROJECT_ID?statistics=true