A client library for the TransIP API
A .Net Core client library for the TransIP Api, based on the original work of jwvdiermen.
NuGet:
PM> Install-Package TransIP.NET
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());
- 1.1.0
- Added
async
methods - Added
ToString()
method forDnsEntry
- Added
- 1.0.0
- Initial release
- Add other services
- Re-add unit tests
- Write more example code
- Fork it (https://github.com/WouterJanson/TransIP.NET/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
Thanks to jwvdiermen for the initial version 4 years ago.