How to CALL POST API in C#! - THIS EASY!

preview_player
Показать описание
🔥 Learn How to CALL POST API in C#! using the JSON Placeholder API!

We'll make sure to turn you into a true developer in no time!

So, what is C#?
C# (pronounced "See Sharp") is a modern, object-oriented, and type-safe programming language. C# enables developers to build many types of secure and robust applications that run in .NET. C# has its roots in the C family of languages and will be immediately familiar to C, C++, Java, and JavaScript programmers. This tour provides an overview of the major components of the language in C# 8 and earlier. If you want to explore the language through interactive examples, try the introduction to C# tutorials.

What is an API?
An application programming interface (API) is a way for two or more computer programs to communicate with each other. It is a type of software interface, offering a service to other pieces of software.[1] A document or standard that describes how to build or use such a connection or interface is called an API specification. A computer system that meets this standard is said to implement or expose an API. The term API may refer either to the specification or to the implementation.

And what is JSON and the JSON Placeholder API?
JSONPlaceholder is a free online REST API that you can use whenever you need some fake data. It can be in a README on GitHub, for a demo on CodeSandbox, in code examples on Stack Overflow, ...or simply to test things locally.

And what are Requests?
An HTTP request is made by a client, to a named host, which is located on a server. The aim of the request is to access a resource on the server. To make the request, the client uses components of a URL (Uniform Resource Locator), which includes the information needed to access the resource. In this video for example, we used the POST request.

To learn more, make sure to watch the video, and we promise you that you'll become a C# developer by the end of the course! Have fun!

#csharp #coding #tutorial #learn #microsoft #net #http #api #post #request #dotnet

TAGS
Tutorials,Tutorial,Programming,Course,Learn,Step by step,guide,development,programmer,video course,video tutorial,learn how to,how to,visual studio,c#,.net,.net core,dotnet,visual studio 2019,core,code,asp,asp net,c sharp,coding,csharp,programming,api,rest api,rest,json,http,api testing,software development,c# tutorial for beginners,c# tutorial,c# restsharp tutorial,how to call post api in c#,csharp api,step by step,mvc,web api,rest api tutorial

tutorialsEU offers you free video tutorials about programming and development for complete beginners up to experienced programmers.
This includes C#, Unity, Python, Android, Kotlin, Machine Learning, etc.

Рекомендации по теме
Комментарии
Автор

Simple, Complete, just awesome! Thank you!

GeoBGeoB
Автор

Just Wow .. I have been through most of your videos in last 2 days and all are awesome and so easy to understand. Thank you so much

shubhanginimje
Автор

Very good concept, helps tremendously in API testing! Congrats! One suggestion, can you have Swagger documentation for the APIs, that will clearly explain about all the endpoints available. Also some endpoints which require authentication would be really useful.

arung
Автор

Thank you so much for this tutorial. Helped me a lot!

icesilver
Автор

This tutorial has been very helpful. Thank you for this.

daberechukwuibeakanma
Автор

So simple, so well explained, great job 👍👍🥇🥇

philippemaze
Автор

How to pass an encrypted token using the POST method?

omykdkj
Автор

Is this really a POST? It seems more like a GET. How do I modify PostData and send the changes back to the API?

jpcode
Автор

how do you send data as well as attachment files, what would mediatype be in StringContent?

swankyshivy
Автор

Awesome tutorial, right to the point . Thanks and you've got a new subscriber.

RaminBohlouli
Автор

Its really nice tutorial. It would be great if you can show another video of same POST Request with same Model Class by using RestSharp library.

Little-Impact
Автор

Awsome. Thanks. It is gonna be great if you include a kind of API authentication by access token ...

boodyghadban
Автор

How do remove double quote key in json

shreyash
Автор

I'm making a program where I use C# Forms as Front End, sending it to an API that is open on my machine (Local Host API), it is possible using these same request methods

pablolima
Автор

Same code functionality not working at app service deployment, showing no content response. Any idea?

cherryt
Автор

I 'D LIKE TO KNOW HOW TO PUT GLOSBE IN LIBREOFFICE TO TRANSLITERATE PINYIN, DOES ANY BODY KNOWS?

musicasdomundo
Автор

Give these [JsonPropertyName("id")] Data annotation on the Id property above in PostResponse class ✌✌

Ahamedmukshithm
Автор

Damn it... why can't I find a version for winforms???? console is useless to me.

pastexpiryB
Автор

Link to your article listed above has a malware download purporting to be a Firefox update with AI capabilities. It's evil.

inappropriateDad