This project provides a sample webMethods CloudStreams Provider Project for Twilio. The following APIs are available:
- Send SMS: Send a new outgoing SMS. https://www.twilio.com/docs/api/rest/sending-messages
- Get SMS: This resource represents an individual SMS message. https://www.twilio.com/docs/api/rest/message
- Get Account: An Account instance resource represents a single Twilio account. https://www.twilio.com/docs/api/rest/account
- Make Call: Make outgoing call to phones, SIP-enabled endpoints and Twilio Client connections. https://www.twilio.com/docs/api/rest/making-calls
- Get Call: A Call instance resource represents a connection between a telephone and Twilio. https://www.twilio.com/docs/api/rest/call
The project was developed and tested on the following installation:
- Integration Server 9.12
- CloudStreams Server 9.12 Fix 3 (Note: Fix 3 is required for this project to run. Prior fix levels are not supported)
- Software AG Designer 9.12 with Service Development and CloudStreams Development
To install the project on your local development environment follow these steps.
- In Software AG Designer open
Window > Preferences. - Navigate to
Software AG > CloudStreams Servers. - Add your local Integration Server. If there is already an entry make sure username and password are correct by clicking the Test button.
- In Software AG Designer switch to the
CloudStreams Developmentperspective. - Select File > Import and choose
Software AG > CloudStreams Provider Project. Click Next. - Select the root of this repository as the Root Directory.
- Select the
Twilioproject. - Check
Copy project into workspace. - Click Finish.
- Expand the newly imported project.
- Right-click
com.softwareag.twilioand select Deploy.
The CloudStreams Provider Project does not contain neccessary doctypes.
- Copy Twilio.zip and TwilioTests.zip to
<install_dir>/IntegrationServer/instances/<instance>/replicate/inbound. - Open Integration Server Administration in your browser.
- Install both packages with
Install Inbound Releasesin Package Management.
To access Twilio a username and password is neccessary. Generate your Twilio Trial account here: https://www.twilio.com/.
- Open Integration Server Administration in your browser.
- Navigate to
Solutions > CloudStreams > Providers > Twilio. - Select
com.softwareag.twiliofrom the Connector List.
You will find one (disabled) connection: wmtwilioTests:connection. You need to modify this connections:
- Click the Edit button of the connection.
- Enter your username and password and save the changes.
- Enable the connection.
- In Software AG Designer switch to the
Service Developmentperspective. - Expand the
TwilioTestspackage. - Run the
*Testflow services you find in the subsequent directories.
These tools are provided as-is and without warranty or support. They do not constitute part of the webMethods product suite. Users are free to use, fork and modify them, subject to the license agreement. While we welcome contributions, we cannot guarantee to include every contribution in the master project.
Contact us at TECHcommunity if you have any questions.