10 TIPs - To Become a Good Developer/Programmer
Why Join
Become a member
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
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
Pradeep Rawat
1.8k
286
4k
How to consume other API into our Webapi
Sep 18 2020 2:28 AM
Sorry , I am new in web api actually when I am running my API on postman the response is correct.but when i am implementing in code its giving internal server code error.
var gizmo =
new
Product() { ChannelId=
"948404"
};
HttpResponseMessage response = await client.PostAsJsonAsync("https:
//xxx-xxxxxx-api.xxx.co/api/bills, , gizmo);
if
(response.IsSuccessStatusCode)
{
}
Reply
Answers (
6
)
Drop down List for Range of integers
How to consume drug-drug interaction web api in vb.net winform