All Projects → sendgrid → csharp-http-client

sendgrid / csharp-http-client

Licence: MIT license
Twilio SendGrid's C# HTTP Client for calling APIs

Programming Languages

C#
18002 projects
Makefile
30231 projects

Projects that are alternatives of or similar to csharp-http-client

Frequest
FRequest - A fast, lightweight and opensource desktop application to make HTTP(s) requests
Stars: ✭ 130 (+420%)
Mutual labels:  http-client, rest-client
Rester
A REST client for almost any web service (Firefox and Chrome Extension)
Stars: ✭ 192 (+668%)
Mutual labels:  http-client, rest-client
Python Simple Rest Client
Simple REST client for python 3.6+
Stars: ✭ 143 (+472%)
Mutual labels:  http-client, rest-client
Fluentlyhttpclient
Http Client for .NET Standard with fluent APIs which are intuitive, easy to use and also highly extensible.
Stars: ✭ 73 (+192%)
Mutual labels:  http-client, rest-client
1c http
Подсистема 1С для работы с HTTP
Stars: ✭ 48 (+92%)
Mutual labels:  http-client, fluent-interface
Restclient Cpp
C++ client for making HTTP/REST requests
Stars: ✭ 1,206 (+4724%)
Mutual labels:  http-client, rest-client
Fshttp
A lightweight F# HTTP library.
Stars: ✭ 181 (+624%)
Mutual labels:  http-client, rest-client
Restclient
🦄 Simple HTTP and REST client for Unity based on Promises, also supports Callbacks! 🎮
Stars: ✭ 675 (+2600%)
Mutual labels:  http-client, rest-client
Proxy
The type-safe REST library for .NET Standard 2.0 (NetCoreStack Flying Proxy)
Stars: ✭ 40 (+60%)
Mutual labels:  http-client, rest-client
unity-simple-http
A dead simple HTTP client for Unity3D
Stars: ✭ 32 (+28%)
Mutual labels:  http-client, rest-client
Rx.Http
A reactive way to make HTTP Request in .NET Core 🚀
Stars: ✭ 62 (+148%)
Mutual labels:  http-client, rest-client
restofus
Restofus - a cross-platform (REST) API client.
Stars: ✭ 18 (-28%)
Mutual labels:  http-client, rest-client
Rest Client
A tool for automated testing REST API, generating exquisite testing report and REST API documentation.
Stars: ✭ 1,181 (+4624%)
Mutual labels:  http-client, rest-client
Fetcher Ts
Type-safe wrapper around Fetch API
Stars: ✭ 87 (+248%)
Mutual labels:  http-client, rest-client
Hoodie
Hoodie is a type safe wrapper around jersey http client
Stars: ✭ 22 (-12%)
Mutual labels:  http-client, rest-client
Crest
HTTP and REST client for Crystal
Stars: ✭ 174 (+596%)
Mutual labels:  http-client, rest-client
Vial Http
Simple http rest tool for vim
Stars: ✭ 412 (+1548%)
Mutual labels:  http-client, rest-client
Resty
Simple HTTP and REST client library for Go
Stars: ✭ 5,368 (+21372%)
Mutual labels:  http-client, rest-client
Rump
REST client for Java that allows for easy configuration and default values. Allows for quick request construction and a huge range of modifications by using response/request interceptors, adjusting default values related to HTTP requests and creating custom instances for when you need multiple API connection setups.
Stars: ✭ 55 (+120%)
Mutual labels:  http-client, rest-client
NClient
💫 NClient is an automatic type-safe .Net HTTP client that allows you to call web service API methods using annotated interfaces or controllers without boilerplate code.
Stars: ✭ 25 (+0%)
Mutual labels:  http-client, rest-client

SendGrid Logo

Test and Deploy NuGet MIT licensed Twitter Follow GitHub contributors

Quickly and easily access any RESTful or RESTful-like API.

If you are looking for the Twilio SendGrid API client library, please see this repo.

Table of Contents

Announcements

All updates to this project are documented in our CHANGELOG.

Installation

Prerequisites

  • .NET Framework 4.5+

Install Package

To use CSharp.HTTP.Client in your C# project, you can either download the Twilio SendGrid C# .NET libraries directly from our Github repository or, if you have the NuGet package manager installed, you can grab them automatically.

PM> Install-Package SendGrid.CSharp.Http.Client

Once you have the library properly referenced in your project, you can include calls to them in your code. For a sample implementation, check the Example folder.

Add the following namespace to use the library:

using SendGrid.CSharp.HTTP.Client;

Quick Start

Here is a quick example:

GET /your/api/{param}/call

using SendGrid.CSharp.HTTP.Client;
globalRequestHeaders.Add("Authorization", "Bearer XXXXXXX");
dynamic client = new Client(host: baseUrl, requestHeaders: globalRequestHeaders);
var response = await client.your.api._(param).call.get()
Console.WriteLine(response.StatusCode);
Console.WriteLine(response.Body.ReadAsStringAsync().Result);
Console.WriteLine(response.Headers.ToString());

POST /your/api/{param}/call with headers, query parameters and a request body with versioning.

using SendGrid.CSharp.HTTP.Client;
using Newtonsoft.Json;
globalRequestHeaders.Add("Authorization", "Bearer XXXXXXX");
dynamic client = new Client(host: baseUrl, requestHeaders: globalRequestHeaders);
string queryParams = @"{'Hello': 0, 'World': 1}";
requestHeaders.Add("X-Test", "test");
string requestBody = @"{'some': 1, 'awesome': 2, 'data': 3}";
Object json = JsonConvert.DeserializeObject<Object>(requestBody);
var response = await client.your.api._(param).call.post(requestBody: json.ToString(),
                                                  queryParams: queryParams,
                                                  requestHeaders: requestHeaders)
Console.WriteLine(response.StatusCode);
Console.WriteLine(response.Body.ReadAsStringAsync().Result);
Console.WriteLine(response.Headers.ToString());

Use Cases

You can find a selection of use cases for this library in our Use Cases directory.

How to Contribute

We encourage contribution to our projects, please see our CONTRIBUTING guide for details.

Quick links:

Thanks

We were inspired by the work done on birdy and universalclient.

About

csharp-http-client is maintained and funded by Twilio SendGrid, Inc. The names and logos for csharp-http-client are trademarks of Twilio SendGrid, Inc.

If you need help using SendGrid, please check the Twilio SendGrid Support Help Center.

License

The MIT License (MIT)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].