< Back

Get-PSAuthorizationString

Sun Jan 19, 2020 6:06 pm

NAME Get-PSAuthorizationString



SYNOPSIS

Create an OAuth 1.0 Authorization string for use in an HTTP request.





SYNTAX

Get-PSAuthorizationString [-Uri] <System.Uri> [-OauthConsumerKey] <System.String> [-OauthConsumerSecret]

<System.Security.SecureString> [[-OauthAccessToken] <System.String>] [[-OauthAccessTokenSecret]

<System.Security.SecureString>] [[-OauthSignatureMethod] <System.String>] [[-OauthVersion] <System.String>]

[[-OauthParameters] <System.Collections.Hashtable>] [[-Method] <System.String>] [<CommonParameters>]





DESCRIPTION

{{ Fill in the Description }}





PARAMETERS

-Method <System.String>

Specifies the method used for the web request.



Required? false

Position? 9

Default value Get

Accept pipeline input? False

Accept wildcard characters? false



-OauthAccessToken <System.String>

The OAuth access token to use for the signature.



Required? false

Position? 4

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-OauthAccessTokenSecret <System.Security.SecureString>

The OAuth access token secret to use for the signature.



Required? false

Position? 5

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-OauthConsumerKey <System.String>

The OAuth consumer key to use for the signature.



Required? true

Position? 2

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-OauthConsumerSecret <System.Security.SecureString>

The OAuth consumer secret to use for the signature.



Required? true

Position? 3

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-OauthParameters <System.Collections.Hashtable>

Any additional parameters to include in the OAuth signature.



Required? false

Position? 8

Default value @{ }

Accept pipeline input? False

Accept wildcard characters? false



-OauthSignatureMethod <System.String>

The OAuth signature hash method to use.



Required? false

Position? 6

Default value HMAC-SHA1

Accept pipeline input? False

Accept wildcard characters? false



-OauthVersion <System.String>

The OAuth signature version to use.



Required? false

Position? 7

Default value 1.0

Accept pipeline input? False

Accept wildcard characters? false



-Uri <System.Uri>

Specifies the Uniform Resource Identifier (URI) of the Internet resource to which the web request is sent.



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.String







NOTES









-------------------------- Example 1 --------------------------



PS C:\\> {{ Add example code here }}



{{ Add example description here }}



RELATED LINKS