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