godaw module uses OAuth 2.0 bearer authentication to access DELL Warranty API.
User should retrieve its id and secret from TechDirect API portal - https://techdirect.dell.com/portal.30/Login.aspx
NewOAuth2Client is a function that returns an authorized client for DELL API use. It needs two parameters:
- clientID
- clientSecret
godaw module implements :
- Asset header with client method getAssetHeader
- Asset warranty with client method getAssetEntitlements
- Asset details with client method getAssetComponents
To get its bearer token, the CLI uses two operating system variables :
- DAW_API_CLIENT_ID
- DAW_API_CLIENT_SECRET