public class PhoneNumberRepository extends Object
| Constructor and Description |
|---|
PhoneNumberRepository(Requests client) |
| Modifier and Type | Method and Description |
|---|---|
PhoneNumber |
create(String countryCode,
String areaCode)
Provisions a new fax number.
|
PhoneNumber |
create(String countryCode,
String areaCode,
String callbackUrl)
Provisions a new fax number.
|
Iterable<PhoneNumber> |
list()
Lists the phone numbers provisioned to your account.
|
Iterable<PhoneNumber> |
list(Map<String,Object> filters)
Lists the phone numbers provisioned to your account.
|
PhoneNumber |
retrieve(String number)
Gets the information for a phone number
|
public PhoneNumberRepository(Requests client)
public PhoneNumber create(String countryCode, String areaCode)
countryCode - The country code to provsion the number in.areaCode - The area code to provsion the number in.public PhoneNumber create(String countryCode, String areaCode, String callbackUrl)
countryCode - The country code to provsion the number in.areaCode - The area code to provsion the number in.callbackUrl - The URL that Phaxio will post to when a fax is recieved at this number.public PhoneNumber retrieve(String number)
number - The number to retrievepublic Iterable<PhoneNumber> list()
public Iterable<PhoneNumber> list(Map<String,Object> filters)
filters - The filters to apply (see the API documentation for parameters)Copyright © 2018. All rights reserved.