examples/Connect-And-Test.ps1

# Import the module from an extracted source tree.
$projectRoot = Split-Path -Path $PSScriptRoot -Parent
$manifestPath = Join-Path (Join-Path $projectRoot 'DattoBackupApi') 'DattoBackupApi.psd1'
Import-Module $manifestPath -Force

$credential = Get-Credential -UserName 'YOUR_PUBLIC_KEY' -Message 'Enter the Datto secret key as the password'
Connect-DattoApi -Credential $credential -Name 'Production' -SetDefault

Test-DattoApiConnection -Surface BCDR
Get-DattoApiRateLimit