v1FilesCopyPost
/v1/files/copy
Usage and SDK Samples
curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/parsaspace/v1/files/copy"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CopyApi;
import java.io.File;
import java.util.*;
public class CopyApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: Bearer
ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
Bearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.setApiKeyPrefix("Token");
CopyApi apiInstance = new CopyApi();
String apiecoKey = apiecoKey_example; // String | apikey for use API
Body_4 body = ; // Body_4 |
try {
inline_response_200_1 result = apiInstance.v1FilesCopyPost(apiecoKey, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CopyApi#v1FilesCopyPost");
e.printStackTrace();
}
}
}
import io.swagger.client.api.CopyApi;
public class CopyApiExample {
public static void main(String[] args) {
CopyApi apiInstance = new CopyApi();
String apiecoKey = apiecoKey_example; // String | apikey for use API
Body_4 body = ; // Body_4 |
try {
inline_response_200_1 result = apiInstance.v1FilesCopyPost(apiecoKey, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CopyApi#v1FilesCopyPost");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
Body_4 *body = ; // (optional)
CopyApi *apiInstance = [[CopyApi alloc] init];
[apiInstance v1FilesCopyPostWith:apiecoKey
body:body
completionHandler: ^(inline_response_200_1 output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var SwaggerJsClient = require('swagger-js-client');
var defaultClient = SwaggerJsClient.ApiClient.instance;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"
var api = new SwaggerJsClient.CopyApi()
var apiecoKey = apiecoKey_example; // {String} apikey for use API
var opts = {
'body': // {Body_4}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.v1FilesCopyPost(apiecoKey, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class v1FilesCopyPostExample
{
public void main()
{
// Configure API key authorization: Bearer
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new CopyApi();
var apiecoKey = apiecoKey_example; // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
var body = new Body_4(); // Body_4 | (optional)
try
{
inline_response_200_1 result = apiInstance.v1FilesCopyPost(apiecoKey, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CopyApi.v1FilesCopyPost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$api_instance = new Swagger\Client\Api\CopyApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$body = ; // Body_4 |
try {
$result = $api_instance->v1FilesCopyPost($apiecoKey, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CopyApi->v1FilesCopyPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CopyApi;
# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
my $api_instance = WWW::SwaggerClient::CopyApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $body = WWW::SwaggerClient::Object::Body_4->new(); # Body_4 |
eval {
my $result = $api_instance->v1FilesCopyPost(apiecoKey => $apiecoKey, body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling CopyApi->v1FilesCopyPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.CopyApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
body = # Body_4 | (optional)
try:
api_response = api_instance.v1_files_copy_post(apiecoKey, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling CopyApi->v1FilesCopyPost: %s\n" % e)
Parameters
Header parameters
Name | Description |
---|---|
apieco-key* |
String
apikey for use API
Required
|
Body parameters
Name | Description |
---|---|
body |