Skip to content

Commit acb8b0f

Browse files
authored
Modified $request variable from single string to double to accept the $ZoomURI variable.
1 parent ff16a15 commit acb8b0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PSZoom/Public/Users/New-ZoomUser.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function New-ZoomUser {
8888
)
8989

9090
process {
91-
$request = [System.UriBuilder]'https://api.$ZoomURI/v2/users'
91+
$request = [System.UriBuilder]"https://api.$ZoomURI/v2/users"
9292

9393
#Request Body
9494
$requestBody = @{
@@ -151,7 +151,7 @@ function New-ZoomUser {
151151
$requestBody = $requestBody | ConvertTo-Json
152152

153153
if ($PScmdlet.ShouldProcess) {
154-
$response = Invoke-ZoomRestMethod -Uri $request.Uri -Body $RequestBody -Method POST
154+
$response = Invoke-ZoomRestMethod -Uri $request.Uri -Body $requestBody -Method POST
155155

156156
if ($passthru) {
157157
Write-Output $Email

0 commit comments

Comments
 (0)