• We want to send an SMS to the Hotel owner and the customer upon booking.

    For sending SMS, is it possible to use a Twilio API file instead of Clicksend?
    Are there any examples of how to install/setup this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author e4jvikwp

    (@e4jvikwp)

    Hello,

    Thanks for your message. By default, only the commercial version of Vik Booking comes with a few pre-installed SMS gateways that you could use to compare their PHP code to build your own integration.

    The free version of Vik Booking does support custom SMS gateways, but you’ve got none to compare against. If you have noticed the default integration with Clicksend, then you are probably using the commercial version of our plugin.

    For the moment we do not support Twilio, but if you happened to have any PHP knowledge, then you could easily code your own SMS gateway for Twilio. All PHP driver files must be placed on the directory /wp-content/plugins/vikbooking/admin/smsapi of your server, and they must declare a specific class with at least 2 methods: getAdminParameters() and sendMessage().
    The best solution to code your own integration is to check the PHP code of one of the existing drivers inside the above mentioned directory. You could simply clone and rename one of the existing driver files to create the necessary integration with your preferred SMS providers.

    We hope this helps!

    The VikWP Team

    Thread Starter clickingclients

    (@clickingclients)

    This does help and I’ll look into it.
    Yes I’ve got the commercial version, and wanted to see if I could go straight for Twilio as an integration.
    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘SMS – can I use Twilio directly?’ is closed to new replies.