code
Returns code information
/code
Usage and SDK Samples
curl -X GET "https://api.apieco.ir/barcode-monster/code?code="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CodeApi;
import java.io.File;
import java.util.*;
public class CodeApiExample {
public static void main(String[] args) {
CodeApi apiInstance = new CodeApi();
String apiecoKey = apiecoKey_example; // String |
String code = code_example; // String | Barcode to search
try {
inline_response_200 result = apiInstance.code(apiecoKey, code);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CodeApi#code");
e.printStackTrace();
}
}
}
import io.swagger.client.api.CodeApi;
public class CodeApiExample {
public static void main(String[] args) {
CodeApi apiInstance = new CodeApi();
String apiecoKey = apiecoKey_example; // String |
String code = code_example; // String | Barcode to search
try {
inline_response_200 result = apiInstance.code(apiecoKey, code);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CodeApi#code");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; //
String *code = code_example; // Barcode to search
CodeApi *apiInstance = [[CodeApi alloc] init];
[apiInstance codeWith:apiecoKey
code:code
completionHandler: ^(inline_response_200 output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var BarcodemonsterApiDocumentation = require('barcodemonster_api_documentation');
var api = new BarcodemonsterApiDocumentation.CodeApi()
var apiecoKey = apiecoKey_example; // {String}
var code = code_example; // {String} Barcode to search
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.code(apiecoKey, code, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class codeExample
{
public void main()
{
var apiInstance = new CodeApi();
var apiecoKey = apiecoKey_example; // String |
var code = code_example; // String | Barcode to search
try
{
inline_response_200 result = apiInstance.code(apiecoKey, code);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CodeApi.code: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\CodeApi();
$apiecoKey = apiecoKey_example; // String |
$code = code_example; // String | Barcode to search
try {
$result = $api_instance->code($apiecoKey, $code);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CodeApi->code: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CodeApi;
my $api_instance = WWW::SwaggerClient::CodeApi->new();
my $apiecoKey = apiecoKey_example; # String |
my $code = code_example; # String | Barcode to search
eval {
my $result = $api_instance->code(apiecoKey => $apiecoKey, code => $code);
print Dumper($result);
};
if ($@) {
warn "Exception when calling CodeApi->code: $@\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.CodeApi()
apiecoKey = apiecoKey_example # String |
code = code_example # String | Barcode to search
try:
api_response = api_instance.code(apiecoKey, code)
pprint(api_response)
except ApiException as e:
print("Exception when calling CodeApi->code: %s\n" % e)
Parameters
Header parameters
Name | Description |
---|---|
apieco-key* |
String
Required
|
Query parameters
Name | Description |
---|---|
code* |
String
Barcode to search
Required
|