public class FaxRepository extends Object
| Constructor and Description |
|---|
FaxRepository(Requests client) |
| Modifier and Type | Method and Description |
|---|---|
Fax |
create(Map<String,Object> options)
Sends a fax
|
Iterable<Fax> |
list()
Lists sent faxes
|
Iterable<Fax> |
list(Map<String,Object> filters)
Lists sent faxes that match the given filters
|
Fax |
retrieve(int id)
Retrieves a fax by id
|
void |
testReceiveCallback(Map<String,Object> options)
Sends a request to Phaxio to test a callback (web hook).
|
public FaxRepository(Requests client)
public Fax create(Map<String,Object> options)
options - A HashMap representing all the parameters for the fax. See the Phaxio documentation for the exact parameter names.
Note that for fields that allow multiple items, use square brackets in the key and a Collection as the value.
Files can be added as File, a String file path or wrapped in new FileStream(inputStream, fileName).public Fax retrieve(int id)
id - The ID of the fax you'd like to retrievepublic Iterable<Fax> list(Map<String,Object> filters)
filters - The filters to apply (see the API documentation for parameters)Copyright © 2018. All rights reserved.