//PowerShell - RestMethod
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("X-Client-Id", "XXX") // Your API key
$headers.Add("X-Client-Secret", "YYY") // Your API secret
$body = '{
"number": "32496123456" //Contact number (required)
}'
$response = Invoke-RestMethod 'https://api.smsgatewayapi.com/v1/optouts' -Method 'POST' -Headers $headers -Body $body -ContentType “application/json; charset=utf-8”
$response | ConvertTo-Json
//Shell - wget
wget --no-check-certificate --quiet \
--method POST \
--timeout=0 \
--header 'X-Client-Id: XXX' \ // Your API key
--header 'X-Client-Secret: YYY' \ // Your API secret
--header 'Content-Type: application/json' \
--body-data '{
"number" : "32496123456" //Contact number (required)
}' \
'https://api.smsgatewayapi.com/v1/optouts'
Normal response: http status code 201 (Created).
SMS API
Smstools
Bulk API SMS passerelle. Intégration facile. Grâce à notre API SMS, vous pouvez étendre les fonctionnalités de votre logiciel avec une intégration SMS.