Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Im in the process of developing a CRM where, a client can send an SMS and trigger some event driven code to update a database. Ive been looking at Twilio pretty hard, and looked at all their documentation and none of their API documentation covers this particular context.
Can anyone help?
When you setup a Twilio SMS number, you configure an HTTP location for Twilio to POST or GET in response to an SMS message. You would build a service such as Web API to handle the XML that Twilio would post/get against your endpoint and do whatever your want on your database.
Here's a reference to the Twilio .NET/C# quick start for SMS. Your endpoint will get called when the SMS is received. You can return a basic XML document () or add xml elements that tell Twilio what to do, such as reply with another SMS. Twilio calls this "TwiML". Regardless, you'll get enough details to update your DB and do whatever else you might want to do.
Link to Quick Start: https://www.twilio.com/docs/quickstart/csharp/sms/hello-monkey
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have one HTTP Post API (build in ASP.NET Core), that API is responsible to add Customer in database.I would like to send an email using Azure function at the time of HTTP Post request. Azure function should automatically get triggered. How to achieve this?
Why is it important to you that this is achieved by an Azure function? Azure Logic Apps were designed with such workflows in mind.
However, if it's important to you that this is implemented by an Azure Function then you'll need to create a new Azure Function with a Http Trigger. You'll need to implement the e-mail sending functionality yourself using a library such as MailKit.
Here's a good resource on using MailKit to send e-mails.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I've got some work to do for school around Microservices.
I've got the architectural concept, but need an implementation to show off. I'll be using angular2 as a client, would like to use a .NET core API gateway to dispatch my requests to different services.
What's the best approach for this? I red something about using Rx.Net, but no definitive example or implementation that I can follow.
So what should I do to implement an API gateway in .NET Core?
This may or may not help but I am currently building an API gateway in .NET core.
You can find it at https://github.com/TomPallister/Ocelot.
The code is a little ropey but a few people are working on it now so hopefully we can improve it over time.
You want to have a server that listens to the incoming API calls, e.g. a HttpListener.
Inside the handler of incoming requests, you peek into the request and decide where the API call needs to be relayed.
Then you use something like a HttpClient to make another request to the actual API endpoint (mimicking the original request as closely as possible) and you relay its response back to the user.
It should all be in the listener's request handler, and the response to the original request is the response from the real API.
See MSDN docs on HttpListener.
Also a good read: Handling multiple requests with C# HttpListener
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm trying to create simple interface to analyze conversation with different available web chatter bots. So I have no idea in which direction I've to research, if only thing I want is a write massage to the chatterbot for example cleverbot.com from the textbox of my application and get answer string from it. if I can figure it out with this, then I want get the list of available web chat bots to choose. Maybe I can use WebClient for this goal, need any advice on this direction
Have a look at SignalR from Microsoft.
In their tutorial they provide an example for a chat.
i would not try to implement a chat functionality by yourself. Posting all chat messages over your server and poll them from the clients was state of the art in the 90's.
(Picture taken from Tutorial: Getting Started with SignalR 2)
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Thanks for taking the time to help me. We're building similar site like Delivery.com, grubhub and seamless.com. Customers order food from restaurants. Restaurants receive orders by email and fax. They call our phone number, enter a code and that confirms that the order was received successfully by them. What do I need to register that confirmation on the backend in my db to show that the order has been confirmed? I am not a tech person as you can tell. Is Twilio a valid option? using their api with a WPF, can they call, enter the code and that will be converted into some script on our server to register the confirmation? if not, any other services or scripts I need to build?
Twilio evangelist here.
You can totally use Twilio to do this. Do do this I'd suggest creating a new Twilio account (its free to try) and walking through the Handle Incoming Calls quickstart. That will give you a great foundation for understanding the basic Twilio concepts like TwiML and WebHooks.
As part of the quickstart you'll need to stand up some kind of web endpoint on your server that Twilio can make HTTP requests to, so that could be something like an ASP.NET MVC or ASP.NET WebForms site.
Once you've worked through the quickstart, to build your application you are going to need to use the <Gather> verb which tells Twilio to start listening for the caller to enter tones. Once they have entered the tones Twilio will pass those to your application as a request parameters (in this called Digits), and your application can use that data to run whatever kind of application logic you want.
Hope that helps.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am trying to incorporate RabbitMQ based pub sub for a specific programming scenario,
I have a Web API endpoint. When I get a 201 response from this service I want to send out emails.
I already have another API endpoint which I can call to send out email.
Where do I setup the mailer?
And how do I setup RabbitMQ to handle this scenario?
To clarify further, should this be a fanout exchange setup or not? And how are mails usually handled transient or persistent queues?
Sounds like a typical worker scenario where one side will queue up jobs/messages into a message queue (producer) and the other side will get the messages and process them (consumer/worker). In your case, the workers will get messages and send out an email (or hit your api endpoint that sends out emails). The workers typically run on separate machines so they can do work without affecting your application or api.
If you're using RabbitMQ, you should read the "Work Queues" tutorial to see how to set it up for your scenario: http://www.rabbitmq.com/tutorials/tutorial-two-python.html
There are some hosted solutions specifically for this too that don't require any setup like IronMQ for a message queue. Or even a step further if you don't want to deal with worker servers, you can use IronWorker.