Skip to content

Commit 845648e

Browse files
RodriguezRodriguez
authored andcommitted
Updated cat fact Api endpoint.
1 parent 4b69369 commit 845648e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Fun/Send-CatFactMessage.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
[PSCredential]$Credential
4343
)
4444

45-
$CatFact = (ConvertFrom-Json (Invoke-WebRequest -Uri 'http://catfacts-api.appspot.com/api/facts')).facts
45+
$CatFact = Invoke-RestMethod -Uri 'https://catfact.ninja/fact' | Select-Object -ExpandProperty fact
4646

4747
if ($pscmdlet.ShouldProcess("User: $UserName, Computer: $ComputerName", "Send cat fact, $CatFact")) {
4848
$ScriptBlock = {

0 commit comments

Comments
 (0)