-
Notifications
You must be signed in to change notification settings - Fork 0
Get WattTimeAuthToken
github-actions edited this page Mar 15, 2023
·
2 revisions
external help file: PSWattTime-help.xml Module Name: PSWattTime online version: https://github.com/cloudyspells/PSWattTime/blob/main/docs/Get-WattTimeAuthToken.md schema: 2.0.0
Get an authentication token for the WattTime API
Get-WattTimeAuthToken [-Username] <String> [-Password] <String> [<CommonParameters>]
Get an authentication token for the WattTime API with a specified username and password
Get-WattTimeAuthToken -Username 'username' -Password 'password'
The username to use for authentication
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The password to use for authentication
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
This token should be used by the -AuthToken parameter of the other functions in this module
https://github.com/cloudyspells/PSWattTime/blob/main/docs/Get-WattTimeAuthToken.md
https://www.watttime.org/api-documentation/#login-amp-obtain-token