Skip to main content

Apito REST API Integration with C# Project

RestClient is a simple class found in dot net api to make http calls. Its fairly simple and easy to use. You can find more about this class here

Using RestClient


Always remember to replace API_SECRET of the Bearer Token and project-id of the URL with the correct value from apito console. Go to this page if you do not know where to find your api secrets and endpoints for your project

var client = new RestClient("");
var request = new RestRequest(Method.GET);
request.AddHeader("content-type", "application/json");
request.AddHeader("authorization", "Bearer API_SECRETS");
IRestResponse response = client.Execute(request);