Bulkgate is a SaaS solution for message sending. The service allows you to send customized transactional or promotional message via SMS or Viber.
Get the register application and create sender profile.
Application ID for Bulkgate advanced API. More inormation can be found here.
Application token for Bulkgate advanced API. More information can be found here.
Message type which determines which URL will be used. Currently, can only be Promotional
Sender ID which will be used to send message. More information can be found here
If set to true, messages via sms will be sent in unicode (characters with diacritics will be sent properly) .
Select 'same_text' to prevent sending duplicate messages to the same phone number. Disable the possibility to send a message with either the same or different text to the same number with 'same_number'. If 'null' no duplicates will be removed.
Determines which channels will be used for sending the message: "viber" for viber only, "sms" for sms only, "viber_sms" for viber and sms as backup
Sender name which will be shown in viber
as the sender of a message (this field is mandatory if send_options
is viber_sms
or viber
Input must be a table with 5 columns:
number
- phone number to which message will be send - must include country code (ex: 420123123123)text
- text which will be sendtimestamp
-0
for message to be sent right away or unix timestamp/ISO 8601 for message to be sent at a specific timebutton_caption
- Caption for the Button object to be sent with a viber message. Can be null for sms. button_url must also be providedbutton_url
- URL for the Button object to be sent with a viber message. Can be null for sms. button_caption must also be provided
As an output, 4 tables are returned.
stats
- contains information about the sent messages in totalmessages
- contains information about each sent messagemessages_parts
- contains information about message parts for each messageinvalid_number_errors
- contains information about numbers that were not able to have messages sent to them because they were invalid
If required, change local data folder (the CUSTOM_FOLDER
placeholder) path to
your custom path in the docker-compose.yml
file:
volumes:
- ./:/code
- ./CUSTOM_FOLDER:/data
Clone this repository, init the workspace and run the component with following command:
git clone https://github.com/gymbeam/gymbeam.app-bulkgate.git gymbeam.app-bulkgate
cd gymbeam.app-bulkgate
docker-compose build
docker-compose run --rm dev
Run the test suite and lint check using this command:
docker-compose run --rm test