{"id":13735085,"url":"https://github.com/sendgrid/csharp-http-client","last_synced_at":"2025-10-19T09:50:28.786Z","repository":{"id":5888997,"uuid":"53075159","full_name":"sendgrid/csharp-http-client","owner":"sendgrid","description":"Twilio SendGrid's C# HTTP Client for calling APIs","archived":false,"fork":false,"pushed_at":"2023-04-10T00:22:38.000Z","size":463,"stargazers_count":25,"open_issues_count":2,"forks_count":43,"subscribers_count":155,"default_branch":"main","last_synced_at":"2025-05-08T11:42:31.852Z","etag":null,"topics":["fluent-interface","http-client","rest-client"],"latest_commit_sha":null,"homepage":"https://sendgrid.com","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sendgrid.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-03-03T18:57:30.000Z","updated_at":"2024-12-14T06:53:17.000Z","dependencies_parsed_at":"2024-01-12T01:14:59.330Z","dependency_job_id":"17c884f3-f6bc-4ab7-92b9-923a54d876f4","html_url":"https://github.com/sendgrid/csharp-http-client","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/sendgrid/csharp-http-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendgrid%2Fcsharp-http-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendgrid%2Fcsharp-http-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendgrid%2Fcsharp-http-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendgrid%2Fcsharp-http-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sendgrid","download_url":"https://codeload.github.com/sendgrid/csharp-http-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendgrid%2Fcsharp-http-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273782752,"owners_count":25167211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fluent-interface","http-client","rest-client"],"created_at":"2024-08-03T03:01:02.835Z","updated_at":"2025-10-19T09:50:23.742Z","avatar_url":"https://github.com/sendgrid.png","language":"C#","funding_links":[],"categories":["Libraries"],"sub_categories":["Mail and SMTP Server"],"readme":"![SendGrid Logo](twilio_sendgrid_logo.png)\n\n[![Test and Deploy](https://github.com/sendgrid/csharp-http-client/actions/workflows/test-and-deploy.yml/badge.svg)](https://github.com/sendgrid/csharp-http-client/actions/workflows/test-and-deploy.yml)\n[![NuGet](https://img.shields.io/nuget/v/SendGrid.CSharp.Http.Client.svg)](https://www.nuget.org/packages/SendGrid.CSharp.HTTP.Client)\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n[![Twitter Follow](https://img.shields.io/twitter/follow/sendgrid.svg?style=social\u0026label=Follow)](https://twitter.com/sendgrid)\n[![GitHub contributors](https://img.shields.io/github/contributors/sendgrid/csharp-http-client.svg)](https://github.com/sendgrid/csharp-http-client/graphs/contributors)\n\n**Quickly and easily access any RESTful or RESTful-like API.**\n\nIf you are looking for the Twilio SendGrid API client library, please see [this repo](https://github.com/sendgrid/sendgrid-csharp).\n\n# Table of Contents\n\n* [Announcements](#announcements)\n* [Installation](#installation)\n* [Quick Start](#quick-start)\n* [Library Usage Documentation](USAGE.md)\n* [Use Cases](#use-cases)\n* [How to Contribute](#contribute)\n* [Thanks](#thanks)\n* [About](#about)\n* [Support](#support)\n* [License](#license)\n\n\u003ca name=\"announcements\"\u003e\u003c/a\u003e\n# Announcements\nAll updates to this project are documented in our [CHANGELOG](CHANGELOG.md).\n\n\u003ca name=\"installation\"\u003e\u003c/a\u003e\n# Installation\n\n## Prerequisites\n\n- .NET Framework 4.5+\n\n## Install Package\n\nTo use CSharp.HTTP.Client in your C# project, you can either \u003ca href=\"https://github.com/sendgrid/csharp-http-client.git\"\u003edownload the Twilio SendGrid C# .NET libraries directly from our Github repository\u003c/a\u003e or, if you have the NuGet package manager installed, you can grab them automatically.\n\n```\nPM\u003e Install-Package SendGrid.CSharp.Http.Client\n```\n\nOnce you have the library properly referenced in your project, you can include calls to them in your code.\nFor a sample implementation, check the [Example](Example) folder.\n\nAdd the following namespace to use the library:\n```csharp\nusing SendGrid.CSharp.HTTP.Client;\n```\n\n\u003ca name=\"quick-start\"\u003e\u003c/a\u003e\n# Quick Start\n\nHere is a quick example:\n\n`GET /your/api/{param}/call`\n\n```csharp\nusing SendGrid.CSharp.HTTP.Client;\nglobalRequestHeaders.Add(\"Authorization\", \"Bearer XXXXXXX\");\ndynamic client = new Client(host: baseUrl, requestHeaders: globalRequestHeaders);\nvar response = await client.your.api._(param).call.get()\nConsole.WriteLine(response.StatusCode);\nConsole.WriteLine(response.Body.ReadAsStringAsync().Result);\nConsole.WriteLine(response.Headers.ToString());\n```\n\n`POST /your/api/{param}/call` with headers, query parameters and a request body with versioning.\n\n```csharp\nusing SendGrid.CSharp.HTTP.Client;\nusing Newtonsoft.Json;\nglobalRequestHeaders.Add(\"Authorization\", \"Bearer XXXXXXX\");\ndynamic client = new Client(host: baseUrl, requestHeaders: globalRequestHeaders);\nstring queryParams = @\"{'Hello': 0, 'World': 1}\";\nrequestHeaders.Add(\"X-Test\", \"test\");\nstring requestBody = @\"{'some': 1, 'awesome': 2, 'data': 3}\";\nObject json = JsonConvert.DeserializeObject\u003cObject\u003e(requestBody);\nvar response = await client.your.api._(param).call.post(requestBody: json.ToString(),\n                                                  queryParams: queryParams,\n                                                  requestHeaders: requestHeaders)\nConsole.WriteLine(response.StatusCode);\nConsole.WriteLine(response.Body.ReadAsStringAsync().Result);\nConsole.WriteLine(response.Headers.ToString());\n```\n\n\u003ca name=\"use-cases\"\u003e\u003c/a\u003e\n# Use Cases\n\nYou can find a selection of use cases for this library in our [Use Cases](/UseCases/README.md) directory.\n\n\u003ca name=\"contribute\"\u003e\u003c/a\u003e\n# How to Contribute\n\nWe encourage contribution to our projects, please see our [CONTRIBUTING](CONTRIBUTING.md) guide for details.\n\nQuick links:\n\n- [Feature Request](CONTRIBUTING.md#feature-request)\n- [Bug Reports](CONTRIBUTING.md#submit-a-bug-report)\n- [Improvements to the Codebase](CONTRIBUTING.md#improvements-to-the-codebase)\n\n\u003ca name=\"thanks\"\u003e\u003c/a\u003e\n# Thanks\n\nWe were inspired by the work done on [birdy](https://github.com/inueni/birdy) and [universalclient](https://github.com/dgreisen/universalclient).\n\n\u003ca name=\"about\"\u003e\u003c/a\u003e\n# About\n\ncsharp-http-client is maintained and funded by Twilio SendGrid, Inc. The names and logos for csharp-http-client are trademarks of Twilio SendGrid, Inc.\n\n\u003ca name=\"support\"\u003e\u003c/a\u003e\n\nIf you need help using SendGrid, please check the [Twilio SendGrid Support Help Center](https://support.sendgrid.com).\n\n\n# License\n[The MIT License (MIT)](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsendgrid%2Fcsharp-http-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsendgrid%2Fcsharp-http-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsendgrid%2Fcsharp-http-client/lists"}