REST Client for .Net

Setup

Install Ekin.Rest Nuget package

You can install the Rest.Ekin Nuget package in your project using the package manager in Visual Studio. The below example uses Visual Studio 2015 Community Edition, which is free of charge.

Sample Code

Get

Here is how you could get a Url:

Ekin.Rest.Client restClient = new Ekin.Rest.Client(Url);
Ekin.Rest.Response response = restClient.Get();
if (response.Status == System.Net.HttpStatusCode.OK)
{
     // Do something with response.Content
}

About the Author

Ekin Caglar
I’m a business-minded techie and I help medium-to-large organisations build complex online solutions. I've been coding since 1987 and I've been on the Internet since 1993. You can reach me at ekin@caglar.com and follow me on twitter.com/ekincaglar.

Comments