File-manager

FileConsulta

fileBucketNameGet

Este endpoint permite consultar información de archivos en base al BucketName.

Consulta de archivos ,(Requiere token)


/file/{BucketName}

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/json"\
"https://virtserver.swaggerhub.com/NANDEFY/FileManager/1.0.0/file/{BucketName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FileConsultaApi;

import java.io.File;
import java.util.*;

public class FileConsultaApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: application
        OAuth application = (OAuth) defaultClient.getAuthentication("application");
        application.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: user
        OAuth user = (OAuth) defaultClient.getAuthentication("user");
        user.setAccessToken("YOUR ACCESS TOKEN");

        FileConsultaApi apiInstance = new FileConsultaApi();
        String bucketName = bucketName_example; // String | Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente
        try {
            array[inline_response_200_1] result = apiInstance.fileBucketNameGet(bucketName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FileConsultaApi#fileBucketNameGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FileConsultaApi;

public class FileConsultaApiExample {

    public static void main(String[] args) {
        FileConsultaApi apiInstance = new FileConsultaApi();
        String bucketName = bucketName_example; // String | Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente
        try {
            array[inline_response_200_1] result = apiInstance.fileBucketNameGet(bucketName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FileConsultaApi#fileBucketNameGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: application)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: user)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *bucketName = bucketName_example; // Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente

FileConsultaApi *apiInstance = [[FileConsultaApi alloc] init];

// Este endpoint permite consultar información de archivos en base al BucketName.
[apiInstance fileBucketNameGetWith:bucketName
              completionHandler: ^(array[inline_response_200_1] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FileManager = require('file_manager');
var defaultClient = FileManager.ApiClient.instance;

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

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

var api = new FileManager.FileConsultaApi()
var bucketName = bucketName_example; // {{String}} Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.fileBucketNameGet(bucketName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class fileBucketNameGetExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: application
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: user
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new FileConsultaApi();
            var bucketName = bucketName_example;  // String | Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente

            try
            {
                // Este endpoint permite consultar información de archivos en base al BucketName.
                array[inline_response_200_1] result = apiInstance.fileBucketNameGet(bucketName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FileConsultaApi.fileBucketNameGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: application
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: user
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiFileConsultaApi();
$bucketName = bucketName_example; // String | Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente

try {
    $result = $api_instance->fileBucketNameGet($bucketName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FileConsultaApi->fileBucketNameGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::FileConsultaApi;

# Configure OAuth2 access token for authorization: application
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: user
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::FileConsultaApi->new();
my $bucketName = bucketName_example; # String | Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente

eval {
    my $result = $api_instance->fileBucketNameGet(bucketName => $bucketName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FileConsultaApi->fileBucketNameGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: application
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: user
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.FileConsultaApi()
bucketName = bucketName_example # String | Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente

try:
    # Este endpoint permite consultar información de archivos en base al BucketName.
    api_response = api_instance.file_bucket_name_get(bucketName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FileConsultaApi->fileBucketNameGet: %s\n" % e)

Parameters

Path parameters
Name Description
BucketName*
String
Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente
Required

Responses

Status: 200 - En caso de éxito

Status: 401 - Access token is missing or invalid

Status: 403 - Forbidden

Status: 404 - Can not find the requested object

Status: 500 - temporary server error

Status: 502 - Gateway Timeout

Status: 504 - Bad Gateway


fileBucketNameIDGet

Se consultan archivos en base al BucketName y el id.

consulta de archivos, (Requiere token)


/file/{BucketName}/{ID}

Usage and SDK Samples

curl -X GET\
\
\
-H "Accept: application/octet-stream,application/json"\
"https://virtserver.swaggerhub.com/NANDEFY/FileManager/1.0.0/file/{BucketName}/{ID}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FileConsultaApi;

import java.io.File;
import java.util.*;

public class FileConsultaApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: application
        OAuth application = (OAuth) defaultClient.getAuthentication("application");
        application.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: user
        OAuth user = (OAuth) defaultClient.getAuthentication("user");
        user.setAccessToken("YOUR ACCESS TOKEN");

        FileConsultaApi apiInstance = new FileConsultaApi();
        String bucketName = bucketName_example; // String | Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente
        String iD = iD_example; // String |
        try {
            byte[] result = apiInstance.fileBucketNameIDGet(bucketName, iD);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FileConsultaApi#fileBucketNameIDGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.FileConsultaApi;

public class FileConsultaApiExample {

    public static void main(String[] args) {
        FileConsultaApi apiInstance = new FileConsultaApi();
        String bucketName = bucketName_example; // String | Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente
        String iD = iD_example; // String |
        try {
            byte[] result = apiInstance.fileBucketNameIDGet(bucketName, iD);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FileConsultaApi#fileBucketNameIDGet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: application)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: user)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *bucketName = bucketName_example; // Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente
String *iD = iD_example; //

FileConsultaApi *apiInstance = [[FileConsultaApi alloc] init];

// Se consultan archivos en base al BucketName y el id.
[apiInstance fileBucketNameIDGetWith:bucketName
    iD:iD
              completionHandler: ^(byte[] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FileManager = require('file_manager');
var defaultClient = FileManager.ApiClient.instance;

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

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

var api = new FileManager.FileConsultaApi()
var bucketName = bucketName_example; // {{String}} Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente
var iD = iD_example; // {{String}}

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.fileBucketNameIDGet(bucketName, iD, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class fileBucketNameIDGetExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: application
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: user
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new FileConsultaApi();
            var bucketName = bucketName_example;  // String | Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente
            var iD = iD_example;  // String |

            try
            {
                // Se consultan archivos en base al BucketName y el id.
                byte[] result = apiInstance.fileBucketNameIDGet(bucketName, iD);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling FileConsultaApi.fileBucketNameIDGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: application
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: user
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiFileConsultaApi();
$bucketName = bucketName_example; // String | Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente
$iD = iD_example; // String |

try {
    $result = $api_instance->fileBucketNameIDGet($bucketName, $iD);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FileConsultaApi->fileBucketNameIDGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::FileConsultaApi;

# Configure OAuth2 access token for authorization: application
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: user
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::FileConsultaApi->new();
my $bucketName = bucketName_example; # String | Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente
my $iD = iD_example; # String |

eval {
    my $result = $api_instance->fileBucketNameIDGet(bucketName => $bucketName, iD => $iD);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FileConsultaApi->fileBucketNameIDGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: application
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: user
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.FileConsultaApi()
bucketName = bucketName_example # String | Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente
iD = iD_example # String |

try:
    # Se consultan archivos en base al BucketName y el id.
    api_response = api_instance.file_bucket_name_id_get(bucketName, iD)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FileConsultaApi->fileBucketNameIDGet: %s\n" % e)

Parameters

Path parameters
Name Description
BucketName*
String
Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente
Required
ID*
String
Required

Responses

Status: 200 - En caso de éxito

Status: 401 - Access token is missing or invalid

Status: 403 - Forbidden

Status: 404 - Can not find the requested object

Status: 500 - temporary server error

Status: 502 - Gateway Timeout

Status: 504 - Bad Gateway


SubirArchivos

fileBucketNameBasePost

Permite subir archivos en base64(privados), el usuario(email) del token sera el propietario.

upload de archivos, (Requiere token)


/file/{BucketName}/base

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json"\
-H "Content-Type: multipart/form-data"\
"https://virtserver.swaggerhub.com/NANDEFY/FileManager/1.0.0/file/{BucketName}/base"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubirArchivosApi;

import java.io.File;
import java.util.*;

public class SubirArchivosApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: application
        OAuth application = (OAuth) defaultClient.getAuthentication("application");
        application.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: user
        OAuth user = (OAuth) defaultClient.getAuthentication("user");
        user.setAccessToken("YOUR ACCESS TOKEN");

        SubirArchivosApi apiInstance = new SubirArchivosApi();
        String file = file_example; // String |
        String filename = filename_example; // String |
        String mimetype = mimetype_example; // String |
        String bucketName = bucketName_example; // String | Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente
        try {
            inline_response_200_2 result = apiInstance.fileBucketNameBasePost(file, filename, mimetype, bucketName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubirArchivosApi#fileBucketNameBasePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SubirArchivosApi;

public class SubirArchivosApiExample {

    public static void main(String[] args) {
        SubirArchivosApi apiInstance = new SubirArchivosApi();
        String file = file_example; // String |
        String filename = filename_example; // String |
        String mimetype = mimetype_example; // String |
        String bucketName = bucketName_example; // String | Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente
        try {
            inline_response_200_2 result = apiInstance.fileBucketNameBasePost(file, filename, mimetype, bucketName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubirArchivosApi#fileBucketNameBasePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: application)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: user)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *file = file_example; //
String *filename = filename_example; //
String *mimetype = mimetype_example; //
String *bucketName = bucketName_example; // Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente

SubirArchivosApi *apiInstance = [[SubirArchivosApi alloc] init];

// Permite subir archivos en base64(privados), el usuario(email) del token sera el propietario.
[apiInstance fileBucketNameBasePostWith:file
    filename:filename
    mimetype:mimetype
    bucketName:bucketName
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FileManager = require('file_manager');
var defaultClient = FileManager.ApiClient.instance;

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

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

var api = new FileManager.SubirArchivosApi()
var file = file_example; // {{String}}
var filename = filename_example; // {{String}}
var mimetype = mimetype_example; // {{String}}
var bucketName = bucketName_example; // {{String}} Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.fileBucketNameBasePost(filefilenamemimetypebucketName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class fileBucketNameBasePostExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: application
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: user
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new SubirArchivosApi();
            var file = file_example;  // String |
            var filename = filename_example;  // String |
            var mimetype = mimetype_example;  // String |
            var bucketName = bucketName_example;  // String | Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente

            try
            {
                // Permite subir archivos en base64(privados), el usuario(email) del token sera el propietario.
                inline_response_200_2 result = apiInstance.fileBucketNameBasePost(file, filename, mimetype, bucketName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubirArchivosApi.fileBucketNameBasePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: application
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: user
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiSubirArchivosApi();
$file = file_example; // String |
$filename = filename_example; // String |
$mimetype = mimetype_example; // String |
$bucketName = bucketName_example; // String | Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente

try {
    $result = $api_instance->fileBucketNameBasePost($file, $filename, $mimetype, $bucketName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SubirArchivosApi->fileBucketNameBasePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SubirArchivosApi;

# Configure OAuth2 access token for authorization: application
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: user
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::SubirArchivosApi->new();
my $file = file_example; # String |
my $filename = filename_example; # String |
my $mimetype = mimetype_example; # String |
my $bucketName = bucketName_example; # String | Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente

eval {
    my $result = $api_instance->fileBucketNameBasePost(file => $file, filename => $filename, mimetype => $mimetype, bucketName => $bucketName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SubirArchivosApi->fileBucketNameBasePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: application
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: user
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.SubirArchivosApi()
file = file_example # String |
filename = filename_example # String |
mimetype = mimetype_example # String |
bucketName = bucketName_example # String | Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente

try:
    # Permite subir archivos en base64(privados), el usuario(email) del token sera el propietario.
    api_response = api_instance.file_bucket_name_base_post(file, filename, mimetype, bucketName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SubirArchivosApi->fileBucketNameBasePost: %s\n" % e)

Parameters

Path parameters
Name Description
BucketName*
String
Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente
Required
Form parameters
Name Description
file*
String
Required
filename*
String
Required
mimetype*
String
Required

Responses

Status: 200 - En caso de exito

Status: 401 - Access token is missing or invalid

Status: 403 - Forbidden

Status: 404 - Can not find the requested object

Status: 500 - temporary server error

Status: 502 - Gateway Timeout

Status: 504 - Bad Gateway


fileBucketNamePost

Solo permite subir archivos privados, el usuario(email) del token sera el propietario.

upload de archivos, (Requiere token)


/file/{BucketName}

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json"\
-H "Content-Type: multipart/form-data"\
"https://virtserver.swaggerhub.com/NANDEFY/FileManager/1.0.0/file/{BucketName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubirArchivosApi;

import java.io.File;
import java.util.*;

public class SubirArchivosApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: application
        OAuth application = (OAuth) defaultClient.getAuthentication("application");
        application.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: user
        OAuth user = (OAuth) defaultClient.getAuthentication("user");
        user.setAccessToken("YOUR ACCESS TOKEN");

        SubirArchivosApi apiInstance = new SubirArchivosApi();
        byte[] file = file_example; // byte[] |
        String filename = filename_example; // String |
        String mimetype = mimetype_example; // String |
        String bucketName = bucketName_example; // String | Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente
        try {
            inline_response_200_2 result = apiInstance.fileBucketNamePost(file, filename, mimetype, bucketName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubirArchivosApi#fileBucketNamePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SubirArchivosApi;

public class SubirArchivosApiExample {

    public static void main(String[] args) {
        SubirArchivosApi apiInstance = new SubirArchivosApi();
        byte[] file = file_example; // byte[] |
        String filename = filename_example; // String |
        String mimetype = mimetype_example; // String |
        String bucketName = bucketName_example; // String | Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente
        try {
            inline_response_200_2 result = apiInstance.fileBucketNamePost(file, filename, mimetype, bucketName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubirArchivosApi#fileBucketNamePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: application)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: user)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
byte[] *file = file_example; //
String *filename = filename_example; //
String *mimetype = mimetype_example; //
String *bucketName = bucketName_example; // Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente

SubirArchivosApi *apiInstance = [[SubirArchivosApi alloc] init];

// Solo permite subir archivos privados, el usuario(email) del token sera el propietario.
[apiInstance fileBucketNamePostWith:file
    filename:filename
    mimetype:mimetype
    bucketName:bucketName
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FileManager = require('file_manager');
var defaultClient = FileManager.ApiClient.instance;

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

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

var api = new FileManager.SubirArchivosApi()
var file = file_example; // {{byte[]}}
var filename = filename_example; // {{String}}
var mimetype = mimetype_example; // {{String}}
var bucketName = bucketName_example; // {{String}} Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.fileBucketNamePost(filefilenamemimetypebucketName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class fileBucketNamePostExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: application
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: user
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new SubirArchivosApi();
            var file = file_example;  // byte[] |
            var filename = filename_example;  // String |
            var mimetype = mimetype_example;  // String |
            var bucketName = bucketName_example;  // String | Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente

            try
            {
                // Solo permite subir archivos privados, el usuario(email) del token sera el propietario.
                inline_response_200_2 result = apiInstance.fileBucketNamePost(file, filename, mimetype, bucketName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubirArchivosApi.fileBucketNamePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: application
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: user
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiSubirArchivosApi();
$file = file_example; // byte[] |
$filename = filename_example; // String |
$mimetype = mimetype_example; // String |
$bucketName = bucketName_example; // String | Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente

try {
    $result = $api_instance->fileBucketNamePost($file, $filename, $mimetype, $bucketName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SubirArchivosApi->fileBucketNamePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SubirArchivosApi;

# Configure OAuth2 access token for authorization: application
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: user
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::SubirArchivosApi->new();
my $file = file_example; # byte[] |
my $filename = filename_example; # String |
my $mimetype = mimetype_example; # String |
my $bucketName = bucketName_example; # String | Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente

eval {
    my $result = $api_instance->fileBucketNamePost(file => $file, filename => $filename, mimetype => $mimetype, bucketName => $bucketName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SubirArchivosApi->fileBucketNamePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: application
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: user
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.SubirArchivosApi()
file = file_example # byte[] |
filename = filename_example # String |
mimetype = mimetype_example # String |
bucketName = bucketName_example # String | Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente

try:
    # Solo permite subir archivos privados, el usuario(email) del token sera el propietario.
    api_response = api_instance.file_bucket_name_post(file, filename, mimetype, bucketName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SubirArchivosApi->fileBucketNamePost: %s\n" % e)

Parameters

Path parameters
Name Description
BucketName*
String
Nombre del Bucket, es un mombre para relacionar los archivos a nivel bd localmente
Required
Form parameters
Name Description
file*
byte[] (binary)
Required
filename*
String
Required
mimetype*
String
Required

Responses

Status: 200 - En caso de exito

Status: 401 - Access token is missing or invalid

Status: 403 - Forbidden

Status: 404 - Can not find the requested object

Status: 500 - temporary server error

Status: 502 - Gateway Timeout

Status: 504 - Bad Gateway


fileV11BucketNameBasePost

Esta version permite subir archivos en base64,publicos y privados.

upload de archivos, (Requiere token)


/file/v1.1/{BucketName}/base

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json"\
-H "Content-Type: multipart/form-data"\
"https://virtserver.swaggerhub.com/NANDEFY/FileManager/1.0.0/file/v1.1/{BucketName}/base"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubirArchivosApi;

import java.io.File;
import java.util.*;

public class SubirArchivosApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: application
        OAuth application = (OAuth) defaultClient.getAuthentication("application");
        application.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: user
        OAuth user = (OAuth) defaultClient.getAuthentication("user");
        user.setAccessToken("YOUR ACCESS TOKEN");

        SubirArchivosApi apiInstance = new SubirArchivosApi();
        String file = file_example; // String |
        String filename = filename_example; // String |
        String mimetype = mimetype_example; // String |
        Boolean private = true; // Boolean |
        String bucketName = bucketName_example; // String | Nombre del Bucket,es un mombre para relacionar los archivos a nivel bd localmente
        try {
            inline_response_200 result = apiInstance.fileV11BucketNameBasePost(file, filename, mimetype, private, bucketName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubirArchivosApi#fileV11BucketNameBasePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SubirArchivosApi;

public class SubirArchivosApiExample {

    public static void main(String[] args) {
        SubirArchivosApi apiInstance = new SubirArchivosApi();
        String file = file_example; // String |
        String filename = filename_example; // String |
        String mimetype = mimetype_example; // String |
        Boolean private = true; // Boolean |
        String bucketName = bucketName_example; // String | Nombre del Bucket,es un mombre para relacionar los archivos a nivel bd localmente
        try {
            inline_response_200 result = apiInstance.fileV11BucketNameBasePost(file, filename, mimetype, private, bucketName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubirArchivosApi#fileV11BucketNameBasePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: application)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: user)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *file = file_example; //
String *filename = filename_example; //
String *mimetype = mimetype_example; //
Boolean *private = true; //
String *bucketName = bucketName_example; // Nombre del Bucket,es un mombre para relacionar los archivos a nivel bd localmente

SubirArchivosApi *apiInstance = [[SubirArchivosApi alloc] init];

// Esta version permite subir archivos en base64,publicos y privados.
[apiInstance fileV11BucketNameBasePostWith:file
    filename:filename
    mimetype:mimetype
    private:private
    bucketName:bucketName
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FileManager = require('file_manager');
var defaultClient = FileManager.ApiClient.instance;

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

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

var api = new FileManager.SubirArchivosApi()
var file = file_example; // {{String}}
var filename = filename_example; // {{String}}
var mimetype = mimetype_example; // {{String}}
var private = true; // {{Boolean}}
var bucketName = bucketName_example; // {{String}} Nombre del Bucket,es un mombre para relacionar los archivos a nivel bd localmente

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.fileV11BucketNameBasePost(filefilenamemimetypeprivatebucketName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class fileV11BucketNameBasePostExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: application
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: user
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new SubirArchivosApi();
            var file = file_example;  // String |
            var filename = filename_example;  // String |
            var mimetype = mimetype_example;  // String |
            var private = true;  // Boolean |
            var bucketName = bucketName_example;  // String | Nombre del Bucket,es un mombre para relacionar los archivos a nivel bd localmente

            try
            {
                // Esta version permite subir archivos en base64,publicos y privados.
                inline_response_200 result = apiInstance.fileV11BucketNameBasePost(file, filename, mimetype, private, bucketName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubirArchivosApi.fileV11BucketNameBasePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: application
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: user
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiSubirArchivosApi();
$file = file_example; // String |
$filename = filename_example; // String |
$mimetype = mimetype_example; // String |
$private = true; // Boolean |
$bucketName = bucketName_example; // String | Nombre del Bucket,es un mombre para relacionar los archivos a nivel bd localmente

try {
    $result = $api_instance->fileV11BucketNameBasePost($file, $filename, $mimetype, $private, $bucketName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SubirArchivosApi->fileV11BucketNameBasePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SubirArchivosApi;

# Configure OAuth2 access token for authorization: application
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: user
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::SubirArchivosApi->new();
my $file = file_example; # String |
my $filename = filename_example; # String |
my $mimetype = mimetype_example; # String |
my $private = true; # Boolean |
my $bucketName = bucketName_example; # String | Nombre del Bucket,es un mombre para relacionar los archivos a nivel bd localmente

eval {
    my $result = $api_instance->fileV11BucketNameBasePost(file => $file, filename => $filename, mimetype => $mimetype, private => $private, bucketName => $bucketName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SubirArchivosApi->fileV11BucketNameBasePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: application
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: user
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.SubirArchivosApi()
file = file_example # String |
filename = filename_example # String |
mimetype = mimetype_example # String |
private = true # Boolean |
bucketName = bucketName_example # String | Nombre del Bucket,es un mombre para relacionar los archivos a nivel bd localmente

try:
    # Esta version permite subir archivos en base64,publicos y privados.
    api_response = api_instance.file_v11_bucket_name_base_post(file, filename, mimetype, private, bucketName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SubirArchivosApi->fileV11BucketNameBasePost: %s\n" % e)

Parameters

Path parameters
Name Description
BucketName*
String
Nombre del Bucket,es un mombre para relacionar los archivos a nivel bd localmente
Required
Form parameters
Name Description
file*
String
Required
filename*
String
Required
mimetype*
String
Required
private*
Boolean
Required

Responses

Status: 200 - En caso de exito, si el archivo es privado la url = url de File-manager(https://pcapi-alpha.dev.plataforma-claro.com) ,si el archivo es publico la url = sera la url del s3(https://medios.plazavip.com)

Status: 401 - Access token is missing or invalid

Status: 403 - Forbidden

Status: 404 - Can not find the requested object

Status: 500 - temporary server error

Status: 502 - Gateway Timeout

Status: 504 - Bad Gateway


fileV11BucketNamePost

Esta version permite subir archivos publicos y privados.

upload de archivos, (Requiere token)


/file/v1.1/{BucketName}

Usage and SDK Samples

curl -X POST\
\
\
-H "Accept: application/json"\
-H "Content-Type: multipart/form-data"\
"https://virtserver.swaggerhub.com/NANDEFY/FileManager/1.0.0/file/v1.1/{BucketName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SubirArchivosApi;

import java.io.File;
import java.util.*;

public class SubirArchivosApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure OAuth2 access token for authorization: application
        OAuth application = (OAuth) defaultClient.getAuthentication("application");
        application.setAccessToken("YOUR ACCESS TOKEN");

        // Configure OAuth2 access token for authorization: user
        OAuth user = (OAuth) defaultClient.getAuthentication("user");
        user.setAccessToken("YOUR ACCESS TOKEN");

        SubirArchivosApi apiInstance = new SubirArchivosApi();
        byte[] file = file_example; // byte[] |
        String filename = filename_example; // String |
        String mimetype = mimetype_example; // String |
        Boolean private = true; // Boolean |
        String bucketName = bucketName_example; // String | Nombre del Bucket,es un mombre para relacionar los archivos a nivel bd localmente
        try {
            inline_response_200 result = apiInstance.fileV11BucketNamePost(file, filename, mimetype, private, bucketName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubirArchivosApi#fileV11BucketNamePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SubirArchivosApi;

public class SubirArchivosApiExample {

    public static void main(String[] args) {
        SubirArchivosApi apiInstance = new SubirArchivosApi();
        byte[] file = file_example; // byte[] |
        String filename = filename_example; // String |
        String mimetype = mimetype_example; // String |
        Boolean private = true; // Boolean |
        String bucketName = bucketName_example; // String | Nombre del Bucket,es un mombre para relacionar los archivos a nivel bd localmente
        try {
            inline_response_200 result = apiInstance.fileV11BucketNamePost(file, filename, mimetype, private, bucketName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SubirArchivosApi#fileV11BucketNamePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: application)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
// Configure OAuth2 access token for authorization: (authentication scheme: user)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
byte[] *file = file_example; //
String *filename = filename_example; //
String *mimetype = mimetype_example; //
Boolean *private = true; //
String *bucketName = bucketName_example; // Nombre del Bucket,es un mombre para relacionar los archivos a nivel bd localmente

SubirArchivosApi *apiInstance = [[SubirArchivosApi alloc] init];

// Esta version permite subir archivos publicos y privados.
[apiInstance fileV11BucketNamePostWith:file
    filename:filename
    mimetype:mimetype
    private:private
    bucketName:bucketName
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FileManager = require('file_manager');
var defaultClient = FileManager.ApiClient.instance;

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

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

var api = new FileManager.SubirArchivosApi()
var file = file_example; // {{byte[]}}
var filename = filename_example; // {{String}}
var mimetype = mimetype_example; // {{String}}
var private = true; // {{Boolean}}
var bucketName = bucketName_example; // {{String}} Nombre del Bucket,es un mombre para relacionar los archivos a nivel bd localmente

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.fileV11BucketNamePost(filefilenamemimetypeprivatebucketName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class fileV11BucketNamePostExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: application
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            // Configure OAuth2 access token for authorization: user
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new SubirArchivosApi();
            var file = file_example;  // byte[] |
            var filename = filename_example;  // String |
            var mimetype = mimetype_example;  // String |
            var private = true;  // Boolean |
            var bucketName = bucketName_example;  // String | Nombre del Bucket,es un mombre para relacionar los archivos a nivel bd localmente

            try
            {
                // Esta version permite subir archivos publicos y privados.
                inline_response_200 result = apiInstance.fileV11BucketNamePost(file, filename, mimetype, private, bucketName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SubirArchivosApi.fileV11BucketNamePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: application
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
// Configure OAuth2 access token for authorization: user
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiSubirArchivosApi();
$file = file_example; // byte[] |
$filename = filename_example; // String |
$mimetype = mimetype_example; // String |
$private = true; // Boolean |
$bucketName = bucketName_example; // String | Nombre del Bucket,es un mombre para relacionar los archivos a nivel bd localmente

try {
    $result = $api_instance->fileV11BucketNamePost($file, $filename, $mimetype, $private, $bucketName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SubirArchivosApi->fileV11BucketNamePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SubirArchivosApi;

# Configure OAuth2 access token for authorization: application
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
# Configure OAuth2 access token for authorization: user
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::SubirArchivosApi->new();
my $file = file_example; # byte[] |
my $filename = filename_example; # String |
my $mimetype = mimetype_example; # String |
my $private = true; # Boolean |
my $bucketName = bucketName_example; # String | Nombre del Bucket,es un mombre para relacionar los archivos a nivel bd localmente

eval {
    my $result = $api_instance->fileV11BucketNamePost(file => $file, filename => $filename, mimetype => $mimetype, private => $private, bucketName => $bucketName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SubirArchivosApi->fileV11BucketNamePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: application
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure OAuth2 access token for authorization: user
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.SubirArchivosApi()
file = file_example # byte[] |
filename = filename_example # String |
mimetype = mimetype_example # String |
private = true # Boolean |
bucketName = bucketName_example # String | Nombre del Bucket,es un mombre para relacionar los archivos a nivel bd localmente

try:
    # Esta version permite subir archivos publicos y privados.
    api_response = api_instance.file_v11_bucket_name_post(file, filename, mimetype, private, bucketName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SubirArchivosApi->fileV11BucketNamePost: %s\n" % e)

Parameters

Path parameters
Name Description
BucketName*
String
Nombre del Bucket,es un mombre para relacionar los archivos a nivel bd localmente
Required
Form parameters
Name Description
file*
byte[] (binary)
Required
filename*
String
Required
mimetype*
String
Required
private*
Boolean
Required

Responses

Status: 200 - En caso de exito, si el archivo es privado la url = url de File-manager(https://pcapi-alpha.dev.plataforma-claro.com) ,si el archivo es publico la url = sera la url del s3(https://medios.plazavip.com)

Status: 401 - Access token is missing or invalid

Status: 403 - Forbidden

Status: 404 - Can not find the requested object

Status: 500 - temporary server error

Status: 502 - Gateway Timeout

Status: 504 - Bad Gateway