{"id":19772038,"url":"https://github.com/danieldacosta/lambda-messaging","last_synced_at":"2026-05-14T15:31:47.143Z","repository":{"id":112641615,"uuid":"291161942","full_name":"DanielDaCosta/lambda-messaging","owner":"DanielDaCosta","description":"Lambda that sends sms or email to user.","archived":false,"fork":false,"pushed_at":"2020-08-30T21:43:19.000Z","size":1500,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T11:30:47.741Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DanielDaCosta.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-08-28T23:01:47.000Z","updated_at":"2020-12-24T22:04:47.000Z","dependencies_parsed_at":"2023-06-02T06:15:25.411Z","dependency_job_id":null,"html_url":"https://github.com/DanielDaCosta/lambda-messaging","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DanielDaCosta/lambda-messaging","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielDaCosta%2Flambda-messaging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielDaCosta%2Flambda-messaging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielDaCosta%2Flambda-messaging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielDaCosta%2Flambda-messaging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanielDaCosta","download_url":"https://codeload.github.com/DanielDaCosta/lambda-messaging/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielDaCosta%2Flambda-messaging/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33031104,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":[],"created_at":"2024-11-12T05:05:10.816Z","updated_at":"2026-05-14T15:31:47.128Z","avatar_url":"https://github.com/DanielDaCosta.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lambda Messaging\n\nLambda that sends sms or email to user. It receives an array of dictionaries containing\nphone_number or email and message contents.\nInput:\n\n```\n{\n    \"data\": {\n        [\n            {\n                'phone_number': '+552199999999',\n                'message': 'Bom dia!'\n            },\n            {\n                'email': 'test@gmail.com',\n                'message': 'Bom tarde!'\n            }\n        ]\n    }\n}\n```\n\n# Usage\n\nExample of usage.\n\nLambda *asynchronous invocation* is preferable\n\n```\nimport json\nimport boto3\nfrom config import MS_MESSAGING\n\n# MS_MESSAGING -\u003e MS_MESSAGING ARN\n\n\ndef send_sms(messages_array):\n    \"\"\"Send sms\n    Args:\n        phone_number (string): the phone number that will receive the sms\n        body_message (string): the message\n    \"\"\"\n    client = boto3.client('lambda')\n    payload = {\n        \"data\": messages_array\n    }\n    client.invoke(\n        FunctionName=MS_MESSAGING,\n        InvocationType='Event',\n        Payload=json.dumps(payload),\n        LogType='None'\n    )\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieldacosta%2Flambda-messaging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanieldacosta%2Flambda-messaging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieldacosta%2Flambda-messaging/lists"}