Skip to content

tailored-apps/hrd-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HRD API .NET Library

This project provides a .NET 8 port of the PHP based HRD API client. Only a subset of the full PHP API is implemented but most common actions are available.

Features

  • Connects to the HRD API over SSL/TCP.
  • Login using login/password.
  • Retrieve partner balance information.
  • Domain operations (info, create, renew, update, trade, whois, DNS changes).
  • Certificate operations (info, create, renew).
  • Poll, user and news endpoints.

Secrets

Create secrets.json file next to verify_php.php file and provide following data required for connection , those data you should generate from hrd admin panel.

{
  "login": "your_login",
  "password": "generated_password",
  "apiKeyHex": "generated_key"
}

Usage

using HrdApiNet;

await using var api = new HRDApi();
api.SetHash(Convert.FromHexString("<apiHashHex>"));
await api.LoginAsync("<login>", "<pass>", "partner");
var balance = await api.PartnerGetBalanceAsync();
var domainInfo = await api.DomainInfoAsync("example.com");

This library is based on the original PHP implementation found in src/HRDApi.php.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors