Skip to content

Latest commit

 

History

History
64 lines (44 loc) · 1.69 KB

File metadata and controls

64 lines (44 loc) · 1.69 KB

clicksend_client.UploadApi

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

Method HTTP request Description
uploads_post POST /uploads Upload File

uploads_post

str uploads_post(upload_file, convert)

Upload File

Upload File

Example

from __future__ import print_function
import time
import clicksend_client
from clicksend_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: BasicAuth
configuration = clicksend_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = clicksend_client.UploadApi(clicksend_client.ApiClient(configuration))
upload_file = clicksend_client.UploadFile() # UploadFile | Your file to be uploaded
convert = 'convert_example' # str | 

try:
    # Upload File
    api_response = api_instance.uploads_post(upload_file, convert)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UploadApi->uploads_post: %s\n" % e)

Parameters

Name Type Description Notes
upload_file UploadFile Your file to be uploaded
convert str

Return type

str

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]