This is a repository of sample code for the txtNation API at http://wiki.txtnation.com/wiki/Gateway_HTTP_XML#Bulk_SMS for sending a MT request.
Code samples are provided in the samples directory at docs/samples and can be used directly in their native language.
The repository has been written to provide a central version controlled storage location, for running an embeddable responsive iframe using GitHub pages with the purpose of embedding into several txtNation support websites.
The widget runs using GitHub pages which is pointed to the 'docs' folder and can be found at https://messagecloud.github.io/txtnation-gateway-send-sms-examples/. The widget consists of a main widget.html file, and widget.js file.
The main HTML file loads Font Awesome, Bootstrap and jQuery via a CDN provided by MaxCDN.
Jekyll's native syntax highlighter is used to highlight the code within the widget and is configured via the _config.yml file.
A modified jQuery library for iFrame resizing is used davidjbradshaw/iframe-resizer, in order to give the widget resizing capability using a JavaScript iFrame cross domain origin workaround.
If you would like to contribute to this code, please open a pull request or get in touch via our website www.txtnation.com.
The license is viewable in the LICENSE file included with this repository.