{"id":22624634,"url":"https://github.com/barrettotte/rpgle-twilio","last_synced_at":"2026-02-24T19:39:23.740Z","repository":{"id":114091193,"uuid":"255195159","full_name":"barrettotte/RPGLE-Twilio","owner":"barrettotte","description":"RPGLE service program for sending text messages with Twilio SMS API","archived":false,"fork":false,"pushed_at":"2022-02-22T18:50:28.000Z","size":30,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T03:16:43.696Z","etag":null,"topics":["ibmi","ibmioss","ile","rpg","rpgle","twilio-api","twilio-sms-api"],"latest_commit_sha":null,"homepage":"","language":"RPGLE","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/barrettotte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-13T00:21:37.000Z","updated_at":"2025-03-24T09:34:50.000Z","dependencies_parsed_at":"2023-06-12T14:00:41.636Z","dependency_job_id":null,"html_url":"https://github.com/barrettotte/RPGLE-Twilio","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/barrettotte/RPGLE-Twilio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrettotte%2FRPGLE-Twilio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrettotte%2FRPGLE-Twilio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrettotte%2FRPGLE-Twilio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrettotte%2FRPGLE-Twilio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barrettotte","download_url":"https://codeload.github.com/barrettotte/RPGLE-Twilio/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barrettotte%2FRPGLE-Twilio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280906400,"owners_count":26411413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ibmi","ibmioss","ile","rpg","rpgle","twilio-api","twilio-sms-api"],"created_at":"2024-12-09T00:17:08.163Z","updated_at":"2025-10-25T05:01:58.754Z","avatar_url":"https://github.com/barrettotte.png","language":"RPGLE","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RPGLE-Twilio-SMS\nA really basic RPGLE service program to send a text with the Twilio SMS API. \n\nThis is my introduction to making service programs, so its probably not great.\nOriginally I was going to submit this to the [Twilio Hackathon at DEV](https://dev.to/t/twiliohackathon),\nbut I decided I would just keep this as a small learning project instead.\n\n\n## Summary\nThe service program has two procedures, **sendSms** and **sendSmsVerbose**.\n* **sendSms** accepts 'simple' parms and returns an error code.\n* **sendSmsVerbose** accepts a request data structure and returns the response as a data structure.\n\nAdditionally, each procedure logs the Twilio request/response to [sql/sms_log.sql](sql/sms_log.sql).\nThe service program is really only a wrapper over top of a stored procedure I wrote, [sql/send_sms.sql](sql/send_sms.sql).\n\n\n## Setup\n* Setup Twilio account and a Twilio phone number - https://www.twilio.com/\n* Connect to IBMi via SSH - ```ssh USER@YOUR400```\n* Clone project - ```git clone https://github.com/barrettotte/RPGLE-Twilio.git```\n* Navigate to project - ```cd RPGLE-Twilio```\n* Give permissions to build script - ```chmod u+x build.sh```\n* Run build script - ```./build.sh```\n* The build script will create the following\n  * A Library named **TWILIO** to hold all of the Twilio objects\n  * A Log table for logging SMS requests - **sms_log**\n  * A simplified view over the log table -\u003e **sms_log_v**\n  * A stored procedure to call Twilio SMS API -\u003e **send_sms**\n  * An RPGLE service program to call Twilio SMS API -\u003e ```ctl-opt bnddir('TWILIO/TWILIO') actgrp(*new);```\n* Example call in [example/src/testtwilio.sqlrpgle](example/src/testtwilio.sqlrpgle)\n\n\n## Commands\n* give permissions to build script and build project - ```chmod u+x build.sh \u0026 ./build.sh```\n* git push - ```git -c http.sslVerify=false push origin master```\n\n\n## References\n* [Twilio SMS docs](https://www.twilio.com/docs/sms)\n* [Twilio SMS Python Quickstart](https://www.twilio.com/docs/sms/quickstart/python)\n* [Read IFS files with RPG](https://www.rpgpgm.com/2016/01/read-ifs-file-using-rpg.html)\n* [Writing and reading IFS files](https://github.com/worksofliam/blog/issues/12)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarrettotte%2Frpgle-twilio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarrettotte%2Frpgle-twilio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarrettotte%2Frpgle-twilio/lists"}