Skip to content

WouterJanson/TransIP.NET

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

37 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TransIP.NET

A client library for the TransIP API

GitHub issues license NuGet bunq.me

A .Net Core client library for the TransIP Api, based on the original work of jwvdiermen.

Installation

NuGet:

PM> Install-Package TransIP.NET

Usage example

Here are some code example on how to use the TransIP.NET package, currently only the DomainService is supported.

using TransIp.Api;
using TransIp.Api.Dto;

//
// Retrieve current DNS entries and add a record
//
var domainService = new DomainService("YourUsername", ClientMode.ReadWrite, "YourPrivateKey");

var info = await domainService.GetInfoAsync("example.com");
var entries = info.DnsEntries.ToList();
entries.Add(new DnsEntry
{
	Name = "local",
	Type = DnsEntryType.A,
	Expire = 3600, // 1 hour
	Content = "127.0.0.1"
});
await domainService.SetDnsEntriesAsync("example.com", entries.ToArray());

Release History

  • 1.1.0
    • Added async methods
    • Added ToString() method for DnsEntry
  • 1.0.0
    • Initial release

TODO

  • Add other services
  • Re-add unit tests
  • Write more example code

Contributing

  1. Fork it (https://github.com/WouterJanson/TransIP.NET/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

Credits

Thanks to jwvdiermen for the initial version 4 years ago.

About

🌐 Client library for the TransIP API written in C#.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%