Image-Merging-API

ImageMerging

imageMergingPost

send two pics for merging


/image-merging-api/api/v1.0/

Usage and SDK Samples

curl -X POST "https://api.apitalk.ir/image-merging-api/api/v1.0/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ImageMergingApi;

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

public class ImageMergingApiExample {

    public static void main(String[] args) {
        
        ImageMergingApi apiInstance = new ImageMergingApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Image_Merging_post json = ; // Image_Merging_post | Send a payload of JSON format like this:
        try {
            Image_Merging_response result = apiInstance.imageMergingPost(apiecoKey, json);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImageMergingApi#imageMergingPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ImageMergingApi;

public class ImageMergingApiExample {

    public static void main(String[] args) {
        ImageMergingApi apiInstance = new ImageMergingApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        Image_Merging_post json = ; // Image_Merging_post | Send a payload of JSON format like this:
        try {
            Image_Merging_response result = apiInstance.imageMergingPost(apiecoKey, json);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImageMergingApi#imageMergingPost");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API
Image_Merging_post *json = ; // Send a payload of JSON format like this:

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

// send two pics for merging
[apiInstance imageMergingPostWith:apiecoKey
    json:json
              completionHandler: ^(Image_Merging_response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ImageMergingApi = require('image_merging_api');

var api = new ImageMergingApi.ImageMergingApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var json = ; // {Image_Merging_post} Send a payload of JSON format like this:


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

namespace Example
{
    public class imageMergingPostExample
    {
        public void main()
        {
            
            var apiInstance = new ImageMergingApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API
            var json = new Image_Merging_post(); // Image_Merging_post | Send a payload of JSON format like this:

            try
            {
                // send two pics for merging
                Image_Merging_response result = apiInstance.imageMergingPost(apiecoKey, json);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ImageMergingApi.imageMergingPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ImageMergingApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$json = ; // Image_Merging_post | Send a payload of JSON format like this:

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

my $api_instance = WWW::SwaggerClient::ImageMergingApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $json = WWW::SwaggerClient::Object::Image_Merging_post->new(); # Image_Merging_post | Send a payload of JSON format like this:

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

# create an instance of the API class
api_instance = swagger_client.ImageMergingApi()
apiecoKey = apiecoKey_example # String | apikey for use API
json =  # Image_Merging_post | Send a payload of JSON format like this:

try: 
    # send two pics for merging
    api_response = api_instance.image_merging_post(apiecoKey, json)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImageMergingApi->imageMergingPost: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Body parameters
Name Description
json *

Responses

Status: 200 - This REST API return HTTP responses in JSON formats:

Status: 202 - Not Valid Url

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 405 - Method Not Allowed

Status: 500 - Internal Server Error