Skip to content

Instantly share code, notes, and snippets.

Last active Aug 29, 2015
What would you like to do?
Retrieve List resource properties
param (
Function Get-SPOList([Uri]$WebUri,[string]$ClientId,[string]$ClientSecret,[Uri]$ListTitle)
$accessToken = Get-SPOAccessToken -ClientId $ClientId -ClientSecret $ClientSecret -WebUri $WebUri
$endpointUri = "$WebUri/_api/web/lists/getbytitle('$ListTitle')"
$data = Invoke-SPORestMethod -Uri $endpointUri -AccessToken $accessToken
return $data.d
Get-SPOList -WebUri $WebUri -ClientId $ClientId -ClientSecret $ClientSecret -ListTitle $ListTitle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment