Devcon 2016 WebDirect Series – Day 3 – SMS messages in WebDirect

What is this?

This set of demo files, developed by Mike Beargie, were designed to allow a user to send SMS Text messages from FileMaker WebDirect using the Nexmo SMS API. It can easily be adapted to work with other SMS providers like Twilio.

Additionally, a “SMShook.php” file is included that allows inbound SMS messages from Nexmo to be written to FileMaker!

DOWNLOAD FILES

How does it work?

  1. A set of PHP files is configured and hosted for web accessibility.
  2. A URL is assembled based to pass some parameters to the SMS.php page
  3. SMS.php will send an SMS text message using
  4. The user returns and a copy of the message is saved for reference.
  5. Inbound SMS messages are automatically sent to FileMaker from Nexmo (if configured)

How do I install it?

  1. Host the “FileMakerSMS.fmp12 file on your server and set the admin account password.
  2. Copy the “Code” folder to your FileMaker web host folder, or web site host of choice.
    1. On Windows, this is in Drive:/Program Files/FileMaker/FileMaker Server/HTTPServer/htdocs
    2. On OSX, this is Drive:/Library/FileMaker Server/HTTPServer/htdocs
    3. Edit lines 29-31 of SMS.php with your keys and number from Nexmo.
  3. If configuring your webhook for Nexmo:
    1. Configure SMShook.php lines 13-16 (your CWP connection info).
    2. Update your nexmo account to point the webhook for your SMS number to SMShook.php
  4. Ready to go!

You can copy and paste this code freely into your solution, but this code is offered as-is, with no guarantee of support or function.

About Author: MBeargie
Mike is an application developer with MainSpring, a FileMaker Business Alliance Platinum partner and Business Driver of the Year 2013, 2014 and 2015. He is a FileMaker 11-15 Certified developer and has worked with the FileMaker Platform for over eight years. He has a formal education in graphic arts and IT management, and a background in web development and high level IT service. In his spare time, he is an avid poster on the FileMaker Community discussion forums, organizes and presents at the local FileMaker user group, COFMUG, in Columbus, Ohio. Mike received the 2014 FileMaker Business Alliance Excellence Award for Community of the Year.

Leave a Reply

Your email address will not be published. Required fields are marked *