Phaxio API Java Client Library
Java 1.5 or later.
You'll need to manually install the following JARs:
- The Phaxio JAR
- Google Gson from http://google-gson.googlecode.com/files/google-gson-2.2.4-release.zip.
- Clone or download the repository
- cd phaxio-java
- mkdir lib && cd lib && wget http://google-gson.googlecode.com/files/google-gson-2.2.4-release.zip && unzip google-gson-2.2.4-release.zip
- run 'ant jar'
- jar can be found in the dist directory
Phaxio.apiKey = "your_api_key";
Phaxio.apiSecret = "your_api_secret";
Map<String,Object> options = new HashMap<String,Object>();
options.put("string_data", "asdf");
List<String> phoneNumbers = new ArrayList<String>();
phoneNumbers.add("4141234567");
List<File> files = new ArrayList<File>();
files.add(new File("./test/apple.pdf"));
Long faxId = Fax.send(phoneNumbers, files, options);