{"id":24586768,"url":"https://github.com/juggernaut/twilio_rust","last_synced_at":"2025-04-28T14:27:35.351Z","repository":{"id":57670826,"uuid":"112892421","full_name":"juggernaut/twilio_rust","owner":"juggernaut","description":"A rust-lang client library for Twilio based on hyper","archived":false,"fork":false,"pushed_at":"2017-12-03T21:39:56.000Z","size":40,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-18T13:22:04.472Z","etag":null,"topics":["async","rust","rust-lang","twilio"],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/juggernaut.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}},"created_at":"2017-12-03T01:58:33.000Z","updated_at":"2022-06-11T23:34:22.000Z","dependencies_parsed_at":"2022-09-26T20:41:21.305Z","dependency_job_id":null,"html_url":"https://github.com/juggernaut/twilio_rust","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juggernaut%2Ftwilio_rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juggernaut%2Ftwilio_rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juggernaut%2Ftwilio_rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juggernaut%2Ftwilio_rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juggernaut","download_url":"https://codeload.github.com/juggernaut/twilio_rust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251328957,"owners_count":21572018,"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","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":["async","rust","rust-lang","twilio"],"created_at":"2025-01-24T06:14:21.179Z","updated_at":"2025-04-28T14:27:35.331Z","avatar_url":"https://github.com/juggernaut.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# twilio_rust\nA rust-lang client library for Twilio based on [hyper.rs](https://hyper.rs/). As such, network I/O is done asynchronously \nand all results are returned as futures.\n\n# Getting started\n\nLet's start with an example of sending an SMS (You can run this example with `cargo run --example send_message`).\n\nYou will need your Twilio credentials first:\n```bash\nexport ACCOUNT_SID=\u003cyour account sid\u003e\nexport AUTH_TOKEN=\u003cyour auth token\u003e\n```\nTo send an SMS, you will also need a \"from\" number i.e a valid callerId in your Twilio accout, and the \"to\" number i.e the number you want to send the message to:\n```bash\nexport FROM_NUMBER=\u003ca valid callerId in your account\u003e\nexport TO_NUMBER=\u003cnumber you want to send message to\u003e\n```\n\n```rust\nlet from_num = env::var(\"FROM_NUMBER\").expect(\"FROM_NUMBER must be set to a valid caller ID for your account\");\nlet to_num = env::var(\"TO_NUMBER\").expect(\"TO_NUMBER must be set to the number you want to send the message to\");\n// Create the tokio event loop\nlet mut core = Core::new().unwrap();\n\n// Create the twilio client\nlet client = Client::new_from_env(\u0026core.handle()).unwrap();\n\nlet messages = Messages::new(\u0026client);\n\n// Create the outbound SMS\nlet outbound_sms = OutboundMessageBuilder::new_sms(\n    MessageFrom::From(\u0026from_num),\n    \u0026to_num,\n    \"Hello from Rust!\"\n).build();\n\nlet work = messages.send_message(\u0026outbound_sms);\nlet sms = core.run(work).unwrap();\nprintln!(\"Queued outbound SMS {}\", sms.sid);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuggernaut%2Ftwilio_rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuggernaut%2Ftwilio_rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuggernaut%2Ftwilio_rust/lists"}