|
| 1 | +# Dropbox\Sign\FaxApi |
| 2 | + |
| 3 | +All URIs are relative to https://api.hellosign.com/v3. |
| 4 | + |
| 5 | +| Method | HTTP request | Description | |
| 6 | +| ------------- | ------------- | ------------- | |
| 7 | +| [**faxDelete()**](FaxApi.md#faxDelete) | **DELETE** /fax/{fax_id} | Delete Fax | |
| 8 | +| [**faxFiles()**](FaxApi.md#faxFiles) | **GET** /fax/files/{fax_id} | List Fax Files | |
| 9 | +| [**faxGet()**](FaxApi.md#faxGet) | **GET** /fax/{fax_id} | Get Fax | |
| 10 | +| [**faxList()**](FaxApi.md#faxList) | **GET** /fax/list | Lists Faxes | |
| 11 | +| [**faxSend()**](FaxApi.md#faxSend) | **POST** /fax/send | Send Fax | |
| 12 | + |
| 13 | + |
| 14 | +## `faxDelete()` |
| 15 | + |
| 16 | +```php |
| 17 | +faxDelete($fax_id) |
| 18 | +``` |
| 19 | +Delete Fax |
| 20 | + |
| 21 | +Deletes the specified Fax from the system. |
| 22 | + |
| 23 | +### Example |
| 24 | + |
| 25 | +```php |
| 26 | +<?php |
| 27 | + |
| 28 | +require_once __DIR__ . "/vendor/autoload.php"; |
| 29 | + |
| 30 | +$config = Dropbox\Sign\Configuration::getDefaultConfiguration(); |
| 31 | + |
| 32 | +// Configure HTTP basic authorization: api_key |
| 33 | +$config->setUsername("YOUR_API_KEY"); |
| 34 | + |
| 35 | +$faxApi = new Dropbox\Sign\Api\FaxApi($config); |
| 36 | + |
| 37 | +try { |
| 38 | + $faxApi->faxDelete("fa5c8a0b0f492d768749333ad6fcc214c111e967"); |
| 39 | +} catch (Dropbox\Sign\ApiException $e) { |
| 40 | + $error = $e->getResponseObject(); |
| 41 | + echo "Exception when calling Dropbox Sign API: " |
| 42 | + . print_r($error->getError()); |
| 43 | +} |
| 44 | + |
| 45 | +``` |
| 46 | + |
| 47 | +### Parameters |
| 48 | + |
| 49 | +|Name | Type | Description | Notes | |
| 50 | +| ------------- | ------------- | ------------- | ------------- | |
| 51 | +| **fax_id** | **string**| Fax ID | | |
| 52 | + |
| 53 | +### Return type |
| 54 | + |
| 55 | +void (empty response body) |
| 56 | + |
| 57 | +### Authorization |
| 58 | + |
| 59 | +[api_key](../../README.md#api_key) |
| 60 | + |
| 61 | +### HTTP request headers |
| 62 | + |
| 63 | +- **Content-Type**: Not defined |
| 64 | +- **Accept**: `application/json` |
| 65 | + |
| 66 | +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) |
| 67 | +[[Back to Model list]](../../README.md#models) |
| 68 | +[[Back to README]](../../README.md) |
| 69 | + |
| 70 | +## `faxFiles()` |
| 71 | + |
| 72 | +```php |
| 73 | +faxFiles($fax_id): \SplFileObject |
| 74 | +``` |
| 75 | +List Fax Files |
| 76 | + |
| 77 | +Returns list of fax files |
| 78 | + |
| 79 | +### Example |
| 80 | + |
| 81 | +```php |
| 82 | +<?php |
| 83 | + |
| 84 | +require_once __DIR__ . "/vendor/autoload.php"; |
| 85 | + |
| 86 | +$config = Dropbox\Sign\Configuration::getDefaultConfiguration(); |
| 87 | + |
| 88 | +// Configure HTTP basic authorization: api_key |
| 89 | +$config->setUsername("YOUR_API_KEY"); |
| 90 | + |
| 91 | +$faxApi = new Dropbox\Sign\Api\FaxApi($config); |
| 92 | + |
| 93 | +$faxId = "fa5c8a0b0f492d768749333ad6fcc214c111e967"; |
| 94 | + |
| 95 | +try { |
| 96 | + $result = $faxApi->faxFiles($faxId); |
| 97 | + copy($result->getRealPath(), __DIR__ . '/file_response.pdf'); |
| 98 | +} catch (Dropbox\Sign\ApiException $e) { |
| 99 | + $error = $e->getResponseObject(); |
| 100 | + echo "Exception when calling Dropbox Sign API: " |
| 101 | + . print_r($error->getError()); |
| 102 | +} |
| 103 | + |
| 104 | +``` |
| 105 | + |
| 106 | +### Parameters |
| 107 | + |
| 108 | +|Name | Type | Description | Notes | |
| 109 | +| ------------- | ------------- | ------------- | ------------- | |
| 110 | +| **fax_id** | **string**| Fax ID | | |
| 111 | + |
| 112 | +### Return type |
| 113 | + |
| 114 | +**\SplFileObject** |
| 115 | + |
| 116 | +### Authorization |
| 117 | + |
| 118 | +[api_key](../../README.md#api_key) |
| 119 | + |
| 120 | +### HTTP request headers |
| 121 | + |
| 122 | +- **Content-Type**: Not defined |
| 123 | +- **Accept**: `application/pdf`, `application/json` |
| 124 | + |
| 125 | +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) |
| 126 | +[[Back to Model list]](../../README.md#models) |
| 127 | +[[Back to README]](../../README.md) |
| 128 | + |
| 129 | +## `faxGet()` |
| 130 | + |
| 131 | +```php |
| 132 | +faxGet($fax_id): \Dropbox\Sign\Model\FaxGetResponse |
| 133 | +``` |
| 134 | +Get Fax |
| 135 | + |
| 136 | +Returns information about fax |
| 137 | + |
| 138 | +### Example |
| 139 | + |
| 140 | +```php |
| 141 | +<?php |
| 142 | + |
| 143 | +require_once __DIR__ . "/vendor/autoload.php"; |
| 144 | + |
| 145 | +$config = Dropbox\Sign\Configuration::getDefaultConfiguration(); |
| 146 | + |
| 147 | +// Configure HTTP basic authorization: api_key |
| 148 | +$config->setUsername("YOUR_API_KEY"); |
| 149 | + |
| 150 | +$faxApi = new Dropbox\Sign\Api\FaxApi($config); |
| 151 | + |
| 152 | +$faxId = "fa5c8a0b0f492d768749333ad6fcc214c111e967"; |
| 153 | + |
| 154 | +try { |
| 155 | + $result = $faxApi->faxGet($faxId); |
| 156 | + print_r($result); |
| 157 | +} catch (Dropbox\Sign\ApiException $e) { |
| 158 | + $error = $e->getResponseObject(); |
| 159 | + echo "Exception when calling Dropbox Sign API: " |
| 160 | + . print_r($error->getError()); |
| 161 | +} |
| 162 | + |
| 163 | +``` |
| 164 | + |
| 165 | +### Parameters |
| 166 | + |
| 167 | +|Name | Type | Description | Notes | |
| 168 | +| ------------- | ------------- | ------------- | ------------- | |
| 169 | +| **fax_id** | **string**| Fax ID | | |
| 170 | + |
| 171 | +### Return type |
| 172 | + |
| 173 | +[**\Dropbox\Sign\Model\FaxGetResponse**](../Model/FaxGetResponse.md) |
| 174 | + |
| 175 | +### Authorization |
| 176 | + |
| 177 | +[api_key](../../README.md#api_key) |
| 178 | + |
| 179 | +### HTTP request headers |
| 180 | + |
| 181 | +- **Content-Type**: Not defined |
| 182 | +- **Accept**: `application/json` |
| 183 | + |
| 184 | +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) |
| 185 | +[[Back to Model list]](../../README.md#models) |
| 186 | +[[Back to README]](../../README.md) |
| 187 | + |
| 188 | +## `faxList()` |
| 189 | + |
| 190 | +```php |
| 191 | +faxList($page, $page_size): \Dropbox\Sign\Model\FaxListResponse |
| 192 | +``` |
| 193 | +Lists Faxes |
| 194 | + |
| 195 | +Returns properties of multiple faxes |
| 196 | + |
| 197 | +### Example |
| 198 | + |
| 199 | +```php |
| 200 | +<?php |
| 201 | + |
| 202 | +require_once __DIR__ . "/vendor/autoload.php"; |
| 203 | + |
| 204 | +$config = Dropbox\Sign\Configuration::getDefaultConfiguration(); |
| 205 | + |
| 206 | +// Configure HTTP basic authorization: api_key |
| 207 | +$config->setUsername("YOUR_API_KEY"); |
| 208 | + |
| 209 | +$faxApi = new Dropbox\Sign\Api\FaxApi($config); |
| 210 | + |
| 211 | +$page = 1; |
| 212 | +$pageSize = 2; |
| 213 | + |
| 214 | +try { |
| 215 | + $result = $faxApi->faxList($page, $pageSize); |
| 216 | + print_r($result); |
| 217 | +} catch (Dropbox\Sign\ApiException $e) { |
| 218 | + $error = $e->getResponseObject(); |
| 219 | + echo "Exception when calling Dropbox Sign API: " |
| 220 | + . print_r($error->getError()); |
| 221 | +} |
| 222 | + |
| 223 | +``` |
| 224 | + |
| 225 | +### Parameters |
| 226 | + |
| 227 | +|Name | Type | Description | Notes | |
| 228 | +| ------------- | ------------- | ------------- | ------------- | |
| 229 | +| **page** | **int**| Page | [optional] [default to 1] | |
| 230 | +| **page_size** | **int**| Page size | [optional] [default to 20] | |
| 231 | + |
| 232 | +### Return type |
| 233 | + |
| 234 | +[**\Dropbox\Sign\Model\FaxListResponse**](../Model/FaxListResponse.md) |
| 235 | + |
| 236 | +### Authorization |
| 237 | + |
| 238 | +[api_key](../../README.md#api_key) |
| 239 | + |
| 240 | +### HTTP request headers |
| 241 | + |
| 242 | +- **Content-Type**: Not defined |
| 243 | +- **Accept**: `application/json` |
| 244 | + |
| 245 | +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) |
| 246 | +[[Back to Model list]](../../README.md#models) |
| 247 | +[[Back to README]](../../README.md) |
| 248 | + |
| 249 | +## `faxSend()` |
| 250 | + |
| 251 | +```php |
| 252 | +faxSend($fax_send_request): \Dropbox\Sign\Model\FaxGetResponse |
| 253 | +``` |
| 254 | +Send Fax |
| 255 | + |
| 256 | +Action to prepare and send a fax |
| 257 | + |
| 258 | +### Example |
| 259 | + |
| 260 | +```php |
| 261 | +<?php |
| 262 | + |
| 263 | +require_once __DIR__ . "/vendor/autoload.php"; |
| 264 | + |
| 265 | +$config = Dropbox\Sign\Configuration::getDefaultConfiguration(); |
| 266 | + |
| 267 | +// Configure HTTP basic authorization: api_key |
| 268 | +$config->setUsername("YOUR_API_KEY"); |
| 269 | + |
| 270 | +$faxApi = new Dropbox\Sign\Api\FaxApi($config); |
| 271 | + |
| 272 | +$data = new Dropbox\Sign\Model\FaxSendRequest(); |
| 273 | +$data->setFiles([new SplFileObject(__DIR__ . "/example_signature_request.pdf")]) |
| 274 | + ->setTestMode(true) |
| 275 | + ->setRecipient("16690000001") |
| 276 | + ->setSender("16690000000") |
| 277 | + ->setCoverPageTo("Jill Fax") |
| 278 | + ->setCoverPageMessage("I'm sending you a fax!") |
| 279 | + ->setCoverPageFrom("Faxer Faxerson") |
| 280 | + ->setTitle("This is what the fax is about!"); |
| 281 | + |
| 282 | +try { |
| 283 | + $result = $faxApi->faxSend($data); |
| 284 | + print_r($result); |
| 285 | +} catch (Dropbox\Sign\ApiException $e) { |
| 286 | + $error = $e->getResponseObject(); |
| 287 | + echo "Exception when calling Dropbox Sign API: " |
| 288 | + . print_r($error->getError()); |
| 289 | +} |
| 290 | + |
| 291 | +``` |
| 292 | + |
| 293 | +### Parameters |
| 294 | + |
| 295 | +|Name | Type | Description | Notes | |
| 296 | +| ------------- | ------------- | ------------- | ------------- | |
| 297 | +| **fax_send_request** | [**\Dropbox\Sign\Model\FaxSendRequest**](../Model/FaxSendRequest.md)| | | |
| 298 | + |
| 299 | +### Return type |
| 300 | + |
| 301 | +[**\Dropbox\Sign\Model\FaxGetResponse**](../Model/FaxGetResponse.md) |
| 302 | + |
| 303 | +### Authorization |
| 304 | + |
| 305 | +[api_key](../../README.md#api_key) |
| 306 | + |
| 307 | +### HTTP request headers |
| 308 | + |
| 309 | +- **Content-Type**: `application/json`, `multipart/form-data` |
| 310 | +- **Accept**: `application/json` |
| 311 | + |
| 312 | +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) |
| 313 | +[[Back to Model list]](../../README.md#models) |
| 314 | +[[Back to README]](../../README.md) |
0 commit comments