addAccountBulkPost
Create a bunch of accounts at once
Specify the prefix of the created logins and the required quantity. If a login already exists, the next one in turn is created. The number 01, 02, 03, etc. is added to the prefix. Available only for the Master!
/addAccountBulk
Usage and SDK Samples
curl -X POST -H "Token: [[apiKey]]" "https://api.superplat.pw/api/v1/addAccountBulk"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AccountsApi;
import java.io.File;
import java.util.*;
public class AccountsApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: Token
ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
Token.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Token.setApiKeyPrefix("Token");
AccountsApi apiInstance = new AccountsApi();
Data_3 data = ; // Data_3 |
try {
array[AddAccountBulkResult] result = apiInstance.addAccountBulkPost(data);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#addAccountBulkPost");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AccountsApi;
public class AccountsApiExample {
public static void main(String[] args) {
AccountsApi apiInstance = new AccountsApi();
Data_3 data = ; // Data_3 |
try {
array[AddAccountBulkResult] result = apiInstance.addAccountBulkPost(data);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#addAccountBulkPost");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Token"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Token"];
Data_3 *data = ; //
AccountsApi *apiInstance = [[AccountsApi alloc] init];
// Создать сразу пачку аккаунтов
[apiInstance addAccountBulkPostWith:data
completionHandler: ^(array[AddAccountBulkResult] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var SuperomaticPaySystemApi = require('superomatic_pay_system_api');
var defaultClient = SuperomaticPaySystemApi.ApiClient.instance;
// Configure API key authorization: Token
var Token = defaultClient.authentications['Token'];
Token.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Token.apiKeyPrefix['Token'] = "Token"
var api = new SuperomaticPaySystemApi.AccountsApi()
var data = ; // {Data_3}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.addAccountBulkPost(data, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class addAccountBulkPostExample
{
public void main()
{
// Configure API key authorization: Token
Configuration.Default.ApiKey.Add("Token", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Token", "Bearer");
var apiInstance = new AccountsApi();
var data = new Data_3(); // Data_3 |
try
{
// Создать сразу пачку аккаунтов
array[AddAccountBulkResult] result = apiInstance.addAccountBulkPost(data);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AccountsApi.addAccountBulkPost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Token
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Token', 'Bearer');
$api_instance = new Swagger\Client\Api\AccountsApi();
$data = ; // Data_3 |
try {
$result = $api_instance->addAccountBulkPost($data);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountsApi->addAccountBulkPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AccountsApi;
# Configure API key authorization: Token
$WWW::SwaggerClient::Configuration::api_key->{'Token'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Token'} = "Bearer";
my $api_instance = WWW::SwaggerClient::AccountsApi->new();
my $data = WWW::SwaggerClient::Object::Data_3->new(); # Data_3 |
eval {
my $result = $api_instance->addAccountBulkPost(data => $data);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AccountsApi->addAccountBulkPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: Token
swagger_client.configuration.api_key['Token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Token'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.AccountsApi()
data = # Data_3 |
try:
# Create a bunch of accounts at once
api_response = api_instance.add_account_bulk_post(data)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountsApi->addAccountBulkPost: %s\n" % e)
Parameters
Name | Description |
---|---|
data * |