Safeguard your online presence with our cutting-edge AI technology. Start scanning for malicious domains now to ensure your digital safety and peace of mind.
$ dotnet add package secwebapisecwebapi is a C# library designed to interact with the Secwe API. It provides a simple and intuitive interface for sending requests and processing responses from the API.
To install secwebapi, you need to have .NET installed on your system. If you don't have .NET installed, you can download it from the official website.
Once .NET is installed, you can install secwebapi by adding it as a NuGet package to your project.
In Visual Studio, you can do this by right-clicking on your project in the Solution Explorer, selecting "Manage NuGet Packages...", and then searching for secwebapi.
Here's an example of how you can use secwebapi to send a request to the Secweb API:
using System;
using secwebapi;
namespace secwe
{
internal class Program
{
static void Main(string[] args)
{
string _username = "__USERNAME__";
string _apiKey = "__APIKEY__";
var secwe_client = new Secweb(
_username,
_apiKey
);
var result = secwe_client.Get("example.com").Result;
Console.WriteLine($"Domain: {result.domain}, Prediction: {result.prediction}");
Console.ReadLine();
}
}
}