< Back
Get-OAuthAuthorization
Post
NAME Get-OAuthAuthorization
SYNOPSIS
This function is used to create the signature and authorization headers needed to pass to OAuth
It has been tested with v1.1 of the API.
SYNTAX
Get-OAuthAuthorization [-HttpEndPoint] <String> [-HttpVerb] <String> [-ApiParameters] <Hashtable>
[<CommonParameters>]
DESCRIPTION
PARAMETERS
-HttpEndPoint <String>
This is the URI that you must use to issue calls to the API.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-HttpVerb <String>
The HTTP verb (either GET or POST) that the specific API uses.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ApiParameters <Hashtable>
A hashtable of parameters the specific Twitter API you're building the authorization
string for needs to include in the signature
Required? true
Position? 3
Default value
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.Management.Automation.PSCustomObject
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-OAuthAuthorization -ApiParameters @{'status' = 'hello' } -HttpVerb GET -HttpEndPoint
'https://api.twitter.com/1.1/statuses/update.json'
This example gets the authorization string needed in the HTTP GET method to send send a tweet 'hello'
RELATED LINKS
SYNOPSIS
This function is used to create the signature and authorization headers needed to pass to OAuth
It has been tested with v1.1 of the API.
SYNTAX
Get-OAuthAuthorization [-HttpEndPoint] <String> [-HttpVerb] <String> [-ApiParameters] <Hashtable>
[<CommonParameters>]
DESCRIPTION
PARAMETERS
-HttpEndPoint <String>
This is the URI that you must use to issue calls to the API.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-HttpVerb <String>
The HTTP verb (either GET or POST) that the specific API uses.
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ApiParameters <Hashtable>
A hashtable of parameters the specific Twitter API you're building the authorization
string for needs to include in the signature
Required? true
Position? 3
Default value
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.Management.Automation.PSCustomObject
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-OAuthAuthorization -ApiParameters @{'status' = 'hello' } -HttpVerb GET -HttpEndPoint
'https://api.twitter.com/1.1/statuses/update.json'
This example gets the authorization string needed in the HTTP GET method to send send a tweet 'hello'
RELATED LINKS