资源说明:Phaxio API Java Client Library
# Phaxio [![Build Status](https://travis-ci.org/phaxio/phaxio-java.svg?branch=master)](https://travis-ci.org/phaxio/phaxio-java) Phaxio is the only cloud based fax API designed for developers. This is the Java client library for Phaxio. ## Getting started First, [sign up](https://console.phaxio.com/signup) if you haven't already. Second, go to [api settings](https://console.phaxio.com/apiSettings) and get your key and your secret. Third, add this library as a dependency in your pom.xml:Check [here](https://mvnrepository.com/artifact/com.phaxio/phaxio-java) to make sure you're using the latest version. Use [this guide](QUICKSTART.md) for basic usage. ## Proxy support You can use an HTTP proxy with this library by setting system properies: System.setProperty("http.proxyHost", "my-proxy-host"); System.setProperty("http.proxyPort", "my-proxy-port"); ## Migration from previous library version This is a complete re-write and starts from scratch in its design. Please see the above documentation about how to use the new library and its calls. ## Migration from API V1 to V2 This library now uses Phaxio API V2, so these methods have been removed and have no equivalent: - Phaxcode.attachToPdf was removed - HostedDocument was removed ## Errors Operations that connect to Phaxio will throw an exception if an error is encountered. RateLimitException happens if you have made too many requests per second. InvalidRequestException is throw if the data sent to Phaxio is not correct AuthenticationException gets thrown when your credentials are invalid NotFoundException is throw when you try to retrieve a resource by ID but it isn't found ApiConnectionException occurs when there is a network issue ServerException happens if the server is not working PhaxioClientException occurs when there's a problem with this library. Do not try to handle this error - report any instances to support. ### Rate limiting The Phaxio API is rate limited. If you make too many requests too quickly, you might receive this error. Check the exception message, wait a second, and then try your request again. ## Writing callbacks (webhooks) Writing a callback to get fax send or receive events is simple. Read this [handy guide](CALLBACKS.md) to get started. © 2016-2018 Phaxio com.phaxio phaxio-java 0.4.1
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。