
text ( number, ' ' ) rescue TextBelt :: Errors :: PhoneQuotaExceededError => e puts ' too many cats!!!! ' rescue TextBelt :: Errors :: BlackListedNumberError => e puts ' can not send any more cats to that number :( ' end require ' textbelt ' def send_cats ( number ) TextBelt. If there are any errors that happen server side, we raise then as exceptions locally, see the documentation for text for a look at the different errors that might be raised. text ( ' 01234567 ', ' Hello, World! ' ) #=> Your favorite cell phone number gets a text message Sending messages should be as simple as passing a number & message, then watching it go! TextBelt.
#Textbelt install
Or install it yourself as: $ gem install textbelt InstallationĪdd this line to your application's Gemfile: gem ' textbelt ' The Sender ID can either be a business name or mobile number and can be used by the recipient to identify who sent the message.A ruby interface for sending texts free of charge through TextBelt.

Put the following JSON in the body field. You may get the credentials from your ClickSend dashboard.įor the request body, turn on the Use Raw Input option and the content type set to application/json.
#Textbelt password
Choose Basic OAuth under the Authorization tab and provide your username and API key in the user and password fields respectively. If you prefer the ClickSend service for sending text messages, put in the URL field with the request method set as POST.
#Textbelt full
Check the API docs for the full list of parameters. You may optionally include the sendingDateTime parameter in the request body to schedule text messages and send them at a later date. The request body should have the parameter phones for the recipient’s phone number and text for the SMS body. Set the request URL as and add two header fields - X-TM-Username and X-TM-Key to include the username and API key respectively. The message field contains the text Dear column of the Google Sheet.Ĭreate an account on, go to the API settings page and click the Add new API key button to generate a new secret key. Switch to the Request Body tab and set the content type as application/json. Inside the Webhook service, set POST as the request method and the request URL as.
#Textbelt for free
You may send the first SMS message for free using textbelt as your API key. We’ll essentially make an HTTP POST request to the SMS service provider’s API to send the text message.Īnd this request will be different for each SMS service depending on their API endpoints. Next, proceed to the Tasks screen and choose Webhooks from the list of services. The phone number field should not be blank.The Checkbox should be selected or TRUE.We’ve specified two conditions in our example: On the next screen, choose the Process specific rows option and specify the criteria when invoice reminders should be sent over SMS. Launch Document Studio and create a new workflow. Now that our source data in Google Sheets is prepared, let’s build a workflow to send SMS messages.

The phone numbers in Column D should conform to the E.164 international format and can have a maximum of 15 digits. Column A of the Google Sheet, titled Send Reminder contains checkboxes and the SMS should be sent only for rows where this checkbox is selected. You may use TextMagic, SimplyTexting, Vonage, ClickSend, RingCentral, or any SMS service of your choice.įor this example, we have a Google Sheet that contains the customer’s name, phone number, invoice number and the amount that is due. The text messages in Document Studio are sent through Twilio but the app can be integrated with any SMS service as long as the service offers an API for sending text messages programmatically. Or you can get notified instantly when people fill out your Google Forms. You can thus build workflows that send text reminders when the invoices are due. The Document Studio add-on helps you automatically send text messages when a new Google Form is submitted or when new rows are added to Google Sheets. Send personalized text messages in bulk from Google Sheets using your favorite SMS service
