Menu

## GraphRequestUtil
in package

GraphRequestUtil.php : 23

Class GraphRequestUtil

##### Tags

copyright

  2021 Microsoft Corporation

license

  https://opensource.org/licenses/MIT MIT License

link
  https://developer.microsoft.com/graph

### Table of Contents

getQueryParamConcatenator() : string
  Determine correct symbol to add before concatenating query parameters to $url
getRequestUri() : UriInterface
  Returns full request URI by resolving $baseUrl and $endpoint based on RFC 3986 Prepends $apiVersion to $endpoint if $baseUrl contains a national cloud host $endpoint can be a full URI with a national cloud host
isValidBaseUrl() : bool
  Check whether $urlParts meet criteria for a valid base url

### Methods

#### getQueryParamConcatenator()

GraphRequestUtil.php : 70

Determine correct symbol to add before concatenating query parameters to $url

`public static getQueryParamConcatenator(Uri $url) : string`

##### Parameters

$url : Uri

##### Return values

string —

#### getRequestUri()

GraphRequestUtil.php : 36

Returns full request URI by resolving $baseUrl and $endpoint based on RFC 3986 Prepends $apiVersion to $endpoint if $baseUrl contains a national cloud host $endpoint can be a full URI with a national cloud host

`public static getRequestUri(string $baseUrl, string $endpoint[, string $apiVersion = "v1.0" ]) : UriInterface`

##### Parameters

$baseUrl : string

  if empty, is overwritten with $client's national cloud

$endpoint : string

  can be a full URL

$apiVersion : string = "v1.0"

##### Tags

throws
  InvalidArgumentException

##### Return values

UriInterface —

#### isValidBaseUrl()

GraphRequestUtil.php : 59

Check whether $urlParts meet criteria for a valid base url

`public static isValidBaseUrl(array<string, string>|false $urlParts) : bool`

##### Parameters

$urlParts : array<string, string>|false

  return value of parse_url()

##### Return values

bool —

## Search results