You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write-Console"Api key didn't found on the computer. "
20
-
Write-Console"To use the CurrencyConverter api you need to enter your apiKey or receive free api key."
21
+
CurrencyWrite-Console "Api key didn't found on the computer. "
22
+
CurrencyWrite-Console "To use the CurrencyConverter api you need to enter your apiKey or receive free api key."
21
23
22
-
while ( Test-Empty$script:baseUrl ){
24
+
while ( CurrencyTest-Empty $script:baseUrl ){
23
25
LicenseTypePrompt
24
26
}
25
-
$script:baseUrl|Out-File-FilePath $baseUrlFile
27
+
26
28
27
29
if( $script:license-ne'fr' ){
28
-
Read-Host-Prompt "Enter the received api key here: "|Out-File-FilePath $apiKeyFile
30
+
$script:apiKey=Read-Host-Prompt "Enter the received api key here: "
29
31
}else{
30
32
31
-
Read-Host-Prompt "Please open in the browser link 'https://free.currencyconverterapi.com/free-api-key' and follow the site instructions.`
32
-
Afterwards enter the received api key here: "|Out-File-FilePath $apiKeyFile
33
-
Write-Console"Important: Do not forget to verify your email address."
33
+
$script:apiKey=Read-Host-Prompt "Please open in the browser link 'https://free.currencyconverterapi.com/free-api-key' and follow the site instructions.`
34
+
Afterwards enter the received api key here: "
35
+
CurrencyWrite-Console "Important: Do not forget to verify your email address."
34
36
}
37
+
38
+
$store= currencyShow-ConfirmPrompt -Question "Do you want to store the ApiKey on disk for the future usage?"
0 commit comments