Created
January 13, 2023 14:07
-
-
Save gspncr/b5a49d8484059ff6bdef35b04f06e009 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DCL VAR(&RESPONSE) TYPE(*CHAR) LEN(2000) | |
DCL VAR(&ERROR) TYPE(*CHAR) LEN(2000) | |
CALL PGM(SYSTOOLS/HTTPPOST) | |
PARM('https://api.twilio.com/2010-04-01/Accounts/YOUR_ACCOUNT_SID/Messages.json' | |
'From=+1234567890&To=+0987654321&Body=Hello+from+AS400' | |
'Authorization: Basic BASE64ENCODED_AUTH_TOKEN' &RESPONSE &ERROR) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment