Enigmatch Marketplace API

Auction

createBidInAuction

Create Bid

Create a Bid in the Auction


/marketplace/auction/{id}/bid/create

Usage and SDK Samples

curl -X POST\
\
 -H "Accept: application/json,application/xml"\
 -H "Content-Type: application/json"\
 "http://petstore.swagger.io/v2/marketplace/auction/{id}/bid/create"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AuctionApi;

import java.io.File;
import java.util.*;

public class AuctionApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure OAuth2 access token for authorization: petstore_auth
        OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
        petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
        
        // Create an instance of the API class
        AuctionApi apiInstance = new AuctionApi();
        Long id = 789; // Long | auction id
        array[Bid] bid = ; // array[Bid] | 
        
        try {
            BidResponse result = apiInstance.createBidInAuction(id, bid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuctionApi#createBidInAuction");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.AuctionApi;

public class AuctionApiExample {
    public static void main(String[] args) {
        AuctionApi apiInstance = new AuctionApi();
        Long id = 789; // Long | auction id
        array[Bid] bid = ; // array[Bid] | 
        
        try {
            BidResponse result = apiInstance.createBidInAuction(id, bid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuctionApi#createBidInAuction");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
AuctionApi *apiInstance = [[AuctionApi alloc] init];
Long *id = 789; // auction id (default to null)
array[Bid] *bid = ; //  (optional)

// Create Bid
[apiInstance createBidInAuctionWith:id
    bid:bid
              completionHandler: ^(BidResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EnigmatchMarketplaceApi = require('enigmatch_marketplace_api');
var defaultClient = EnigmatchMarketplaceApi.ApiClient.instance;

// Configure OAuth2 access token for authorization: petstore_auth
var petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new EnigmatchMarketplaceApi.AuctionApi()
var id = 789; // {Long} auction id
var opts = {
  'bid':  // {array[Bid]} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createBidInAuction(id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class createBidInAuctionExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: petstore_auth
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            
            // Create an instance of the API class
            var apiInstance = new AuctionApi();
            var id = 789;  // Long | auction id (default to null)
            var bid = new array[Bid](); // array[Bid] |  (optional) 

            try {
                // Create Bid
                BidResponse result = apiInstance.createBidInAuction(id, bid);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AuctionApi.createBidInAuction: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: petstore_auth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AuctionApi();
$id = 789; // Long | auction id
$bid = ; // array[Bid] | 

try {
    $result = $api_instance->createBidInAuction($id, $bid);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuctionApi->createBidInAuction: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AuctionApi;

# Configure OAuth2 access token for authorization: petstore_auth
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AuctionApi->new();
my $id = 789; # Long | auction id
my $bid = [WWW::OPenAPIClient::Object::array[Bid]->new()]; # array[Bid] | 

eval { 
    my $result = $api_instance->createBidInAuction(id => $id, bid => $bid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuctionApi->createBidInAuction: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: petstore_auth
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.AuctionApi()
id = 789 # Long | auction id (default to null)
bid =  # array[Bid] |  (optional)

try: 
    # Create Bid
    api_response = api_instance.create_bid_in_auction(id, bid=bid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuctionApi->createBidInAuction: %s\n" % e)
extern crate AuctionApi;

pub fn main() {
    let id = 789; // Long
    let bid = ; // array[Bid]

    let mut context = AuctionApi::Context::default();
    let result = client.createBidInAuction(id, bid, &context).wait();

    println!("{:?}", result);
}

Scopes

write:pets modify pets in your account
read:pets read your pets

Parameters

Path parameters
Name Description
id*
Long (int64)
auction id
Required
Body parameters
Name Description
bid

Responses


createOfferInAuction

Create Offer - Cash Collateral

Create an Offer in the Auction, using cash collateral


/marketplace/auction/{id}/offer/create

Usage and SDK Samples

curl -X POST\
\
 -H "Accept: application/xml,application/json"\
 -H "Content-Type: application/json"\
 "http://petstore.swagger.io/v2/marketplace/auction/{id}/offer/create"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AuctionApi;

import java.io.File;
import java.util.*;

public class AuctionApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure OAuth2 access token for authorization: petstore_auth
        OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
        petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
        
        // Create an instance of the API class
        AuctionApi apiInstance = new AuctionApi();
        Long id = 789; // Long | auction id
        UNKNOWN_BASE_TYPE uNKNOWNBASETYPE = [{"margin_percent":105,"currency":"USD","collateral_type":"CASH","preferred_tenor":"14d","counterparties":["INTERACTIVE_BROKERS","CREDIT_SUISSE","CITADEL","HUDSON_RIVER_TRADING"],"inventory_supply":[{"symbol":"AAPL","cusip":3.78331E7,"quantity":15000,"offer_rate_bps":18},{"symbol":"TSLA","cusip":"88160R101","quantity":20000,"offer_rate_bps":70}]}]; // UNKNOWN_BASE_TYPE | 
        
        try {
            OfferResponse result = apiInstance.createOfferInAuction(id, uNKNOWNBASETYPE);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuctionApi#createOfferInAuction");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.AuctionApi;

public class AuctionApiExample {
    public static void main(String[] args) {
        AuctionApi apiInstance = new AuctionApi();
        Long id = 789; // Long | auction id
        UNKNOWN_BASE_TYPE uNKNOWNBASETYPE = [{"margin_percent":105,"currency":"USD","collateral_type":"CASH","preferred_tenor":"14d","counterparties":["INTERACTIVE_BROKERS","CREDIT_SUISSE","CITADEL","HUDSON_RIVER_TRADING"],"inventory_supply":[{"symbol":"AAPL","cusip":3.78331E7,"quantity":15000,"offer_rate_bps":18},{"symbol":"TSLA","cusip":"88160R101","quantity":20000,"offer_rate_bps":70}]}]; // UNKNOWN_BASE_TYPE | 
        
        try {
            OfferResponse result = apiInstance.createOfferInAuction(id, uNKNOWNBASETYPE);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuctionApi#createOfferInAuction");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
AuctionApi *apiInstance = [[AuctionApi alloc] init];
Long *id = 789; // auction id (default to null)
UNKNOWN_BASE_TYPE *uNKNOWNBASETYPE = [{"margin_percent":105,"currency":"USD","collateral_type":"CASH","preferred_tenor":"14d","counterparties":["INTERACTIVE_BROKERS","CREDIT_SUISSE","CITADEL","HUDSON_RIVER_TRADING"],"inventory_supply":[{"symbol":"AAPL","cusip":3.78331E7,"quantity":15000,"offer_rate_bps":18},{"symbol":"TSLA","cusip":"88160R101","quantity":20000,"offer_rate_bps":70}]}]; //  (optional)

// Create Offer - Cash Collateral
[apiInstance createOfferInAuctionWith:id
    uNKNOWNBASETYPE:uNKNOWNBASETYPE
              completionHandler: ^(OfferResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EnigmatchMarketplaceApi = require('enigmatch_marketplace_api');
var defaultClient = EnigmatchMarketplaceApi.ApiClient.instance;

// Configure OAuth2 access token for authorization: petstore_auth
var petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new EnigmatchMarketplaceApi.AuctionApi()
var id = 789; // {Long} auction id
var opts = {
  'uNKNOWNBASETYPE': [{"margin_percent":105,"currency":"USD","collateral_type":"CASH","preferred_tenor":"14d","counterparties":["INTERACTIVE_BROKERS","CREDIT_SUISSE","CITADEL","HUDSON_RIVER_TRADING"],"inventory_supply":[{"symbol":"AAPL","cusip":3.78331E7,"quantity":15000,"offer_rate_bps":18},{"symbol":"TSLA","cusip":"88160R101","quantity":20000,"offer_rate_bps":70}]}] // {UNKNOWN_BASE_TYPE} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createOfferInAuction(id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class createOfferInAuctionExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: petstore_auth
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            
            // Create an instance of the API class
            var apiInstance = new AuctionApi();
            var id = 789;  // Long | auction id (default to null)
            var uNKNOWNBASETYPE = new UNKNOWN_BASE_TYPE(); // UNKNOWN_BASE_TYPE |  (optional) 

            try {
                // Create Offer - Cash Collateral
                OfferResponse result = apiInstance.createOfferInAuction(id, uNKNOWNBASETYPE);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AuctionApi.createOfferInAuction: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: petstore_auth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AuctionApi();
$id = 789; // Long | auction id
$uNKNOWNBASETYPE = [{"margin_percent":105,"currency":"USD","collateral_type":"CASH","preferred_tenor":"14d","counterparties":["INTERACTIVE_BROKERS","CREDIT_SUISSE","CITADEL","HUDSON_RIVER_TRADING"],"inventory_supply":[{"symbol":"AAPL","cusip":3.78331E7,"quantity":15000,"offer_rate_bps":18},{"symbol":"TSLA","cusip":"88160R101","quantity":20000,"offer_rate_bps":70}]}]; // UNKNOWN_BASE_TYPE | 

try {
    $result = $api_instance->createOfferInAuction($id, $uNKNOWNBASETYPE);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuctionApi->createOfferInAuction: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AuctionApi;

# Configure OAuth2 access token for authorization: petstore_auth
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AuctionApi->new();
my $id = 789; # Long | auction id
my $uNKNOWNBASETYPE = WWW::OPenAPIClient::Object::UNKNOWN_BASE_TYPE->new(); # UNKNOWN_BASE_TYPE | 

eval { 
    my $result = $api_instance->createOfferInAuction(id => $id, uNKNOWNBASETYPE => $uNKNOWNBASETYPE);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuctionApi->createOfferInAuction: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: petstore_auth
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.AuctionApi()
id = 789 # Long | auction id (default to null)
uNKNOWNBASETYPE = [{"margin_percent":105,"currency":"USD","collateral_type":"CASH","preferred_tenor":"14d","counterparties":["INTERACTIVE_BROKERS","CREDIT_SUISSE","CITADEL","HUDSON_RIVER_TRADING"],"inventory_supply":[{"symbol":"AAPL","cusip":3.78331E7,"quantity":15000,"offer_rate_bps":18},{"symbol":"TSLA","cusip":"88160R101","quantity":20000,"offer_rate_bps":70}]}] # UNKNOWN_BASE_TYPE |  (optional)

try: 
    # Create Offer - Cash Collateral
    api_response = api_instance.create_offer_in_auction(id, uNKNOWNBASETYPE=uNKNOWNBASETYPE)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuctionApi->createOfferInAuction: %s\n" % e)
extern crate AuctionApi;

pub fn main() {
    let id = 789; // Long
    let uNKNOWNBASETYPE = [{"margin_percent":105,"currency":"USD","collateral_type":"CASH","preferred_tenor":"14d","counterparties":["INTERACTIVE_BROKERS","CREDIT_SUISSE","CITADEL","HUDSON_RIVER_TRADING"],"inventory_supply":[{"symbol":"AAPL","cusip":3.78331E7,"quantity":15000,"offer_rate_bps":18},{"symbol":"TSLA","cusip":"88160R101","quantity":20000,"offer_rate_bps":70}]}]; // UNKNOWN_BASE_TYPE

    let mut context = AuctionApi::Context::default();
    let result = client.createOfferInAuction(id, uNKNOWNBASETYPE, &context).wait();

    println!("{:?}", result);
}

Scopes

write:pets modify pets in your account
read:pets read your pets

Parameters

Path parameters
Name Description
id*
Long (int64)
auction id
Required
Body parameters
Name Description
uNKNOWNBASETYPE

Responses


getAuctionById

Auction Summary

List of results for a particular auction


/marketplace/auction/{id}

Usage and SDK Samples

curl -X GET\
 -H "Accept: application/json"\
 "http://petstore.swagger.io/v2/marketplace/auction/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AuctionApi;

import java.io.File;
import java.util.*;

public class AuctionApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        AuctionApi apiInstance = new AuctionApi();
        Long id = 789; // Long | auction id
        
        try {
            array[AuctionResult] result = apiInstance.getAuctionById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuctionApi#getAuctionById");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.AuctionApi;

public class AuctionApiExample {
    public static void main(String[] args) {
        AuctionApi apiInstance = new AuctionApi();
        Long id = 789; // Long | auction id
        
        try {
            array[AuctionResult] result = apiInstance.getAuctionById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuctionApi#getAuctionById");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AuctionApi *apiInstance = [[AuctionApi alloc] init];
Long *id = 789; // auction id (default to null)

// Auction Summary
[apiInstance getAuctionByIdWith:id
              completionHandler: ^(array[AuctionResult] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EnigmatchMarketplaceApi = require('enigmatch_marketplace_api');

// Create an instance of the API class
var api = new EnigmatchMarketplaceApi.AuctionApi()
var id = 789; // {Long} auction id

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAuctionById(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getAuctionByIdExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new AuctionApi();
            var id = 789;  // Long | auction id (default to null)

            try {
                // Auction Summary
                array[AuctionResult] result = apiInstance.getAuctionById(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AuctionApi.getAuctionById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AuctionApi();
$id = 789; // Long | auction id

try {
    $result = $api_instance->getAuctionById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuctionApi->getAuctionById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AuctionApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AuctionApi->new();
my $id = 789; # Long | auction id

eval { 
    my $result = $api_instance->getAuctionById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuctionApi->getAuctionById: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.AuctionApi()
id = 789 # Long | auction id (default to null)

try: 
    # Auction Summary
    api_response = api_instance.get_auction_by_id(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuctionApi->getAuctionById: %s\n" % e)
extern crate AuctionApi;

pub fn main() {
    let id = 789; // Long

    let mut context = AuctionApi::Context::default();
    let result = client.getAuctionById(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Long (int64)
auction id
Required

Responses


getAuctions

Daily Auctions

List of Auctions for the currrent day, past and upcoming


/marketplace/auction/schedule

Usage and SDK Samples

curl -X GET\
 -H "Accept: application/json"\
 "http://petstore.swagger.io/v2/marketplace/auction/schedule"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AuctionApi;

import java.io.File;
import java.util.*;

public class AuctionApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        AuctionApi apiInstance = new AuctionApi();
        
        try {
            array[Auction] result = apiInstance.getAuctions();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuctionApi#getAuctions");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.AuctionApi;

public class AuctionApiExample {
    public static void main(String[] args) {
        AuctionApi apiInstance = new AuctionApi();
        
        try {
            array[Auction] result = apiInstance.getAuctions();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuctionApi#getAuctions");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
AuctionApi *apiInstance = [[AuctionApi alloc] init];

// Daily Auctions
[apiInstance getAuctionsWithCompletionHandler: 
              ^(array[Auction] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EnigmatchMarketplaceApi = require('enigmatch_marketplace_api');

// Create an instance of the API class
var api = new EnigmatchMarketplaceApi.AuctionApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAuctions(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getAuctionsExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new AuctionApi();

            try {
                // Daily Auctions
                array[Auction] result = apiInstance.getAuctions();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AuctionApi.getAuctions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AuctionApi();

try {
    $result = $api_instance->getAuctions();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuctionApi->getAuctions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AuctionApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AuctionApi->new();

eval { 
    my $result = $api_instance->getAuctions();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuctionApi->getAuctions: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.AuctionApi()

try: 
    # Daily Auctions
    api_response = api_instance.get_auctions()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuctionApi->getAuctions: %s\n" % e)
extern crate AuctionApi;

pub fn main() {

    let mut context = AuctionApi::Context::default();
    let result = client.getAuctions(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


updateBidInAuction

Update Bid

Update a Bid in the Auction


/marketplace/auction/{id}/bid/update

Usage and SDK Samples

curl -X POST\
\
 -H "Accept: application/json,application/xml"\
 -H "Content-Type: application/json"\
 "http://petstore.swagger.io/v2/marketplace/auction/{id}/bid/update"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AuctionApi;

import java.io.File;
import java.util.*;

public class AuctionApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure OAuth2 access token for authorization: petstore_auth
        OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
        petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
        
        // Create an instance of the API class
        AuctionApi apiInstance = new AuctionApi();
        Long id = 789; // Long | auction id
        array[Bid] bid = ; // array[Bid] | 
        
        try {
            BidResponse result = apiInstance.updateBidInAuction(id, bid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuctionApi#updateBidInAuction");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.AuctionApi;

public class AuctionApiExample {
    public static void main(String[] args) {
        AuctionApi apiInstance = new AuctionApi();
        Long id = 789; // Long | auction id
        array[Bid] bid = ; // array[Bid] | 
        
        try {
            BidResponse result = apiInstance.updateBidInAuction(id, bid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuctionApi#updateBidInAuction");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
AuctionApi *apiInstance = [[AuctionApi alloc] init];
Long *id = 789; // auction id (default to null)
array[Bid] *bid = ; //  (optional)

// Update Bid
[apiInstance updateBidInAuctionWith:id
    bid:bid
              completionHandler: ^(BidResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EnigmatchMarketplaceApi = require('enigmatch_marketplace_api');
var defaultClient = EnigmatchMarketplaceApi.ApiClient.instance;

// Configure OAuth2 access token for authorization: petstore_auth
var petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new EnigmatchMarketplaceApi.AuctionApi()
var id = 789; // {Long} auction id
var opts = {
  'bid':  // {array[Bid]} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateBidInAuction(id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class updateBidInAuctionExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: petstore_auth
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            
            // Create an instance of the API class
            var apiInstance = new AuctionApi();
            var id = 789;  // Long | auction id (default to null)
            var bid = new array[Bid](); // array[Bid] |  (optional) 

            try {
                // Update Bid
                BidResponse result = apiInstance.updateBidInAuction(id, bid);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AuctionApi.updateBidInAuction: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: petstore_auth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AuctionApi();
$id = 789; // Long | auction id
$bid = ; // array[Bid] | 

try {
    $result = $api_instance->updateBidInAuction($id, $bid);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuctionApi->updateBidInAuction: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AuctionApi;

# Configure OAuth2 access token for authorization: petstore_auth
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AuctionApi->new();
my $id = 789; # Long | auction id
my $bid = [WWW::OPenAPIClient::Object::array[Bid]->new()]; # array[Bid] | 

eval { 
    my $result = $api_instance->updateBidInAuction(id => $id, bid => $bid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuctionApi->updateBidInAuction: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: petstore_auth
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.AuctionApi()
id = 789 # Long | auction id (default to null)
bid =  # array[Bid] |  (optional)

try: 
    # Update Bid
    api_response = api_instance.update_bid_in_auction(id, bid=bid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuctionApi->updateBidInAuction: %s\n" % e)
extern crate AuctionApi;

pub fn main() {
    let id = 789; // Long
    let bid = ; // array[Bid]

    let mut context = AuctionApi::Context::default();
    let result = client.updateBidInAuction(id, bid, &context).wait();

    println!("{:?}", result);
}

Scopes

write:pets modify pets in your account
read:pets read your pets

Parameters

Path parameters
Name Description
id*
Long (int64)
auction id
Required
Body parameters
Name Description
bid

Responses


updateOfferInAuction

Update an Offer

Update a submitted Offer in the Auction, either cash or non-cash


/marketplace/auction/{id}/offer/update

Usage and SDK Samples

curl -X POST\
\
 -H "Accept: application/xml,application/json"\
 -H "Content-Type: application/json"\
 "http://petstore.swagger.io/v2/marketplace/auction/{id}/offer/update"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AuctionApi;

import java.io.File;
import java.util.*;

public class AuctionApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure OAuth2 access token for authorization: petstore_auth
        OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
        petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
        
        // Create an instance of the API class
        AuctionApi apiInstance = new AuctionApi();
        Long id = 789; // Long | auction id
        UNKNOWN_BASE_TYPE uNKNOWNBASETYPE = [{"margin_percent":105,"currency":"USD","collateral_type":"CASH","preferred_tenor":"14d","counterparties":["INTERACTIVE_BROKERS","CREDIT_SUISSE","CITADEL","HUDSON_RIVER_TRADING"],"inventory_supply":[{"symbol":"AAPL","cusip":3.78331E7,"quantity":15000,"offer_rate_bps":18},{"symbol":"TSLA","cusip":"88160R101","quantity":20000,"offer_rate_bps":75}]}]; // UNKNOWN_BASE_TYPE | 
        
        try {
            OfferResponse result = apiInstance.updateOfferInAuction(id, uNKNOWNBASETYPE);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuctionApi#updateOfferInAuction");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.AuctionApi;

public class AuctionApiExample {
    public static void main(String[] args) {
        AuctionApi apiInstance = new AuctionApi();
        Long id = 789; // Long | auction id
        UNKNOWN_BASE_TYPE uNKNOWNBASETYPE = [{"margin_percent":105,"currency":"USD","collateral_type":"CASH","preferred_tenor":"14d","counterparties":["INTERACTIVE_BROKERS","CREDIT_SUISSE","CITADEL","HUDSON_RIVER_TRADING"],"inventory_supply":[{"symbol":"AAPL","cusip":3.78331E7,"quantity":15000,"offer_rate_bps":18},{"symbol":"TSLA","cusip":"88160R101","quantity":20000,"offer_rate_bps":75}]}]; // UNKNOWN_BASE_TYPE | 
        
        try {
            OfferResponse result = apiInstance.updateOfferInAuction(id, uNKNOWNBASETYPE);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuctionApi#updateOfferInAuction");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
AuctionApi *apiInstance = [[AuctionApi alloc] init];
Long *id = 789; // auction id (default to null)
UNKNOWN_BASE_TYPE *uNKNOWNBASETYPE = [{"margin_percent":105,"currency":"USD","collateral_type":"CASH","preferred_tenor":"14d","counterparties":["INTERACTIVE_BROKERS","CREDIT_SUISSE","CITADEL","HUDSON_RIVER_TRADING"],"inventory_supply":[{"symbol":"AAPL","cusip":3.78331E7,"quantity":15000,"offer_rate_bps":18},{"symbol":"TSLA","cusip":"88160R101","quantity":20000,"offer_rate_bps":75}]}]; //  (optional)

// Update an Offer
[apiInstance updateOfferInAuctionWith:id
    uNKNOWNBASETYPE:uNKNOWNBASETYPE
              completionHandler: ^(OfferResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EnigmatchMarketplaceApi = require('enigmatch_marketplace_api');
var defaultClient = EnigmatchMarketplaceApi.ApiClient.instance;

// Configure OAuth2 access token for authorization: petstore_auth
var petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new EnigmatchMarketplaceApi.AuctionApi()
var id = 789; // {Long} auction id
var opts = {
  'uNKNOWNBASETYPE': [{"margin_percent":105,"currency":"USD","collateral_type":"CASH","preferred_tenor":"14d","counterparties":["INTERACTIVE_BROKERS","CREDIT_SUISSE","CITADEL","HUDSON_RIVER_TRADING"],"inventory_supply":[{"symbol":"AAPL","cusip":3.78331E7,"quantity":15000,"offer_rate_bps":18},{"symbol":"TSLA","cusip":"88160R101","quantity":20000,"offer_rate_bps":75}]}] // {UNKNOWN_BASE_TYPE} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateOfferInAuction(id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class updateOfferInAuctionExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: petstore_auth
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
            
            // Create an instance of the API class
            var apiInstance = new AuctionApi();
            var id = 789;  // Long | auction id (default to null)
            var uNKNOWNBASETYPE = new UNKNOWN_BASE_TYPE(); // UNKNOWN_BASE_TYPE |  (optional) 

            try {
                // Update an Offer
                OfferResponse result = apiInstance.updateOfferInAuction(id, uNKNOWNBASETYPE);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AuctionApi.updateOfferInAuction: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: petstore_auth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AuctionApi();
$id = 789; // Long | auction id
$uNKNOWNBASETYPE = [{"margin_percent":105,"currency":"USD","collateral_type":"CASH","preferred_tenor":"14d","counterparties":["INTERACTIVE_BROKERS","CREDIT_SUISSE","CITADEL","HUDSON_RIVER_TRADING"],"inventory_supply":[{"symbol":"AAPL","cusip":3.78331E7,"quantity":15000,"offer_rate_bps":18},{"symbol":"TSLA","cusip":"88160R101","quantity":20000,"offer_rate_bps":75}]}]; // UNKNOWN_BASE_TYPE | 

try {
    $result = $api_instance->updateOfferInAuction($id, $uNKNOWNBASETYPE);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuctionApi->updateOfferInAuction: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AuctionApi;

# Configure OAuth2 access token for authorization: petstore_auth
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AuctionApi->new();
my $id = 789; # Long | auction id
my $uNKNOWNBASETYPE = WWW::OPenAPIClient::Object::UNKNOWN_BASE_TYPE->new(); # UNKNOWN_BASE_TYPE | 

eval { 
    my $result = $api_instance->updateOfferInAuction(id => $id, uNKNOWNBASETYPE => $uNKNOWNBASETYPE);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuctionApi->updateOfferInAuction: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: petstore_auth
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.AuctionApi()
id = 789 # Long | auction id (default to null)
uNKNOWNBASETYPE = [{"margin_percent":105,"currency":"USD","collateral_type":"CASH","preferred_tenor":"14d","counterparties":["INTERACTIVE_BROKERS","CREDIT_SUISSE","CITADEL","HUDSON_RIVER_TRADING"],"inventory_supply":[{"symbol":"AAPL","cusip":3.78331E7,"quantity":15000,"offer_rate_bps":18},{"symbol":"TSLA","cusip":"88160R101","quantity":20000,"offer_rate_bps":75}]}] # UNKNOWN_BASE_TYPE |  (optional)

try: 
    # Update an Offer
    api_response = api_instance.update_offer_in_auction(id, uNKNOWNBASETYPE=uNKNOWNBASETYPE)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuctionApi->updateOfferInAuction: %s\n" % e)
extern crate AuctionApi;

pub fn main() {
    let id = 789; // Long
    let uNKNOWNBASETYPE = [{"margin_percent":105,"currency":"USD","collateral_type":"CASH","preferred_tenor":"14d","counterparties":["INTERACTIVE_BROKERS","CREDIT_SUISSE","CITADEL","HUDSON_RIVER_TRADING"],"inventory_supply":[{"symbol":"AAPL","cusip":3.78331E7,"quantity":15000,"offer_rate_bps":18},{"symbol":"TSLA","cusip":"88160R101","quantity":20000,"offer_rate_bps":75}]}]; // UNKNOWN_BASE_TYPE

    let mut context = AuctionApi::Context::default();
    let result = client.updateOfferInAuction(id, uNKNOWNBASETYPE, &context).wait();

    println!("{:?}", result);
}

Scopes

write:pets modify pets in your account
read:pets read your pets

Parameters

Path parameters
Name Description
id*
Long (int64)
auction id
Required
Body parameters
Name Description
uNKNOWNBASETYPE

Responses


Instruments

getInstrumentsByCountry

List of supported instruments

List of Instruments supported within the Enigmatch auction for a given country


/marketplace/instruments/{country}

Usage and SDK Samples

curl -X GET\
 -H "Accept: application/json"\
 "http://petstore.swagger.io/v2/marketplace/instruments/{country}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InstrumentsApi;

import java.io.File;
import java.util.*;

public class InstrumentsApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        InstrumentsApi apiInstance = new InstrumentsApi();
        String country = country_example; // String | ISO 3166-1 Alpha3 country code
        
        try {
            array[Instrument] result = apiInstance.getInstrumentsByCountry(country);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InstrumentsApi#getInstrumentsByCountry");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.InstrumentsApi;

public class InstrumentsApiExample {
    public static void main(String[] args) {
        InstrumentsApi apiInstance = new InstrumentsApi();
        String country = country_example; // String | ISO 3166-1 Alpha3 country code
        
        try {
            array[Instrument] result = apiInstance.getInstrumentsByCountry(country);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InstrumentsApi#getInstrumentsByCountry");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
InstrumentsApi *apiInstance = [[InstrumentsApi alloc] init];
String *country = country_example; // ISO 3166-1 Alpha3 country code (default to null)

// List of supported instruments
[apiInstance getInstrumentsByCountryWith:country
              completionHandler: ^(array[Instrument] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EnigmatchMarketplaceApi = require('enigmatch_marketplace_api');

// Create an instance of the API class
var api = new EnigmatchMarketplaceApi.InstrumentsApi()
var country = country_example; // {String} ISO 3166-1 Alpha3 country code

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getInstrumentsByCountry(country, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getInstrumentsByCountryExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new InstrumentsApi();
            var country = country_example;  // String | ISO 3166-1 Alpha3 country code (default to null)

            try {
                // List of supported instruments
                array[Instrument] result = apiInstance.getInstrumentsByCountry(country);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InstrumentsApi.getInstrumentsByCountry: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InstrumentsApi();
$country = country_example; // String | ISO 3166-1 Alpha3 country code

try {
    $result = $api_instance->getInstrumentsByCountry($country);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InstrumentsApi->getInstrumentsByCountry: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::InstrumentsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InstrumentsApi->new();
my $country = country_example; # String | ISO 3166-1 Alpha3 country code

eval { 
    my $result = $api_instance->getInstrumentsByCountry(country => $country);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InstrumentsApi->getInstrumentsByCountry: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.InstrumentsApi()
country = country_example # String | ISO 3166-1 Alpha3 country code (default to null)

try: 
    # List of supported instruments
    api_response = api_instance.get_instruments_by_country(country)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InstrumentsApi->getInstrumentsByCountry: %s\n" % e)
extern crate InstrumentsApi;

pub fn main() {
    let country = country_example; // String

    let mut context = InstrumentsApi::Context::default();
    let result = client.getInstrumentsByCountry(country, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
country*
String
ISO 3166-1 Alpha3 country code
Required

Responses


Price

getLoanNetSecuritySummaryByCusip

LOANNET Indicative Price and volume summary for a security

LoanNet Indicative Price and volume summary for a security


/marketplace/indicative_price/{cusip}

Usage and SDK Samples

curl -X GET\
 -H "Accept: application/json"\
 "http://petstore.swagger.io/v2/marketplace/indicative_price/{cusip}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PriceApi;

import java.io.File;
import java.util.*;

public class PriceApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        PriceApi apiInstance = new PriceApi();
        String cusip = cusip_example; // String | CUSIP
        
        try {
            IndicativeSecuritySummary result = apiInstance.getLoanNetSecuritySummaryByCusip(cusip);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PriceApi#getLoanNetSecuritySummaryByCusip");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.PriceApi;

public class PriceApiExample {
    public static void main(String[] args) {
        PriceApi apiInstance = new PriceApi();
        String cusip = cusip_example; // String | CUSIP
        
        try {
            IndicativeSecuritySummary result = apiInstance.getLoanNetSecuritySummaryByCusip(cusip);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PriceApi#getLoanNetSecuritySummaryByCusip");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PriceApi *apiInstance = [[PriceApi alloc] init];
String *cusip = cusip_example; // CUSIP (default to null)

// LOANNET Indicative Price and volume summary for a security
[apiInstance getLoanNetSecuritySummaryByCusipWith:cusip
              completionHandler: ^(IndicativeSecuritySummary output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EnigmatchMarketplaceApi = require('enigmatch_marketplace_api');

// Create an instance of the API class
var api = new EnigmatchMarketplaceApi.PriceApi()
var cusip = cusip_example; // {String} CUSIP

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getLoanNetSecuritySummaryByCusip(cusip, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getLoanNetSecuritySummaryByCusipExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new PriceApi();
            var cusip = cusip_example;  // String | CUSIP (default to null)

            try {
                // LOANNET Indicative Price and volume summary for a security
                IndicativeSecuritySummary result = apiInstance.getLoanNetSecuritySummaryByCusip(cusip);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PriceApi.getLoanNetSecuritySummaryByCusip: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PriceApi();
$cusip = cusip_example; // String | CUSIP

try {
    $result = $api_instance->getLoanNetSecuritySummaryByCusip($cusip);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PriceApi->getLoanNetSecuritySummaryByCusip: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PriceApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PriceApi->new();
my $cusip = cusip_example; # String | CUSIP

eval { 
    my $result = $api_instance->getLoanNetSecuritySummaryByCusip(cusip => $cusip);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PriceApi->getLoanNetSecuritySummaryByCusip: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.PriceApi()
cusip = cusip_example # String | CUSIP (default to null)

try: 
    # LOANNET Indicative Price and volume summary for a security
    api_response = api_instance.get_loan_net_security_summary_by_cusip(cusip)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PriceApi->getLoanNetSecuritySummaryByCusip: %s\n" % e)
extern crate PriceApi;

pub fn main() {
    let cusip = cusip_example; // String

    let mut context = PriceApi::Context::default();
    let result = client.getLoanNetSecuritySummaryByCusip(cusip, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
cusip*
String
CUSIP
Required

Responses


getSecuritySummaryByCusip

Price and volume summary for a security

Price and volume summary for a security


/marketplace/price/{cusip}

Usage and SDK Samples

curl -X GET\
 -H "Accept: application/json"\
 "http://petstore.swagger.io/v2/marketplace/price/{cusip}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PriceApi;

import java.io.File;
import java.util.*;

public class PriceApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        PriceApi apiInstance = new PriceApi();
        String cusip = cusip_example; // String | CUSIP
        
        try {
            SecuritySummary result = apiInstance.getSecuritySummaryByCusip(cusip);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PriceApi#getSecuritySummaryByCusip");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.PriceApi;

public class PriceApiExample {
    public static void main(String[] args) {
        PriceApi apiInstance = new PriceApi();
        String cusip = cusip_example; // String | CUSIP
        
        try {
            SecuritySummary result = apiInstance.getSecuritySummaryByCusip(cusip);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PriceApi#getSecuritySummaryByCusip");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PriceApi *apiInstance = [[PriceApi alloc] init];
String *cusip = cusip_example; // CUSIP (default to null)

// Price and volume summary for a security
[apiInstance getSecuritySummaryByCusipWith:cusip
              completionHandler: ^(SecuritySummary output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EnigmatchMarketplaceApi = require('enigmatch_marketplace_api');

// Create an instance of the API class
var api = new EnigmatchMarketplaceApi.PriceApi()
var cusip = cusip_example; // {String} CUSIP

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSecuritySummaryByCusip(cusip, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getSecuritySummaryByCusipExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new PriceApi();
            var cusip = cusip_example;  // String | CUSIP (default to null)

            try {
                // Price and volume summary for a security
                SecuritySummary result = apiInstance.getSecuritySummaryByCusip(cusip);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PriceApi.getSecuritySummaryByCusip: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PriceApi();
$cusip = cusip_example; // String | CUSIP

try {
    $result = $api_instance->getSecuritySummaryByCusip($cusip);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PriceApi->getSecuritySummaryByCusip: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PriceApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PriceApi->new();
my $cusip = cusip_example; # String | CUSIP

eval { 
    my $result = $api_instance->getSecuritySummaryByCusip(cusip => $cusip);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PriceApi->getSecuritySummaryByCusip: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.PriceApi()
cusip = cusip_example # String | CUSIP (default to null)

try: 
    # Price and volume summary for a security
    api_response = api_instance.get_security_summary_by_cusip(cusip)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PriceApi->getSecuritySummaryByCusip: %s\n" % e)
extern crate PriceApi;

pub fn main() {
    let cusip = cusip_example; // String

    let mut context = PriceApi::Context::default();
    let result = client.getSecuritySummaryByCusip(cusip, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
cusip*
String
CUSIP
Required

Responses


User

createUser

Create user

This can only be done by the logged in user.


/user

Usage and SDK Samples

curl -X POST\
-H "api_key: [[apiKey]]"\
 -H "Content-Type: application/json"\
 "http://petstore.swagger.io/v2/user"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserApi;

import java.io.File;
import java.util.*;

public class UserApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: api_key
        ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
        api_key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //api_key.setApiKeyPrefix("Token");
        
        // Create an instance of the API class
        UserApi apiInstance = new UserApi();
        User user = ; // User | 
        
        try {
            apiInstance.createUser(user);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#createUser");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UserApi;

public class UserApiExample {
    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        User user = ; // User | 
        
        try {
            apiInstance.createUser(user);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#createUser");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];


// Create an instance of the API class
UserApi *apiInstance = [[UserApi alloc] init];
User *user = ; // 

// Create user
[apiInstance createUserWith:user
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EnigmatchMarketplaceApi = require('enigmatch_marketplace_api');
var defaultClient = EnigmatchMarketplaceApi.ApiClient.instance;

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix['api_key'] = "Token";

// Create an instance of the API class
var api = new EnigmatchMarketplaceApi.UserApi()
var user = ; // {User} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.createUser(user, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class createUserExample
    {
        public void main()
        {
            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");
            
            // Create an instance of the API class
            var apiInstance = new UserApi();
            var user = new User(); // User | 

            try {
                // Create user
                apiInstance.createUser(user);
            } catch (Exception e) {
                Debug.Print("Exception when calling UserApi.createUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api_key
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserApi();
$user = ; // User | 

try {
    $api_instance->createUser($user);
} catch (Exception $e) {
    echo 'Exception when calling UserApi->createUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UserApi;

# Configure API key authorization: api_key
$WWW::OPenAPIClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api_key'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UserApi->new();
my $user = WWW::OPenAPIClient::Object::User->new(); # User | 

eval { 
    $api_instance->createUser(user => $user);
};
if ($@) {
    warn "Exception when calling UserApi->createUser: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: api_key
openapi_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['api_key'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.UserApi()
user =  # User | 

try: 
    # Create user
    api_instance.create_user(user)
except ApiException as e:
    print("Exception when calling UserApi->createUser: %s\n" % e)
extern crate UserApi;

pub fn main() {
    let user = ; // User

    let mut context = UserApi::Context::default();
    let result = client.createUser(user, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
user *

Created user object

Responses


createUsersWithArrayInput

Creates list of users with given input array


/user/createWithArray

Usage and SDK Samples

curl -X POST\
-H "api_key: [[apiKey]]"\
 -H "Content-Type: application/json,application/xml"\
 "http://petstore.swagger.io/v2/user/createWithArray"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserApi;

import java.io.File;
import java.util.*;

public class UserApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: api_key
        ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
        api_key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //api_key.setApiKeyPrefix("Token");
        
        // Create an instance of the API class
        UserApi apiInstance = new UserApi();
        array[User] user = ; // array[User] | 
        
        try {
            apiInstance.createUsersWithArrayInput(user);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UserApi;

public class UserApiExample {
    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        array[User] user = ; // array[User] | 
        
        try {
            apiInstance.createUsersWithArrayInput(user);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];


// Create an instance of the API class
UserApi *apiInstance = [[UserApi alloc] init];
array[User] *user = ; // 

// Creates list of users with given input array
[apiInstance createUsersWithArrayInputWith:user
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EnigmatchMarketplaceApi = require('enigmatch_marketplace_api');
var defaultClient = EnigmatchMarketplaceApi.ApiClient.instance;

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix['api_key'] = "Token";

// Create an instance of the API class
var api = new EnigmatchMarketplaceApi.UserApi()
var user = ; // {array[User]} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.createUsersWithArrayInput(user, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class createUsersWithArrayInputExample
    {
        public void main()
        {
            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");
            
            // Create an instance of the API class
            var apiInstance = new UserApi();
            var user = new array[User](); // array[User] | 

            try {
                // Creates list of users with given input array
                apiInstance.createUsersWithArrayInput(user);
            } catch (Exception e) {
                Debug.Print("Exception when calling UserApi.createUsersWithArrayInput: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api_key
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserApi();
$user = ; // array[User] | 

try {
    $api_instance->createUsersWithArrayInput($user);
} catch (Exception $e) {
    echo 'Exception when calling UserApi->createUsersWithArrayInput: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UserApi;

# Configure API key authorization: api_key
$WWW::OPenAPIClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api_key'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UserApi->new();
my $user = [WWW::OPenAPIClient::Object::array[User]->new()]; # array[User] | 

eval { 
    $api_instance->createUsersWithArrayInput(user => $user);
};
if ($@) {
    warn "Exception when calling UserApi->createUsersWithArrayInput: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: api_key
openapi_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['api_key'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.UserApi()
user =  # array[User] | 

try: 
    # Creates list of users with given input array
    api_instance.create_users_with_array_input(user)
except ApiException as e:
    print("Exception when calling UserApi->createUsersWithArrayInput: %s\n" % e)
extern crate UserApi;

pub fn main() {
    let user = ; // array[User]

    let mut context = UserApi::Context::default();
    let result = client.createUsersWithArrayInput(user, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
user *

List of Users

Responses


createUsersWithListInput

Creates list of users with given input array


/user/createWithList

Usage and SDK Samples

curl -X POST\
-H "api_key: [[apiKey]]"\
 -H "Content-Type: application/json,application/xml"\
 "http://petstore.swagger.io/v2/user/createWithList"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserApi;

import java.io.File;
import java.util.*;

public class UserApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: api_key
        ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
        api_key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //api_key.setApiKeyPrefix("Token");
        
        // Create an instance of the API class
        UserApi apiInstance = new UserApi();
        array[User] user = ; // array[User] | 
        
        try {
            apiInstance.createUsersWithListInput(user);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#createUsersWithListInput");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UserApi;

public class UserApiExample {
    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        array[User] user = ; // array[User] | 
        
        try {
            apiInstance.createUsersWithListInput(user);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#createUsersWithListInput");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];


// Create an instance of the API class
UserApi *apiInstance = [[UserApi alloc] init];
array[User] *user = ; // 

// Creates list of users with given input array
[apiInstance createUsersWithListInputWith:user
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EnigmatchMarketplaceApi = require('enigmatch_marketplace_api');
var defaultClient = EnigmatchMarketplaceApi.ApiClient.instance;

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix['api_key'] = "Token";

// Create an instance of the API class
var api = new EnigmatchMarketplaceApi.UserApi()
var user = ; // {array[User]} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.createUsersWithListInput(user, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class createUsersWithListInputExample
    {
        public void main()
        {
            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");
            
            // Create an instance of the API class
            var apiInstance = new UserApi();
            var user = new array[User](); // array[User] | 

            try {
                // Creates list of users with given input array
                apiInstance.createUsersWithListInput(user);
            } catch (Exception e) {
                Debug.Print("Exception when calling UserApi.createUsersWithListInput: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api_key
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserApi();
$user = ; // array[User] | 

try {
    $api_instance->createUsersWithListInput($user);
} catch (Exception $e) {
    echo 'Exception when calling UserApi->createUsersWithListInput: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UserApi;

# Configure API key authorization: api_key
$WWW::OPenAPIClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api_key'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UserApi->new();
my $user = [WWW::OPenAPIClient::Object::array[User]->new()]; # array[User] | 

eval { 
    $api_instance->createUsersWithListInput(user => $user);
};
if ($@) {
    warn "Exception when calling UserApi->createUsersWithListInput: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: api_key
openapi_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['api_key'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.UserApi()
user =  # array[User] | 

try: 
    # Creates list of users with given input array
    api_instance.create_users_with_list_input(user)
except ApiException as e:
    print("Exception when calling UserApi->createUsersWithListInput: %s\n" % e)
extern crate UserApi;

pub fn main() {
    let user = ; // array[User]

    let mut context = UserApi::Context::default();
    let result = client.createUsersWithListInput(user, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
user *

List of Users

Responses


deleteUser

Delete user

This can only be done by the logged in user.


/user/{username}

Usage and SDK Samples

curl -X DELETE\
-H "api_key: [[apiKey]]"\
 "http://petstore.swagger.io/v2/user/{username}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserApi;

import java.io.File;
import java.util.*;

public class UserApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: api_key
        ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
        api_key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //api_key.setApiKeyPrefix("Token");
        
        // Create an instance of the API class
        UserApi apiInstance = new UserApi();
        String username = username_example; // String | The name that needs to be deleted
        
        try {
            apiInstance.deleteUser(username);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#deleteUser");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UserApi;

public class UserApiExample {
    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        String username = username_example; // String | The name that needs to be deleted
        
        try {
            apiInstance.deleteUser(username);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#deleteUser");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];


// Create an instance of the API class
UserApi *apiInstance = [[UserApi alloc] init];
String *username = username_example; // The name that needs to be deleted (default to null)

// Delete user
[apiInstance deleteUserWith:username
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EnigmatchMarketplaceApi = require('enigmatch_marketplace_api');
var defaultClient = EnigmatchMarketplaceApi.ApiClient.instance;

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix['api_key'] = "Token";

// Create an instance of the API class
var api = new EnigmatchMarketplaceApi.UserApi()
var username = username_example; // {String} The name that needs to be deleted

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteUser(username, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class deleteUserExample
    {
        public void main()
        {
            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");
            
            // Create an instance of the API class
            var apiInstance = new UserApi();
            var username = username_example;  // String | The name that needs to be deleted (default to null)

            try {
                // Delete user
                apiInstance.deleteUser(username);
            } catch (Exception e) {
                Debug.Print("Exception when calling UserApi.deleteUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api_key
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserApi();
$username = username_example; // String | The name that needs to be deleted

try {
    $api_instance->deleteUser($username);
} catch (Exception $e) {
    echo 'Exception when calling UserApi->deleteUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UserApi;

# Configure API key authorization: api_key
$WWW::OPenAPIClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api_key'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UserApi->new();
my $username = username_example; # String | The name that needs to be deleted

eval { 
    $api_instance->deleteUser(username => $username);
};
if ($@) {
    warn "Exception when calling UserApi->deleteUser: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: api_key
openapi_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['api_key'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.UserApi()
username = username_example # String | The name that needs to be deleted (default to null)

try: 
    # Delete user
    api_instance.delete_user(username)
except ApiException as e:
    print("Exception when calling UserApi->deleteUser: %s\n" % e)
extern crate UserApi;

pub fn main() {
    let username = username_example; // String

    let mut context = UserApi::Context::default();
    let result = client.deleteUser(username, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
username*
String
The name that needs to be deleted
Required

Responses


getUserByName

Get user by user name


/user/{username}

Usage and SDK Samples

curl -X GET\
 -H "Accept: application/xml,application/json"\
 "http://petstore.swagger.io/v2/user/{username}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserApi;

import java.io.File;
import java.util.*;

public class UserApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        UserApi apiInstance = new UserApi();
        String username = username_example; // String | The name that needs to be fetched. Use user1 for testing.
        
        try {
            User result = apiInstance.getUserByName(username);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#getUserByName");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UserApi;

public class UserApiExample {
    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        String username = username_example; // String | The name that needs to be fetched. Use user1 for testing.
        
        try {
            User result = apiInstance.getUserByName(username);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#getUserByName");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UserApi *apiInstance = [[UserApi alloc] init];
String *username = username_example; // The name that needs to be fetched. Use user1 for testing. (default to null)

// Get user by user name
[apiInstance getUserByNameWith:username
              completionHandler: ^(User output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EnigmatchMarketplaceApi = require('enigmatch_marketplace_api');

// Create an instance of the API class
var api = new EnigmatchMarketplaceApi.UserApi()
var username = username_example; // {String} The name that needs to be fetched. Use user1 for testing.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUserByName(username, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getUserByNameExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new UserApi();
            var username = username_example;  // String | The name that needs to be fetched. Use user1 for testing. (default to null)

            try {
                // Get user by user name
                User result = apiInstance.getUserByName(username);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UserApi.getUserByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserApi();
$username = username_example; // String | The name that needs to be fetched. Use user1 for testing.

try {
    $result = $api_instance->getUserByName($username);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserApi->getUserByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UserApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UserApi->new();
my $username = username_example; # String | The name that needs to be fetched. Use user1 for testing.

eval { 
    my $result = $api_instance->getUserByName(username => $username);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserApi->getUserByName: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.UserApi()
username = username_example # String | The name that needs to be fetched. Use user1 for testing. (default to null)

try: 
    # Get user by user name
    api_response = api_instance.get_user_by_name(username)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->getUserByName: %s\n" % e)
extern crate UserApi;

pub fn main() {
    let username = username_example; // String

    let mut context = UserApi::Context::default();
    let result = client.getUserByName(username, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
username*
String
The name that needs to be fetched. Use user1 for testing.
Required

Responses


loginUser

Logs user into the system


/user/login

Usage and SDK Samples

curl -X GET\
 -H "Accept: application/xml,application/json"\
 "http://petstore.swagger.io/v2/user/login?username=&password="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserApi;

import java.io.File;
import java.util.*;

public class UserApiExample {
    public static void main(String[] args) {
        
        // Create an instance of the API class
        UserApi apiInstance = new UserApi();
        String username = username_example; // String | The user name for login
        String password = password_example; // String | The password for login in clear text
        
        try {
            'String' result = apiInstance.loginUser(username, password);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#loginUser");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UserApi;

public class UserApiExample {
    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        String username = username_example; // String | The user name for login
        String password = password_example; // String | The password for login in clear text
        
        try {
            'String' result = apiInstance.loginUser(username, password);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#loginUser");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UserApi *apiInstance = [[UserApi alloc] init];
String *username = username_example; // The user name for login (default to null)
String *password = password_example; // The password for login in clear text (default to null)

// Logs user into the system
[apiInstance loginUserWith:username
    password:password
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EnigmatchMarketplaceApi = require('enigmatch_marketplace_api');

// Create an instance of the API class
var api = new EnigmatchMarketplaceApi.UserApi()
var username = username_example; // {String} The user name for login
var password = password_example; // {String} The password for login in clear text

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.loginUser(username, password, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class loginUserExample
    {
        public void main()
        {
            
            // Create an instance of the API class
            var apiInstance = new UserApi();
            var username = username_example;  // String | The user name for login (default to null)
            var password = password_example;  // String | The password for login in clear text (default to null)

            try {
                // Logs user into the system
                'String' result = apiInstance.loginUser(username, password);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UserApi.loginUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserApi();
$username = username_example; // String | The user name for login
$password = password_example; // String | The password for login in clear text

try {
    $result = $api_instance->loginUser($username, $password);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserApi->loginUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UserApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UserApi->new();
my $username = username_example; # String | The user name for login
my $password = password_example; # String | The password for login in clear text

eval { 
    my $result = $api_instance->loginUser(username => $username, password => $password);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserApi->loginUser: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.UserApi()
username = username_example # String | The user name for login (default to null)
password = password_example # String | The password for login in clear text (default to null)

try: 
    # Logs user into the system
    api_response = api_instance.login_user(username, password)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->loginUser: %s\n" % e)
extern crate UserApi;

pub fn main() {
    let username = username_example; // String
    let password = password_example; // String

    let mut context = UserApi::Context::default();
    let result = client.loginUser(username, password, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
username*
String
The user name for login
Required
password*
String
The password for login in clear text
Required

Responses

Name Type Format Description
SetMinusCookie String Cookie authentication key for use with the `api_key` apiKey authentication.
XMinusRateMinusLimit Integer int32 calls per hour allowed by the user
XMinusExpiresMinusAfter Date date-time date in UTC when toekn expires


logoutUser

Logs out current logged in user session


/user/logout

Usage and SDK Samples

curl -X GET\
-H "api_key: [[apiKey]]"\
 "http://petstore.swagger.io/v2/user/logout"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserApi;

import java.io.File;
import java.util.*;

public class UserApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: api_key
        ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
        api_key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //api_key.setApiKeyPrefix("Token");
        
        // Create an instance of the API class
        UserApi apiInstance = new UserApi();
        
        try {
            apiInstance.logoutUser();
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#logoutUser");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UserApi;

public class UserApiExample {
    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        
        try {
            apiInstance.logoutUser();
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#logoutUser");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];


// Create an instance of the API class
UserApi *apiInstance = [[UserApi alloc] init];

// Logs out current logged in user session
[apiInstance logoutUserWithCompletionHandler: 
              ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EnigmatchMarketplaceApi = require('enigmatch_marketplace_api');
var defaultClient = EnigmatchMarketplaceApi.ApiClient.instance;

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix['api_key'] = "Token";

// Create an instance of the API class
var api = new EnigmatchMarketplaceApi.UserApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.logoutUser(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class logoutUserExample
    {
        public void main()
        {
            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");
            
            // Create an instance of the API class
            var apiInstance = new UserApi();

            try {
                // Logs out current logged in user session
                apiInstance.logoutUser();
            } catch (Exception e) {
                Debug.Print("Exception when calling UserApi.logoutUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api_key
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserApi();

try {
    $api_instance->logoutUser();
} catch (Exception $e) {
    echo 'Exception when calling UserApi->logoutUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UserApi;

# Configure API key authorization: api_key
$WWW::OPenAPIClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api_key'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UserApi->new();

eval { 
    $api_instance->logoutUser();
};
if ($@) {
    warn "Exception when calling UserApi->logoutUser: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: api_key
openapi_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['api_key'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.UserApi()

try: 
    # Logs out current logged in user session
    api_instance.logout_user()
except ApiException as e:
    print("Exception when calling UserApi->logoutUser: %s\n" % e)
extern crate UserApi;

pub fn main() {

    let mut context = UserApi::Context::default();
    let result = client.logoutUser(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


updateUser

Updated user

This can only be done by the logged in user.


/user/{username}

Usage and SDK Samples

curl -X PUT\
-H "api_key: [[apiKey]]"\
 -H "Content-Type: application/json"\
 "http://petstore.swagger.io/v2/user/{username}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UserApi;

import java.io.File;
import java.util.*;

public class UserApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: api_key
        ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
        api_key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //api_key.setApiKeyPrefix("Token");
        
        // Create an instance of the API class
        UserApi apiInstance = new UserApi();
        String username = username_example; // String | name that need to be deleted
        User user = ; // User | 
        
        try {
            apiInstance.updateUser(username, user);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#updateUser");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UserApi;

public class UserApiExample {
    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        String username = username_example; // String | name that need to be deleted
        User user = ; // User | 
        
        try {
            apiInstance.updateUser(username, user);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#updateUser");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];


// Create an instance of the API class
UserApi *apiInstance = [[UserApi alloc] init];
String *username = username_example; // name that need to be deleted (default to null)
User *user = ; // 

// Updated user
[apiInstance updateUserWith:username
    user:user
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var EnigmatchMarketplaceApi = require('enigmatch_marketplace_api');
var defaultClient = EnigmatchMarketplaceApi.ApiClient.instance;

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix['api_key'] = "Token";

// Create an instance of the API class
var api = new EnigmatchMarketplaceApi.UserApi()
var username = username_example; // {String} name that need to be deleted
var user = ; // {User} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateUser(username, user, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class updateUserExample
    {
        public void main()
        {
            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");
            
            // Create an instance of the API class
            var apiInstance = new UserApi();
            var username = username_example;  // String | name that need to be deleted (default to null)
            var user = new User(); // User | 

            try {
                // Updated user
                apiInstance.updateUser(username, user);
            } catch (Exception e) {
                Debug.Print("Exception when calling UserApi.updateUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: api_key
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UserApi();
$username = username_example; // String | name that need to be deleted
$user = ; // User | 

try {
    $api_instance->updateUser($username, $user);
} catch (Exception $e) {
    echo 'Exception when calling UserApi->updateUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UserApi;

# Configure API key authorization: api_key
$WWW::OPenAPIClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api_key'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UserApi->new();
my $username = username_example; # String | name that need to be deleted
my $user = WWW::OPenAPIClient::Object::User->new(); # User | 

eval { 
    $api_instance->updateUser(username => $username, user => $user);
};
if ($@) {
    warn "Exception when calling UserApi->updateUser: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: api_key
openapi_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['api_key'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.UserApi()
username = username_example # String | name that need to be deleted (default to null)
user =  # User | 

try: 
    # Updated user
    api_instance.update_user(username, user)
except ApiException as e:
    print("Exception when calling UserApi->updateUser: %s\n" % e)
extern crate UserApi;

pub fn main() {
    let username = username_example; // String
    let user = ; // User

    let mut context = UserApi::Context::default();
    let result = client.updateUser(username, user, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
username*
String
name that need to be deleted
Required
Body parameters
Name Description
user *

Updated user object

Responses