Documentation

GraphRequestUtil
in package

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()

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

public static getQueryParamConcatenator(Uri $url) : string
Parameters
$url : Uri
Return values
string

getRequestUri()

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()

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