All URIs are relative to https://api.hellosign.com/v3
Method | HTTP request | Description |
---|---|---|
FaxDelete | DELETE /fax/{fax_id} | Delete Fax |
FaxFiles | GET /fax/files/{fax_id} | List Fax Files |
FaxGet | GET /fax/{fax_id} | Get Fax |
FaxList | GET /fax/list | Lists Faxes |
FaxSend | POST /fax/send | Send Fax |
void FaxDelete (string faxId)
Delete Fax
Deletes the specified Fax from the system.
using System;
using System.Collections.Generic;
using System.IO;
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
public class Example
{
public static void Main()
{
var config = new Configuration();
config.Username = "YOUR_API_KEY";
var faxApi = new FaxApi(config);
try
{
faxApi.FaxDelete("fa5c8a0b0f492d768749333ad6fcc214c111e967");
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Delete Fax
apiInstance.FaxDeleteWithHttpInfo(faxId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling FaxApi.FaxDeleteWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
faxId | string | Fax ID |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | successful operation | * X-RateLimit-Limit - * X-RateLimit-Remaining - * X-Ratelimit-Reset - |
4XX | failed_operation | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
System.IO.Stream FaxFiles (string faxId)
List Fax Files
Returns list of fax files
using System;
using System.Collections.Generic;
using System.IO;
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
public class Example
{
public static void Main()
{
var config = new Configuration();
config.Username = "YOUR_API_KEY";
var faxApi = new FaxApi(config);
var faxId = "fa5c8a0b0f492d768749333ad6fcc214c111e967";
try
{
var result = faxApi.FaxFiles(faxId);
var fileStream = File.Create("file_response.pdf");
result.Seek(0, SeekOrigin.Begin);
result.CopyTo(fileStream);
fileStream.Close();
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// List Fax Files
ApiResponse<System.IO.Stream> response = apiInstance.FaxFilesWithHttpInfo(faxId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling FaxApi.FaxFilesWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
faxId | string | Fax ID |
System.IO.Stream
- Content-Type: Not defined
- Accept: application/pdf, application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | * X-RateLimit-Limit - * X-RateLimit-Remaining - * X-Ratelimit-Reset - |
4XX | failed_operation | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FaxGetResponse FaxGet (string faxId)
Get Fax
Returns information about fax
using System;
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
public class Example
{
public static void Main()
{
var config = new Configuration();
// Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
var faxApi = new FaxApi(config);
var faxId = "fa5c8a0b0f492d768749333ad6fcc214c111e967";
try
{
var result = faxApi.FaxGet(faxId);
Console.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get Fax
ApiResponse<FaxGetResponse> response = apiInstance.FaxGetWithHttpInfo(faxId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling FaxApi.FaxGetWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
faxId | string | Fax ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | * X-RateLimit-Limit - * X-RateLimit-Remaining - * X-Ratelimit-Reset - |
4XX | failed_operation | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FaxListResponse FaxList (int? page = null, int? pageSize = null)
Lists Faxes
Returns properties of multiple faxes
using System;
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
public class Example
{
public static void Main()
{
var config = new Configuration();
// Configure HTTP basic authorization: api_key
config.Username = "YOUR_API_KEY";
var faxApi = new FaxApi(config);
var page = 1;
var pageSize = 2;
try
{
var result = faxApi.FaxList(page, pageSize);
Console.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Lists Faxes
ApiResponse<FaxListResponse> response = apiInstance.FaxListWithHttpInfo(page, pageSize);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling FaxApi.FaxListWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
page | int? | Page | [optional] [default to 1] |
pageSize | int? | Page size | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | * X-RateLimit-Limit - * X-RateLimit-Remaining - * X-Ratelimit-Reset - |
4XX | failed_operation | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FaxGetResponse FaxSend (FaxSendRequest faxSendRequest)
Send Fax
Action to prepare and send a fax
using System;
using System.Collections.Generic;
using System.IO;
using Dropbox.Sign.Api;
using Dropbox.Sign.Client;
using Dropbox.Sign.Model;
public class Example
{
public static void Main()
{
var config = new Configuration();
config.Username = "YOUR_API_KEY";
var faxApi = new FaxApi(config);
var files = new List<Stream> {
new FileStream(
"./example_fax.pdf",
FileMode.Open,
FileAccess.Read,
FileShare.Read
)
};
var data = new FaxSendRequest(
files: files,
testMode: true,
recipient: "16690000001",
sender: "16690000000",
coverPageTo: "Jill Fax",
coverPageMessage: "I'm sending you a fax!",
coverPageFrom: "Faxer Faxerson",
title: "This is what the fax is about!",
);
try
{
var result = faxApi.FaxSend(data);
Console.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Dropbox Sign API: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Send Fax
ApiResponse<FaxGetResponse> response = apiInstance.FaxSendWithHttpInfo(faxSendRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling FaxApi.FaxSendWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
faxSendRequest | FaxSendRequest |
- Content-Type: application/json, multipart/form-data
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | * X-RateLimit-Limit - * X-RateLimit-Remaining - * X-Ratelimit-Reset - |
4XX | failed_operation | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]