GinShell.GoDaddy/Private/Get-GoDaddyCreds.ps1

function Get-GoDaddyCreds {
    $apiKey = $env:GS_GODADDY_API_KEY
    $apiSecret = $env:GS_GODADDY_API_SECRET

    if (-not $apiKey) {
        $apiKey = Read-Host "[Not found environment variable GS_GODADDY_API_KEY] Enter your GoDaddy API Key"
    }
    if (-not $apiSecret) {
        $apiSecret = Read-Host "[Not found environment variable GS_GODADDY_API_SECRET] Enter your GoDaddy API Secret"
    }

    return @{ Key = $apiKey; Secret = $apiSecret }
}