Set-TwitterAuthentication
SYNOPSIS
Set the session credential variable and export verified credentials to an encrypted file.
SYNTAX
Set-TwitterAuthentication [[-ApiKey] <SecureString>] [[-ApiSecret] <SecureString>]
[[-AccessToken] <SecureString>] [[-AccessTokenSecret] <SecureString>] [<CommonParameters>]
DESCRIPTION
Set the session credential variable and export verified credentials to an encrypted file.
The credentials are the API Key, API Key Secret, Access Token, Access Token Secret, and, if present, the bearer token for OAuth 2.0.
The provided credentials are validated using Test-TwitterAuthentication and, if valid, are used to request the bearer token via Set-TwitterBearerToken. This command also updates the BluebirdPS Configuration with the authenticating user's Id and UserName. Lastly, it exports the updated session credential variable using Export-TwitterAuthentication.
EXAMPLES
Example 1
PS > Set-TwitterAuthentication
API Key: *************************
API Secret: **************************************************
Access Token: **************************************************
Access Token Secret: *********************************************
Set the credentials and save to an encrypted file.
PARAMETERS
-ApiKey
The API key, also sometimes called the consumer key.
Type: SecureString
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ApiSecret
The API secret, also sometimes called the consumer secret.
Type: SecureString
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-AccessToken
The access token for the user.
Type: SecureString
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-AccessTokenSecret
The access token secret for the user.
Type: SecureString
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
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.