MMS Gateway - Guni
The Guni MMS Gateway currently delivers MMS messages to Australian phone numbers. You can use the following methods for attaching media files to your outgoing messages:
- Public URL: simply enter the publicly accessible URL for each media file that you wish to send. You would typically upload the file (jpeg, png, gif etc) to a server and determine the URL to that file and enter this into the URL field when sending an MMS message.
- Get Media Record URL: using the supplied getMediaURL.php file (for the FileMaker Data API) you can generate a dynamic URL on the fly that Guni can use to download a media file from the container field in the Media table record. This requires the fmMMS file to be hosted on FileMaker Server. N.B. the getMediaURL.php file currently doesn't work with FileMaker Cloud 2.x deployments due to the differences in how authentication is handled for FileMaker Cloud 2.x users with the Data API. We hope to have a version of the getMediaURL.php file that supports FileMaker Cloud 2.x soon.
You can get further information on supported media files and limitations here:
https://support.gunisms.com.au/knowledge-base/send-mms-using-api
https://support.gunisms.com.au/knowledge-base/mms-best-practice
Incoming Messages/Replies
You can get incoming messages/replies to your Guni number into the fmMMS file in a number of ways:
- Use Webhooks to have Guni push these automatically to fmMMS
- Use Otto Webhooks
Using Webhooks is the preferred method as it saves you from having to poll/check for any new messages - with Webhooks new messages are forwarded to fmMMS automatically by Guni as they are received.
Guni Webhooks Data API PHP Setup
To receive incoming MMS messages to your Guni number, including replies to previously sent messages, you will need to use the supplied incomingMessage.php webhook file to act as the webhook receiver. See our Webhooks guide for what you need to do host the incomingMessage.php file on your chosen web server. Once you have the publicly accessible URL for this file you can enter the URL to this file in your online Guni Account Settings under Integrations > WebHoooks > Receive URL.
It should look similar to this screenshot:
You can get further information on Guni MMS Webhooks on the Guni website here:
https://support.gunisms.com.au/knowledge-base/webhook
Guni Otto Webhooks Setup
Please visit the Webhooks using Otto guide for instructions on setting up Otto Webhooks for your Guni number. You will need to create a new webhook and enter the Otto webhook URL using the instructions above and modify the OttoReceiver script to handle incoming MMS messages from Guni.