Skip to content
/ godaw Public

godaw is a golang module to get information from DELL API warranty

License

Notifications You must be signed in to change notification settings

ccin2p3/godaw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

godaw

Authorization

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

Operations

godaw module implements :

  • Asset header with client method getAssetHeader
  • Asset warranty with client method getAssetEntitlements
  • Asset details with client method getAssetComponents

CLI godaw

To get its bearer token, the CLI uses two operating system variables :

  • DAW_API_CLIENT_ID
  • DAW_API_CLIENT_SECRET

About

godaw is a golang module to get information from DELL API warranty

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages