DocumentUploadsApi

All URIs are relative to https://connect-testing.secupay-ag.de/api/v2

Method HTTP request Description
documentUploadsPost POST /Document/Uploads POST Document/Uploads
documentUploadsmultipartPost POST /Document/Uploads?multipart POST Document/Uploads

documentUploadsPost

DocumentUploadsBaseProductModel documentUploadsPost(content)

POST Document/Uploads

Store uploaded file

Example

import SecuconnectJsSdk from 'secuconnect-js-sdk';
let defaultClient = SecuconnectJsSdk.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth_token
let oauth_token = defaultClient.authentications['oauth_token'];
oauth_token.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new SecuconnectJsSdk.DocumentUploadsApi();

let content = new SecuconnectJsSdk.DocumentUploadsDTOContent(); // DocumentUploadsDTOContent | Content

apiInstance.documentUploadsPost(content).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

Name Type Description Notes
content DocumentUploadsDTOContent Content

Return type

DocumentUploadsBaseProductModel

Authorization

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

documentUploadsmultipartPost

DocumentUploadsProductModel documentUploadsmultipartPost(fileToUpload)

POST Document/Uploads

Store uploaded file

Example

import SecuconnectJsSdk from 'secuconnect-js-sdk';
let defaultClient = SecuconnectJsSdk.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth_token
let oauth_token = defaultClient.authentications['oauth_token'];
oauth_token.accessToken = 'YOUR ACCESS TOKEN';

let apiInstance = new SecuconnectJsSdk.DocumentUploadsApi();

let fileToUpload = "/path/to/file.txt"; // File | File to upload

apiInstance.documentUploadsmultipartPost(fileToUpload).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

Name Type Description Notes
fileToUpload File File to upload

Return type

DocumentUploadsProductModel

Authorization

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: Not defined