usersAccountsAddPost
/users/accounts-add
Usage and SDK Samples
curl -X POST "https://api.apieco.ir/nobitex/users/accounts-add"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AccountsAddApi;
import java.io.File;
import java.util.*;
public class AccountsAddApiExample {
public static void main(String[] args) {
AccountsAddApi apiInstance = new AccountsAddApi();
String authorization = authorization_example; // String | apikey for use API
String contentType = contentType_example; // String |
Body_5 body = ; // Body_5 | Request Parameters
try {
inline_response_200_8 result = apiInstance.usersAccountsAddPost(authorization, contentType, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountsAddApi#usersAccountsAddPost");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AccountsAddApi;
public class AccountsAddApiExample {
public static void main(String[] args) {
AccountsAddApi apiInstance = new AccountsAddApi();
String authorization = authorization_example; // String | apikey for use API
String contentType = contentType_example; // String |
Body_5 body = ; // Body_5 | Request Parameters
try {
inline_response_200_8 result = apiInstance.usersAccountsAddPost(authorization, contentType, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountsAddApi#usersAccountsAddPost");
e.printStackTrace();
}
}
}
String *authorization = authorization_example; // apikey for use API (default to Bearer {$token})
String *contentType = contentType_example; // (default to application/json)
Body_5 *body = ; // Request Parameters (optional)
AccountsAddApi *apiInstance = [[AccountsAddApi alloc] init];
[apiInstance usersAccountsAddPostWith:authorization
contentType:contentType
body:body
completionHandler: ^(inline_response_200_8 output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var SwaggerJsClient = require('swagger-js-client');
var api = new SwaggerJsClient.AccountsAddApi()
var authorization = authorization_example; // {String} apikey for use API
var contentType = contentType_example; // {String}
var opts = {
'body': // {Body_5} Request Parameters
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.usersAccountsAddPost(authorization, contentType, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class usersAccountsAddPostExample
{
public void main()
{
var apiInstance = new AccountsAddApi();
var authorization = authorization_example; // String | apikey for use API (default to Bearer {$token})
var contentType = contentType_example; // String | (default to application/json)
var body = new Body_5(); // Body_5 | Request Parameters (optional)
try
{
inline_response_200_8 result = apiInstance.usersAccountsAddPost(authorization, contentType, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AccountsAddApi.usersAccountsAddPost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\AccountsAddApi();
$authorization = authorization_example; // String | apikey for use API
$contentType = contentType_example; // String |
$body = ; // Body_5 | Request Parameters
try {
$result = $api_instance->usersAccountsAddPost($authorization, $contentType, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountsAddApi->usersAccountsAddPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AccountsAddApi;
my $api_instance = WWW::SwaggerClient::AccountsAddApi->new();
my $authorization = authorization_example; # String | apikey for use API
my $contentType = contentType_example; # String |
my $body = WWW::SwaggerClient::Object::Body_5->new(); # Body_5 | Request Parameters
eval {
my $result = $api_instance->usersAccountsAddPost(authorization => $authorization, contentType => $contentType, body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AccountsAddApi->usersAccountsAddPost: $@\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.AccountsAddApi()
authorization = authorization_example # String | apikey for use API (default to Bearer {$token})
contentType = contentType_example # String | (default to application/json)
body = # Body_5 | Request Parameters (optional)
try:
api_response = api_instance.users_accounts_add_post(authorization, contentType, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountsAddApi->usersAccountsAddPost: %s\n" % e)
Parameters
Header parameters
Name | Description |
---|---|
Authorization* | |
Content-Type* |
String
Required
|
Body parameters
Name | Description |
---|---|
body |