APSConnection

The object provides the necessary information for accessing the Autodesk Platform Services (APS) endpoints.

A global $APSConnection variable becomes available after a successful Connect-APS invocation.

Syntax

$apsConnection.Headers

Following properties are available :

Type

Name

Description

Access type

string

Url

Base URL for APS endpoint requests: https://developer.api.autodesk.com/

read-only

string

User

Email address of the Autodesk account performing the APS requests

read-only

Hashtable

Headers

Contains the required Authorization header in the format Bearer <Acces Token>.
Ready to use with the Invoke-RestMethod -Headers parameter — see example usage

read-only

IHubs

Hubs

A collection of all Hubs the current Autodesk ID is a member of

read-only

Additionally, the following method is available:

Type

Name

Description

Access type

string

GetAccessToken()

Returns a 3-legged OAuth access token, automatically refreshed when expired

read-only

Example

Url     : https://developer.api.autodesk.com/
User    : [email protected]
Headers : {[Authorization, Bearer eyJhbGciOiJIUzI1NiIsImtpZCI6Imp3dF9zeW1tZXRyaWNfa2V5In0.eyJjbGllbnRfaWQiOiJua2VyWlFoQUZFZ3Q5ZjIzSms4YVE2QjJOZVJhTFNqVSIsImV4cCI6MTU3NDI2OTc2MSwic2NvcGUiOlsidmlld2FibGVzOnJlYWQiLCJkYXRhOnJlYWQiLCJkYXRhOndyaXRlIiwiZGF0YTpjcmVhdGUiLCJkYXRhOnNlYXJjaCJdLCJhdWQiOiJodHRwczovL2F1dG9kZXNrLmNvbS9hdWQvand0ZXhwNjAiLCJqdGkiOiJ1Q1c1UVlMbWhjMFdwYTRjOWY5ZGxuVHVVTUxwWmtYSlRWbTdoRTdZeFRQVWhwdlNEWnFPU3ZZSXFoSmRFV2JtIn0.xe2-CYW3HFmO1x0figGuFVKFeS9_URlQsLjhGXyrK8g]}
Hubs    : {John's Hub, John's Team, build_coolorange}