TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Khaleel Rahman
NA
69
6.4k
How To Integrate SMS API To my ASP.Net Web application
Oct 10 2017 5:31 AM
I have a code send from my sms providers it looks like this
var client =
new
RestClient(
"https://api.infobip.com/sms/1/text/multi"
);
var request =
new
RestRequest(Method.POST);
request.AddHeader(
"accept"
,
"application/json"
);
request.AddHeader(
"content-type"
,
"application/json"
);
request.AddHeader(
"authorization"
,
"Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=="
);
request.AddParameter(
"application/json"
,
"{\"messages\":[{\"from\":\"InfoSMS\", \"to\":[\"41793026727\", \"41793026731\"], \"text\":\"May the Force be with you!\"}, {\"from\":\"41793026700\", \"to\":\"41793026785\", \"text\":\"A long time ago, in a galaxy far, far away... It is a period of civil war. Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire.\"}]}"
, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
I need to integrate this to my asp.net web application
Reply
Answers (
1
)
Design a progress bar
how to write the method with less code