Skip to content

Latest commit

 

History

History
77 lines (55 loc) · 1.86 KB

Get-WattTimeAuthToken.md

File metadata and controls

77 lines (55 loc) · 1.86 KB
external help file Module Name online version schema
PSWattTime-help.xml
PSWattTime
2.0.0

Get-WattTimeAuthToken

SYNOPSIS

Get an authentication token for the WattTime API

SYNTAX

Get-WattTimeAuthToken [-Username] <String> [-Password] <String> [<CommonParameters>]

DESCRIPTION

Get an authentication token for the WattTime API with a specified username and password

EXAMPLES

EXAMPLE 1

Get-WattTimeAuthToken -Username 'username' -Password 'password'

PARAMETERS

-Username

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

-Password

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

a string containing the authentication token for the WattTime API

NOTES

This token should be used by the -AuthToken parameter of the other functions in this module

RELATED LINKS

https://github.com/cloudyspells/PSWattTime/blob/main/docs/Get-WattTimeAuthToken.md

https://www.watttime.org/api-documentation/#login-amp-obtain-token