A couple of weeks ago we released a new suite of .NET server helper libraries to help you build server side apps even quicker.
The old Sinch.SMS and Sinch.Core are now obsolete on nuget, and from now on you should use our new version:
And for WebAPIs we have a an extension:
If I may say so, they are awesome nugets that will help you build stuff super quick, you can read more about that in the following tutorials:
In this post I want to talk about a little hidden gem that the team has made. The Sinch.WebApiClient that is used in the above packages is open sourced on GitHub and is kind of wrapper library for managing and signing requests to our backend – you know how boring it is to deal with security. The cool thing is that it lets you create new requests with interfaces and filters so you can easily extend our and your own APIs both on the server and client and still have the nice typing.
Just the other week I found it extremely useful when our backend team released some new code but our SDK team was just a little bit behind. With just a couple of minutes of looking at the documentation over for a new request (Callouts), I could still use the current nuget from the SDK team. To do that I created an interface in my solution:
The attribute [ToBody] indicates that a parameter should be serialized to the body. Then there is a [ToURI] where you would add it to the URI instead. Just the request as specified in the docs. Now to use this you only have to create an APIFactory with this interface:
And the WepAPI client will take care of the signing of the requests and all for you. Super simple and super sweet.
Over and out.
You may have seen our latest whitepaper on How Consumer Demand Is Shaping The Future Of Video Calling For Enterprises. In this blog post, we’ll take a closer look at our research to see if Healthcare is ready for Video… read more
It’s no secret that people are living longer, and that globally the population is expanding. According to the most recent United Nations DESA report, the world’s population is expected to increase one billion fold by 2025, with 300 million aged 65 or older. One consequence of an ageing population is the increased demand for… read more
Banks used to close at three PM and could rely on customer loyalty, usually for a lifetime. Now multiple factors are colluding to shake up the market, centralized around the power of the consumer. The banking sector is undergoing a… read more
Hot on the heels of our whitepaper on Video Calling, where our primary research with OnePoll identified that enterprises are starting to leverage Video Calling, here’s the top 5 reasons why we think it’s the way forward for those who… read more