MlemAPI API Documentation

MlemID

mlemID

Returns one mlem image by ID in JSON


/mlemid

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/mlem/mlemid?Mlem ID="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MlemIDApi;

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

public class MlemIDApiExample {

    public static void main(String[] args) {
        
        MlemIDApi apiInstance = new MlemIDApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal mlem ID = 8.14; // BigDecimal | Mlem ID
        try {
            inline_response_200 result = apiInstance.mlemID(apiecoKey, mlem ID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MlemIDApi#mlemID");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MlemIDApi;

public class MlemIDApiExample {

    public static void main(String[] args) {
        MlemIDApi apiInstance = new MlemIDApi();
        String apiecoKey = apiecoKey_example; // String | 
        BigDecimal mlem ID = 8.14; // BigDecimal | Mlem ID
        try {
            inline_response_200 result = apiInstance.mlemID(apiecoKey, mlem ID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MlemIDApi#mlemID");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
BigDecimal *mlem ID = 8.14; // Mlem ID

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

[apiInstance mlemIDWith:apiecoKey
    mlem ID:mlem ID
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MlemApiApiDocumentation = require('mlem_api_api_documentation');

var api = new MlemApiApiDocumentation.MlemIDApi()

var apiecoKey = apiecoKey_example; // {String} 

var mlem ID = 8.14; // {BigDecimal} Mlem ID


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

namespace Example
{
    public class mlemIDExample
    {
        public void main()
        {
            
            var apiInstance = new MlemIDApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var mlem ID = 8.14;  // BigDecimal | Mlem ID

            try
            {
                inline_response_200 result = apiInstance.mlemID(apiecoKey, mlem ID);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MlemIDApi.mlemID: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\MlemIDApi();
$apiecoKey = apiecoKey_example; // String | 
$mlem ID = 8.14; // BigDecimal | Mlem ID

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

my $api_instance = WWW::SwaggerClient::MlemIDApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $mlem ID = 8.14; # BigDecimal | Mlem ID

eval { 
    my $result = $api_instance->mlemID(apiecoKey => $apiecoKey, mlem ID => $mlem ID);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MlemIDApi->mlemID: $@\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.MlemIDApi()
apiecoKey = apiecoKey_example # String | 
mlem ID = 8.14 # BigDecimal | Mlem ID

try: 
    api_response = api_instance.mlem_id(apiecoKey, mlem ID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MlemIDApi->mlemID: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
Mlem ID*
BigDecimal
Mlem ID
Required

Responses

Status: 200 - Successful


NewMlem

newMlem

Returns one most recently published mlem image in JSON


/newmlem

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/mlem/newmlem"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NewMlemApi;

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

public class NewMlemApiExample {

    public static void main(String[] args) {
        
        NewMlemApi apiInstance = new NewMlemApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200 result = apiInstance.newMlem(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NewMlemApi#newMlem");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NewMlemApi;

public class NewMlemApiExample {

    public static void main(String[] args) {
        NewMlemApi apiInstance = new NewMlemApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            inline_response_200 result = apiInstance.newMlem(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NewMlemApi#newMlem");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 

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

[apiInstance newMlemWith:apiecoKey
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MlemApiApiDocumentation = require('mlem_api_api_documentation');

var api = new MlemApiApiDocumentation.NewMlemApi()

var apiecoKey = apiecoKey_example; // {String} 


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

namespace Example
{
    public class newMlemExample
    {
        public void main()
        {
            
            var apiInstance = new NewMlemApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                inline_response_200 result = apiInstance.newMlem(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NewMlemApi.newMlem: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\NewMlemApi();
$apiecoKey = apiecoKey_example; // String | 

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

my $api_instance = WWW::SwaggerClient::NewMlemApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->newMlem(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling NewMlemApi->newMlem: $@\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.NewMlemApi()
apiecoKey = apiecoKey_example # String | 

try: 
    api_response = api_instance.new_mlem(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NewMlemApi->newMlem: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


RandomMlem

randomMlem

Returns one random mlem image in JSON


/randommlem

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/mlem/randommlem?minheight=&maxheight=&tag=&maxwidth=&minwidth=&orientation="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RandomMlemApi;

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

public class RandomMlemApiExample {

    public static void main(String[] args) {
        
        RandomMlemApi apiInstance = new RandomMlemApi();
        String apiecoKey = apiecoKey_example; // String | 
        String minheight = minheight_example; // String | Minimum height
        String maxheight = maxheight_example; // String | Maximum height
        String tag = tag_example; // String | Tag of mlem
        String maxwidth = maxwidth_example; // String | Maximum width
        String minwidth = minwidth_example; // String | Minimum width
        String orientation = orientation_example; // String | Image orientation: square, landscape, portrait
        try {
            inline_response_200 result = apiInstance.randomMlem(apiecoKey, minheight, maxheight, tag, maxwidth, minwidth, orientation);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RandomMlemApi#randomMlem");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RandomMlemApi;

public class RandomMlemApiExample {

    public static void main(String[] args) {
        RandomMlemApi apiInstance = new RandomMlemApi();
        String apiecoKey = apiecoKey_example; // String | 
        String minheight = minheight_example; // String | Minimum height
        String maxheight = maxheight_example; // String | Maximum height
        String tag = tag_example; // String | Tag of mlem
        String maxwidth = maxwidth_example; // String | Maximum width
        String minwidth = minwidth_example; // String | Minimum width
        String orientation = orientation_example; // String | Image orientation: square, landscape, portrait
        try {
            inline_response_200 result = apiInstance.randomMlem(apiecoKey, minheight, maxheight, tag, maxwidth, minwidth, orientation);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RandomMlemApi#randomMlem");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *minheight = minheight_example; // Minimum height (optional)
String *maxheight = maxheight_example; // Maximum height (optional)
String *tag = tag_example; // Tag of mlem (optional)
String *maxwidth = maxwidth_example; // Maximum width (optional)
String *minwidth = minwidth_example; // Minimum width (optional)
String *orientation = orientation_example; // Image orientation: square, landscape, portrait (optional)

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

[apiInstance randomMlemWith:apiecoKey
    minheight:minheight
    maxheight:maxheight
    tag:tag
    maxwidth:maxwidth
    minwidth:minwidth
    orientation:orientation
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MlemApiApiDocumentation = require('mlem_api_api_documentation');

var api = new MlemApiApiDocumentation.RandomMlemApi()

var apiecoKey = apiecoKey_example; // {String} 

var opts = { 
  'minheight': minheight_example, // {String} Minimum height
  'maxheight': maxheight_example, // {String} Maximum height
  'tag': tag_example, // {String} Tag of mlem
  'maxwidth': maxwidth_example, // {String} Maximum width
  'minwidth': minwidth_example, // {String} Minimum width
  'orientation': orientation_example // {String} Image orientation: square, landscape, portrait
};

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

namespace Example
{
    public class randomMlemExample
    {
        public void main()
        {
            
            var apiInstance = new RandomMlemApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var minheight = minheight_example;  // String | Minimum height (optional) 
            var maxheight = maxheight_example;  // String | Maximum height (optional) 
            var tag = tag_example;  // String | Tag of mlem (optional) 
            var maxwidth = maxwidth_example;  // String | Maximum width (optional) 
            var minwidth = minwidth_example;  // String | Minimum width (optional) 
            var orientation = orientation_example;  // String | Image orientation: square, landscape, portrait (optional) 

            try
            {
                inline_response_200 result = apiInstance.randomMlem(apiecoKey, minheight, maxheight, tag, maxwidth, minwidth, orientation);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RandomMlemApi.randomMlem: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\RandomMlemApi();
$apiecoKey = apiecoKey_example; // String | 
$minheight = minheight_example; // String | Minimum height
$maxheight = maxheight_example; // String | Maximum height
$tag = tag_example; // String | Tag of mlem
$maxwidth = maxwidth_example; // String | Maximum width
$minwidth = minwidth_example; // String | Minimum width
$orientation = orientation_example; // String | Image orientation: square, landscape, portrait

try {
    $result = $api_instance->randomMlem($apiecoKey, $minheight, $maxheight, $tag, $maxwidth, $minwidth, $orientation);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RandomMlemApi->randomMlem: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RandomMlemApi;

my $api_instance = WWW::SwaggerClient::RandomMlemApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $minheight = minheight_example; # String | Minimum height
my $maxheight = maxheight_example; # String | Maximum height
my $tag = tag_example; # String | Tag of mlem
my $maxwidth = maxwidth_example; # String | Maximum width
my $minwidth = minwidth_example; # String | Minimum width
my $orientation = orientation_example; # String | Image orientation: square, landscape, portrait

eval { 
    my $result = $api_instance->randomMlem(apiecoKey => $apiecoKey, minheight => $minheight, maxheight => $maxheight, tag => $tag, maxwidth => $maxwidth, minwidth => $minwidth, orientation => $orientation);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RandomMlemApi->randomMlem: $@\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.RandomMlemApi()
apiecoKey = apiecoKey_example # String | 
minheight = minheight_example # String | Minimum height (optional)
maxheight = maxheight_example # String | Maximum height (optional)
tag = tag_example # String | Tag of mlem (optional)
maxwidth = maxwidth_example # String | Maximum width (optional)
minwidth = minwidth_example # String | Minimum width (optional)
orientation = orientation_example # String | Image orientation: square, landscape, portrait (optional)

try: 
    api_response = api_instance.random_mlem(apiecoKey, minheight=minheight, maxheight=maxheight, tag=tag, maxwidth=maxwidth, minwidth=minwidth, orientation=orientation)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RandomMlemApi->randomMlem: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
minheight
String
Minimum height
maxheight
String
Maximum height
tag
String
Tag of mlem
maxwidth
String
Maximum width
minwidth
String
Minimum width
orientation
String
Image orientation: square, landscape, portrait

Responses

Status: 200 - Successful


Tags

tags

Returns all tags in JSON


/tags

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/mlem/tags"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagsApi;

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

public class TagsApiExample {

    public static void main(String[] args) {
        
        TagsApi apiInstance = new TagsApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array['String'] result = apiInstance.tags(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagsApi#tags");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagsApi;

public class TagsApiExample {

    public static void main(String[] args) {
        TagsApi apiInstance = new TagsApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array['String'] result = apiInstance.tags(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagsApi#tags");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 

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

[apiInstance tagsWith:apiecoKey
              completionHandler: ^(array['String'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MlemApiApiDocumentation = require('mlem_api_api_documentation');

var api = new MlemApiApiDocumentation.TagsApi()

var apiecoKey = apiecoKey_example; // {String} 


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

namespace Example
{
    public class tagsExample
    {
        public void main()
        {
            
            var apiInstance = new TagsApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                array['String'] result = apiInstance.tags(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagsApi.tags: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\TagsApi();
$apiecoKey = apiecoKey_example; // String | 

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

my $api_instance = WWW::SwaggerClient::TagsApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->tags(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagsApi->tags: $@\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.TagsApi()
apiecoKey = apiecoKey_example # String | 

try: 
    api_response = api_instance.tags(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagsApi->tags: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - successful