createUsingPOST
Add a new account
/1.0/accounts
Usage and SDK Samples
curl -X POST "https://api.apieco.ir/hesabam/1.0/accounts"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AccountApi;
import java.io.File;
import java.util.*;
public class AccountApiExample {
public static void main(String[] args) {
AccountApi apiInstance = new AccountApi();
String apiecoKey = apiecoKey_example; // String | apikey for use API
CreateAccount data = ; // CreateAccount |
String hesabamAccessToken = hesabamAccessToken_example; // String |
try {
'String' result = apiInstance.createUsingPOST(apiecoKey, data, hesabamAccessToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#createUsingPOST");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AccountApi;
public class AccountApiExample {
public static void main(String[] args) {
AccountApi apiInstance = new AccountApi();
String apiecoKey = apiecoKey_example; // String | apikey for use API
CreateAccount data = ; // CreateAccount |
String hesabamAccessToken = hesabamAccessToken_example; // String |
try {
'String' result = apiInstance.createUsingPOST(apiecoKey, data, hesabamAccessToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#createUsingPOST");
e.printStackTrace();
}
}
}
String *apiecoKey = apiecoKey_example; // apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
CreateAccount *data = ; //
String *hesabamAccessToken = hesabamAccessToken_example; //
AccountApi *apiInstance = [[AccountApi alloc] init];
// Add a new account
[apiInstance createUsingPOSTWith:apiecoKey
data:data
hesabamAccessToken:hesabamAccessToken
completionHandler: ^('String' output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ApiDocumentation = require('api_documentation');
var api = new ApiDocumentation.AccountApi()
var apiecoKey = apiecoKey_example; // {String} apikey for use API
var data = ; // {CreateAccount}
var hesabamAccessToken = hesabamAccessToken_example; // {String}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.createUsingPOST(apiecoKey, data, hesabamAccessToken, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class createUsingPOSTExample
{
public void main()
{
var apiInstance = new AccountApi();
var apiecoKey = apiecoKey_example; // String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
var data = new CreateAccount(); // CreateAccount |
var hesabamAccessToken = hesabamAccessToken_example; // String |
try
{
// Add a new account
'String' result = apiInstance.createUsingPOST(apiecoKey, data, hesabamAccessToken);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AccountApi.createUsingPOST: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\AccountApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$data = ; // CreateAccount |
$hesabamAccessToken = hesabamAccessToken_example; // String |
try {
$result = $api_instance->createUsingPOST($apiecoKey, $data, $hesabamAccessToken);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountApi->createUsingPOST: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AccountApi;
my $api_instance = WWW::SwaggerClient::AccountApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $data = WWW::SwaggerClient::Object::CreateAccount->new(); # CreateAccount |
my $hesabamAccessToken = hesabamAccessToken_example; # String |
eval {
my $result = $api_instance->createUsingPOST(apiecoKey => $apiecoKey, data => $data, hesabamAccessToken => $hesabamAccessToken);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AccountApi->createUsingPOST: $@\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.AccountApi()
apiecoKey = apiecoKey_example # String | apikey for use API (default to WsLdHK46I5Wfr5xgI0ynjjyiw9Fyhydu)
data = # CreateAccount |
hesabamAccessToken = hesabamAccessToken_example # String |
try:
# Add a new account
api_response = api_instance.create_using_post(apiecoKey, data, hesabamAccessToken)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountApi->createUsingPOST: %s\n" % e)
Parameters
Name | Description |
---|---|
apieco-key* |
String
apikey for use API
Required
|
hesabam-access-token* |
String
Required
|
Name | Description |
---|---|
data * |