asp.net web api - How to test Twilio calling my REST API via POST when a user sends an sms to a short code? -


i new webapi , mvc4 , trying create rest api in c#. using twilios tools twiliocsharp , twilio.mvc. how test interface between user sending text short code of twilio , twilio doing http post url , api sending response via sms? behind firewall , don't have clue how test if api works. please help.

also if can post examples of how validate check if post request coming twilio helpful. thank you.

twilio evangelist here.

in order test code, i'd suggest installing request forwarding utility. i've found 1 forwardhq works well.

basically request forwarding utilities forwardhq 2 things you:

  1. it creates publicly accessible url you, can tell twilio about.
  2. it creates ssh tunnel between port on machine , server on internet

when twilio needs make http request because received inbound sms or voice call, request forwardhq url. forward knows how take request , send port running on local machine. port map local web development server running in order process request , return result twilio.

the install instructions forward pretty straight forward.

hope helps.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -