Skip to content

Add the ability to set optional headers on the requests

Closes #3336679

Should allow you to now set headers when needed for example

// add ConsistencyLevel: eventual to the header
$headers = [
  'ConsistencyLevel' => 'eventual',
];
$UsersData['manager-tree'] = $this->o365Graph->getGraphData('/users/' . $user_id . '/?expand=manager($levels=50;$select=id,displayName)&$count=true', 'GET', FALSE, 'beta', [], FALSE, $headers);

Merge request reports