Book Image

ServiceStack 4 Cookbook

Book Image

ServiceStack 4 Cookbook

Overview of this book

Table of Contents (18 chapters)
ServiceStack 4 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Wrapping multiple existing services and exposing them through ServiceStack


In the previous recipe, we showed how we can use the C# client to act as a proxy for services where we don't have control of the source code. We'll continue with that concept in this recipe, adding the capability to send SMSes so that our messaging app can send text messages to users when new messages are sent. Being able to wrap multiple existing services allows you as a software developer to mix in powerful components quickly instead of needing to build everything yourself. This time, we'll add the concept of SMS messaging by referencing the popular Twilio API.

Twilio, for a small fee, will send and receive text messages and also send and receive phone calls in addition to a number of other services. You can check out https://www.twilio.com/docs/ for more information.

How to do it…

We'll start with Reidson Messenger from the previous recipe. We'll add Twilio to our mash-up this time in order to support sending text...