Skip to content

Instantly share code, notes, and snippets.

@gspncr
Created January 13, 2023 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gspncr/b5a49d8484059ff6bdef35b04f06e009 to your computer and use it in GitHub Desktop.
Save gspncr/b5a49d8484059ff6bdef35b04f06e009 to your computer and use it in GitHub Desktop.
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