Thanks for the solution. but I have another issue.
I used this script also to get the switch port detail
$apiKey = "{APIKEY}"
$url = "https://n121.meraki.com/api/v1/networks/{networkID}/clients/{clientID}"
$headers = @{
"X-Cisco-Meraki-API-Key" = $apikey
}
$response = Invoke-RestMethod -Uri $url -Headers $headers -Method Get
$response
But I didn't get the any port details
OUTPUT:
Please help me in this