Skip to content

Latest commit

 

History

History
74 lines (56 loc) · 1.92 KB

UploadApi.md

File metadata and controls

74 lines (56 loc) · 1.92 KB

IO.ClickSend.ClickSend.Api.UploadApi

All URIs are relative to https://rest.clicksend.com/v3

Method HTTP request Description
UploadsPost POST /uploads Upload File

UploadsPost

string UploadsPost (UploadFile body, string convert)

Upload File

Upload File

Example

using System;
using System.Diagnostics;
using IO.ClickSend.ClickSend.Api;
using IO.ClickSend.Client;
using IO.ClickSend.ClickSend.Model;

namespace Example
{
    public class UploadsPostExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new UploadApi();
            var body = new UploadFile(); // UploadFile | Your file to be uploaded
            var convert = convert_example;  // string | 

            try
            {
                // Upload File
                string result = apiInstance.UploadsPost(body, convert);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UploadApi.UploadsPost: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
body UploadFile Your file to be uploaded
convert string

Return type

string

Authorization

BasicAuth

HTTP request headers

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

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