Skip to content
API HTTP REST client for Nearly Free Speech.net's API.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config/pmd
src
.gitignore
README.md
build.gradle

README.md

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).

You can’t perform that action at this time.