File tree Expand file tree Collapse file tree 4 files changed +45
-4
lines changed Expand file tree Collapse file tree 4 files changed +45
-4
lines changed Original file line number Diff line number Diff line change 4
4
#>
5
5
6
6
7
- # Get list of projects using OData/ CSOM ReST API
7
+ # Get list of projects using CSOM ReST API
8
8
param
9
9
(
10
10
# SharepointOnline project site collection URL
17
17
Set-SPOAuthenticationTicket $siteUrl
18
18
Set-DigestValue $siteUrl
19
19
20
- " CSOM"
21
20
# Get list of projects using CSOM ReST API
22
21
Get-ReSTRequest $SiteUrl " ProjectServer/Projects"
Original file line number Diff line number Diff line change 4
4
#>
5
5
6
6
7
- # Get list of projects using OData/CSOM ReST API
7
+ # Get list of projects using OData ReST API
8
8
param
9
9
(
10
10
# SharepointOnline project site collection URL
@@ -18,5 +18,4 @@ Set-SPOAuthenticationTicket $siteUrl
18
18
Set-DigestValue $siteUrl
19
19
20
20
# Get list of projects using OData ReST API
21
- " OData"
22
21
Get-ReSTRequest $SiteUrl " ProjectData/Projects"
Original file line number Diff line number Diff line change
1
+ <#
2
+ Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
3
+ See LICENSE in the project root for license information.
4
+ #>
5
+
6
+
7
+ # Get list of resources using CSOM ReST API
8
+ param
9
+ (
10
+ # SharepointOnline project site collection URL
11
+ $SiteUrl = $ (throw " SiteUrl parameter is required" )
12
+ )
13
+ # Load ReST helper methods
14
+ . .\ReST.ps1
15
+
16
+ # Set up the request authentication
17
+ Set-SPOAuthenticationTicket $siteUrl
18
+ Set-DigestValue $siteUrl
19
+
20
+ # Get list of projects using CSOM ReST API
21
+ Get-ReSTRequest $SiteUrl " ProjectServer/EnterpriseResources"
Original file line number Diff line number Diff line change
1
+ <#
2
+ Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
3
+ See LICENSE in the project root for license information.
4
+ #>
5
+
6
+
7
+ # Get list of resources using CSOM ReST API
8
+ param
9
+ (
10
+ # SharepointOnline project site collection URL
11
+ $SiteUrl = $ (throw " SiteUrl parameter is required" ),
12
+ $ResourceId = $ (throw " ResourceId paramter is required" )
13
+ )
14
+ # Load ReST helper methods
15
+ . .\ReST.ps1
16
+
17
+ # Set up the request authentication
18
+ Set-SPOAuthenticationTicket $siteUrl
19
+ Set-DigestValue $siteUrl
20
+
21
+ # Get list of projects using CSOM ReST API
22
+ Get-ReSTRequest $SiteUrl " ProjectServer/EnterpriseResources('$ ( $ResourceId ) ')/Assignments"
You can’t perform that action at this time.
0 commit comments