< Back

import-apitoken

Sat Jan 18, 2020 8:19 pm

NAME import-apitoken



SYNOPSIS

Imports your api token into powershell. This is required in order to utilize the hunter api.





SYNTAX

import-apitoken [-apikey] <String> [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

Imports your api token into powershell. This is required in order to utilize the hunter api. You only have the

run this command once. If you don't provide your api key as a parameter, the function will prompt you for it. In

order to obtain an api key, you must register for an account on https://hunter.io





PARAMETERS

-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-apikey <String>

Your api key.



Required? true

Position? 0

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

None







OUTPUTS

System.Object







NOTES









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



PS C:\\> import-apitoken -apikey "0000000000000000000000000000"



Imports and stores the fictitious and invalid api key "0000000000000000000000000000" for use by the hunter api and

this module.



RELATED LINKS

Hunter Website https://hunter.io