formula
find your medicine by formula
/apitalk/medicine-api/get_by_formula
Usage and SDK Samples
curl -X POST "https://api.apieco.ir/apitalk/medicine-api/get_by_formula"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.FindApi;
import java.io.File;
import java.util.*;
public class FindApiExample {
public static void main(String[] args) {
FindApi apiInstance = new FindApi();
String apiecoKey = apiecoKey_example; // String | apikey for use API
String formula = formula_example; // String | your formula
try {
find result = apiInstance.formula(apiecoKey, formula);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FindApi#formula");
e.printStackTrace();
}
}
}
import io.swagger.client.api.FindApi;
public class FindApiExample {
public static void main(String[] args) {
FindApi apiInstance = new FindApi();
String apiecoKey = apiecoKey_example; // String | apikey for use API
String formula = formula_example; // String | your formula
try {
find result = apiInstance.formula(apiecoKey, formula);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FindApi#formula");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; // apikey for use API
String *formula = formula_example; // your formula
FindApi *apiInstance = [[FindApi alloc] init];
// find your medicine by formula
[apiInstance formulaWith:apiecoKey
formula:formula
completionHandler: ^(find output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var MedicineApi = require('medicine_api');
var api = new MedicineApi.FindApi()
var apiecoKey = apiecoKey_example; // {String} apikey for use API
var formula = formula_example; // {String} your formula
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.formula(apiecoKey, formula, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class formulaExample
{
public void main()
{
var apiInstance = new FindApi();
var apiecoKey = apiecoKey_example; // String | apikey for use API
var formula = formula_example; // String | your formula
try
{
// find your medicine by formula
find result = apiInstance.formula(apiecoKey, formula);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling FindApi.formula: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\FindApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$formula = formula_example; // String | your formula
try {
$result = $api_instance->formula($apiecoKey, $formula);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling FindApi->formula: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::FindApi;
my $api_instance = WWW::SwaggerClient::FindApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $formula = formula_example; # String | your formula
eval {
my $result = $api_instance->formula(apiecoKey => $apiecoKey, formula => $formula);
print Dumper($result);
};
if ($@) {
warn "Exception when calling FindApi->formula: $@\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.FindApi()
apiecoKey = apiecoKey_example # String | apikey for use API
formula = formula_example # String | your formula
try:
# find your medicine by formula
api_response = api_instance.formula(apiecoKey, formula)
pprint(api_response)
except ApiException as e:
print("Exception when calling FindApi->formula: %s\n" % e)
Parameters
Header parameters
Name | Description |
---|---|
apieco-key* |
String
apikey for use API
Required
|
Form parameters
Name | Description |
---|---|
formula* |
String
your formula
Required
|