Skip to content

mailslurp_netstandard_2x.Api.ExportControllerApi

All URIs are relative to https://csharp.api.mailslurp.com

Method HTTP request Description
ExportEntities GET /export Export inboxes link callable via browser
GetExportLink POST /export Get export link

List ExportEntities (string exportType, string apiKey, string outputFormat, string filter = null, string listSeparatorToken = null, bool? excludePreviouslyExported = null, DateTime? createdEarliestTime = null, DateTime? createdOldestTime = null)

Export inboxes link callable via browser

Example

using System.Collections.Generic;
using System.Diagnostics;
using mailslurp_netstandard_2x.Api;
using mailslurp_netstandard_2x.Client;
using mailslurp_netstandard_2x.Model;

namespace Example
{
    public class ExportEntitiesExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://csharp.api.mailslurp.com";
            // Configure API key authorization: API_KEY
            config.AddApiKey("x-api-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // config.AddApiKeyPrefix("x-api-key", "Bearer");

            var apiInstance = new ExportControllerApi(config);
            var exportType = exportType_example;  // string | 
            var apiKey = apiKey_example;  // string | 
            var outputFormat = outputFormat_example;  // string | 
            var filter = filter_example;  // string |  (optional) 
            var listSeparatorToken = listSeparatorToken_example;  // string |  (optional) 
            var excludePreviouslyExported = true;  // bool? |  (optional) 
            var createdEarliestTime = 2013-10-20T19:20:30+01:00;  // DateTime? |  (optional) 
            var createdOldestTime = 2013-10-20T19:20:30+01:00;  // DateTime? |  (optional) 

            try
            {
                // Export inboxes link callable via browser
                List<byte[]> result = apiInstance.ExportEntities(exportType, apiKey, outputFormat, filter, listSeparatorToken, excludePreviouslyExported, createdEarliestTime, createdOldestTime);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ExportControllerApi.ExportEntities: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
exportType string
apiKey string
outputFormat string
filter string [optional]
listSeparatorToken string [optional]
excludePreviouslyExported bool? [optional]
createdEarliestTime DateTime? [optional]
createdOldestTime DateTime? [optional]

Return type

List

Authorization

API_KEY

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to ]

ExportLink GetExportLink (string exportType, ExportOptions exportOptions, string apiKey = null)

Get export link

Example

using System.Collections.Generic;
using System.Diagnostics;
using mailslurp_netstandard_2x.Api;
using mailslurp_netstandard_2x.Client;
using mailslurp_netstandard_2x.Model;

namespace Example
{
    public class GetExportLinkExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://csharp.api.mailslurp.com";
            // Configure API key authorization: API_KEY
            config.AddApiKey("x-api-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // config.AddApiKeyPrefix("x-api-key", "Bearer");

            var apiInstance = new ExportControllerApi(config);
            var exportType = exportType_example;  // string | 
            var exportOptions = new ExportOptions(); // ExportOptions | 
            var apiKey = apiKey_example;  // string |  (optional) 

            try
            {
                // Get export link
                ExportLink result = apiInstance.GetExportLink(exportType, exportOptions, apiKey);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ExportControllerApi.GetExportLink: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
exportType string
exportOptions ExportOptions
apiKey string [optional]

Return type

ExportLink

Authorization

API_KEY

HTTP request headers

  • Content-Type: application/json
  • Accept: /

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to ]