Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

slack powershell command

$uriSlack = "https://hooks.slack.com/services/{guids}"
$body = ConvertTo-Json @{
    pretext = "Hello world"
    text = "This is the text below with a blue thingy next to it"
    color = "#142954"
}

try {
    Invoke-RestMethod -uri $uriSlack -Method Post -body $body -ContentType 'application/json' | Out-Null
} catch {
    Write-Error (Get-Date) ": Update to Slack went wrong..."
}
Comment

PREVIOUS NEXT
Code Example
Shell :: pendrive bootable using terminal 
Shell :: how to send email with body and attachment in unix 
Shell :: cast audio to google home mini from pc linux 
Shell :: install a file from internet with command prompt 
Shell :: shut down linux keyboard shortcut 
Shell :: lumbha ram github 
Shell :: how to permantely install library in collab 
Shell :: awk select second field stored in a variable 
Shell :: powershell copy all images in a directory 
Shell :: he5 command line 
Shell :: github shows two icons on commit 
Shell :: router dom react 
Php :: human readable date laravel 
Php :: php string to uppwe 
Php :: check laravel version 
Php :: laravel Str::random 
Php :: check composer php version 
Php :: php filter validate email 
Php :: php remove enter from string 
Php :: wordpress error log 
Php :: php remove dashes from string 
Php :: storage link laravel 
Php :: all php error report 
Php :: Delete Query with Where Condition in Codeigniter 
Php :: get age with carbon in laravel 
Php :: phpstorm php file header coment 
Php :: carbon start of day 
Php :: php referrer 
Php :: remove http / https from link php 
Php :: laravel favicon 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =