getCatalogByEANs
/ean/all
Usage and SDK Samples
curl -X GET\
-H "Accept: application/json"\
"https://apiservice2.republica.dk/v2/ean/all?q="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String q = q_example; // String | Pipe seperated list of EAN numbers Eg: 8033765258128|C5750000104851|C7804320706009 - ONLY Fakta
try {
apiInstance.getCatalogByEANs(q);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getCatalogByEANs");
e.printStackTrace();
}
}
}
import io.swagger.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String q = q_example; // String | Pipe seperated list of EAN numbers Eg: 8033765258128|C5750000104851|C7804320706009 - ONLY Fakta
try {
apiInstance.getCatalogByEANs(q);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getCatalogByEANs");
e.printStackTrace();
}
}
}
String *q = q_example; // Pipe seperated list of EAN numbers Eg: 8033765258128|C5750000104851|C7804320706009 - ONLY Fakta
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance getCatalogByEANsWith:q
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var RepublicaApi = require('republica_api');
var api = new RepublicaApi.DefaultApi()
var q = q_example; // {{String}} Pipe seperated list of EAN numbers Eg: 8033765258128|C5750000104851|C7804320706009 - ONLY Fakta
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.getCatalogByEANs(q, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getCatalogByEANsExample
{
public void main()
{
var apiInstance = new DefaultApi();
var q = q_example; // String | Pipe seperated list of EAN numbers Eg: 8033765258128|C5750000104851|C7804320706009 - ONLY Fakta
try
{
apiInstance.getCatalogByEANs(q);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.getCatalogByEANs: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiDefaultApi();
$q = q_example; // String | Pipe seperated list of EAN numbers Eg: 8033765258128|C5750000104851|C7804320706009 - ONLY Fakta
try {
$api_instance->getCatalogByEANs($q);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getCatalogByEANs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $q = q_example; # String | Pipe seperated list of EAN numbers Eg: 8033765258128|C5750000104851|C7804320706009 - ONLY Fakta
eval {
$api_instance->getCatalogByEANs(q => $q);
};
if ($@) {
warn "Exception when calling DefaultApi->getCatalogByEANs: $@\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.DefaultApi()
q = q_example # String | Pipe seperated list of EAN numbers Eg: 8033765258128|C5750000104851|C7804320706009 - ONLY Fakta
try:
api_instance.get_catalog_by_eans(q)
except ApiException as e:
print("Exception when calling DefaultApi->getCatalogByEANs: %s\n" % e)
Parameters
| Name | Description |
|---|---|
| q* |
String
Pipe seperated list of EAN numbers Eg: 8033765258128|C5750000104851|C7804320706009 - ONLY Fakta
Required
|