C# SDK
Install and use the RankVectors C# SDK
Installation
dotnet add package RankVectors
Quick Start
using RankVectors.Api;
using RankVectors.Model;
var configuration = new Configuration();
configuration.ApiKey.Add("Authorization", "YOUR_API_KEY");
var apiInstance = new ProjectsApi(configuration);
var createProjectRequest = new CreateProjectRequest(
name: "My Website",
domain: "https://example.com",
preferredSdk: "csharp"
);
try
{
var project = apiInstance.CreateProject(createProjectRequest);
Console.WriteLine($"Project created: {project.Id}");
}
catch (ApiException e)
{
Console.WriteLine($"Exception: {e.Message}");
}
More Examples
See the API Reference for complete API documentation.