< Back

Get-TechDataApiHeaders

Sun Jan 12, 2020 3:17 pm

NAME Get-TechDataApiHeaders



SYNOPSIS

This function retrieves the Tech Data API headers using admin account credentials or a MSPComplete Endpoint.





SYNTAX

Get-TechDataApiHeaders -url <String> -clientID <String> -clientSecret <String> -grantType <String> -soin <String>

[<CommonParameters>]



Get-TechDataApiHeaders -endpoint <Object> [<CommonParameters>]





DESCRIPTION

This function retrieves the Tech Data API request headers using admin account credentials or a MSPComplete

Endpoint.

It returns the request headers if successful, null otherwise.





PARAMETERS

-url <String>

The Tech Data authentication URL.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-clientID <String>

The Tech Data client ID.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-clientSecret <String>

The Tech Data client secret.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-grantType <String>

The Tech Data grant type.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-soin <String>

The Tech Data StreamOne Identification Number (SOIN)



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-endpoint <Object>

The MSPComplete Endpoint containing the Tech Data authentication URL as its "Url" property, the

Tech Data client ID, client secret and grant type, and SOIN as

"ClientID", "ClientSecret", "GrantType" and "SOIN" extended properties



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue)

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



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-TechDataAccessToken -Endpoint $Endpoint













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>$Endpoint | Get-TechDataAccessToken













-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-TechDataAccessToken -Url $url -ClientID $clientID -ClientSecret $clientSecret -GrantType $grantType

-Soin $soin















RELATED LINKS