{"id":22085656,"url":"https://github.com/nexmo/ruby-mobile-app-invites","last_synced_at":"2025-03-23T22:16:29.213Z","repository":{"id":66173063,"uuid":"71981872","full_name":"Nexmo/ruby-mobile-app-invites","owner":"Nexmo","description":"Mobile App Promotion via SMS in Ruby","archived":false,"fork":false,"pushed_at":"2021-02-02T13:26:04.000Z","size":46,"stargazers_count":1,"open_issues_count":1,"forks_count":4,"subscribers_count":18,"default_branch":"main","last_synced_at":"2025-01-29T05:25:11.106Z","etag":null,"topics":["tutorial"],"latest_commit_sha":null,"homepage":"https://developer.nexmo.com/tutorials/mobile-app-invites","language":"Ruby","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/Nexmo.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":"2016-10-26T08:21:57.000Z","updated_at":"2023-03-08T15:22:55.000Z","dependencies_parsed_at":"2023-02-21T01:30:21.365Z","dependency_job_id":null,"html_url":"https://github.com/Nexmo/ruby-mobile-app-invites","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/Nexmo%2Fruby-mobile-app-invites","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nexmo%2Fruby-mobile-app-invites/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nexmo%2Fruby-mobile-app-invites/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nexmo%2Fruby-mobile-app-invites/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nexmo","download_url":"https://codeload.github.com/Nexmo/ruby-mobile-app-invites/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245175481,"owners_count":20572787,"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":["tutorial"],"created_at":"2024-12-01T01:15:47.951Z","updated_at":"2025-03-23T22:16:29.209Z","avatar_url":"https://github.com/Nexmo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mobile App Invites\n\nA Sinatra (Ruby) app showing how to implement mobile app invites using the Nexmo SMS API.\n\n## Prerequisites\n\n* [A Nexmo account](https://dashboard.nexmo.com/sign-up)\n* [Ruby 2.1+](https://www.ruby-lang.org/) and [Bundler](http://bundler.io/)\n\n## Getting started\n\n```sh\n# clone this repository\ngit clone git@github.com:Nexmo/ruby-mobile-app-promotion.git\n# change to folder\ncd ruby-mobile-app-promotion\n# install dependencies\nbundle install\n# create a .env\ncp .env.example .env\n```\n\nNext you will need to sign up for a Nexmo account and get your API credentials from the API dashboard and put them in your `.env`\nfile.\n\nThen you can start the server.\n\n```sh\nruby app.rb\n```\n\nFinally make sure your application is available from a phone. For this you will need a public IP on your development machine, or you could use a tool like [ngrok](https://ngrok.com/).\n\n## Usage\n\nThis app shows you how to send an SMS to a\nmobile phone with a download link for your\napplication. This app uses [Sinatra](http://www.sinatrarb.com/),\nRuby and the [Nexmo SMS](https://www.nexmo.com/products/sms/) API.\n\nOnce your server is started:\n\n* Your server is available on port `4567`\n* Ensure your server is available to other devices either locally or with a tool like [ngrok](https://ngrok.com/).\n* Visit your servers root URL on a desktop browser\n* Select \"Get it via SMS message\"\n* Fill in your phone number without any leading 0's or +'s (e.g. `445555666777`)\n* You will receive an sms in seconds, follow the link in the SMS and download the app.\n\nAs this is a very simple starter app this app only supports iOS and Android. It does show you how to ensure the SMS was sent successfully and how to catch any errors that may occur when sending an SMS.\n\n## License\n\nThis project is licensed under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnexmo%2Fruby-mobile-app-invites","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnexmo%2Fruby-mobile-app-invites","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnexmo%2Fruby-mobile-app-invites/lists"}