Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 

nfsnclient-java

API HTTP REST client for Nearly Free Speech.net's API.

Things working:

Accounts

  • Balance
  • Balance Cash
  • Balance High
  • Balance Credit
  • Friendly Name
  • Status
  • Sites

Example:

String login = props.getProperty("apiuser");
String apiKey = props.getProperty("apikey");
String account = props.getProperty("account");

NFSNAPIManager api = new NFSNAPIManager(login, apiKey);
NFSNAccount acc = api.getAccount(account);

double balance = acc.getBalance();

See AccountTests.java for more info (and a full example).

DNS

  • Expire
  • TTL
  • Refresh
  • Retry
  • Serial
  • Listing Resource Records (name, type, data)
String login = props.getProperty("apiuser");
String apiKey = props.getProperty("apikey");
String domain = props.getProperty("domain");

NFSNAPIManager api = new NFSNAPIManager(login, apiKey);
NFSNDns dns = api.getDNS(domain);

long expire = dns.getExpire();

DNSResourceRecord[] rrs = dns.getAllRecords();
DNSResourceRecord[] typeARrs = dns.getRecordsByType("A");

See DNSTests.java for more info (and a full example).

About

API HTTP REST client for Nearly Free Speech.net's API.

Resources

Releases

No releases published

Packages

No packages published