Making REST calls using C#

Here is how to make REST calls using C# code. It’s easier to make REST call using JavaScript but it is little bit tricky to make REST calls using C#.

I will show simple example to update list item using REST in a console application.

While updating or Creating list items we need Form Digest. So in below code, first of all we will have to get Form Digest using method GetFormDigest().

This is complete program.cs. This is tried and tested code and it works well.

Let me know your thoughts on comments below.

Enjoy reading.

Advertisements

One thought on “Making REST calls using C#

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s