Untitled API

Default

crudModelNameGet


/crud/{modelName}

Usage and SDK Samples

curl -X GET\
"//crud/{modelName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
         modelName = ; //  | 
        try {
            apiInstance.crudModelNameGet(modelName);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#crudModelNameGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
         modelName = ; //  | 
        try {
            apiInstance.crudModelNameGet(modelName);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#crudModelNameGet");
            e.printStackTrace();
        }
    }
}
 *modelName = ; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance crudModelNameGetWith:modelName
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var UntitledApi = require('untitled_api');

var api = new UntitledApi.DefaultApi()
var modelName = ; // {{}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.crudModelNameGet(modelName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class crudModelNameGetExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var modelName = new (); //  | 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$modelName = ; //  | 

try {
    $api_instance->crudModelNameGet($modelName);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->crudModelNameGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $modelName = ; #  | 

eval { 
    $api_instance->crudModelNameGet(modelName => $modelName);
};
if ($@) {
    warn "Exception when calling DefaultApi->crudModelNameGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
modelName =  #  | 

try: 
    api_instance.crud_model_name_get(modelName)
except ApiException as e:
    print("Exception when calling DefaultApi->crudModelNameGet: %s\n" % e)

Parameters

Path parameters
Name Description
modelName*
Required

Responses


crudModelNameModelIdGet


/crud/{modelName}/{modelId}

Usage and SDK Samples

curl -X GET\
"//crud/{modelName}/{modelId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
         modelName = ; //  | 
         modelId = ; //  | 
        try {
            apiInstance.crudModelNameModelIdGet(modelName, modelId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#crudModelNameModelIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
         modelName = ; //  | 
         modelId = ; //  | 
        try {
            apiInstance.crudModelNameModelIdGet(modelName, modelId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#crudModelNameModelIdGet");
            e.printStackTrace();
        }
    }
}
 *modelName = ; // 
 *modelId = ; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance crudModelNameModelIdGetWith:modelName
    modelId:modelId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var UntitledApi = require('untitled_api');

var api = new UntitledApi.DefaultApi()
var modelName = ; // {{}} 
var modelId = ; // {{}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.crudModelNameModelIdGet(modelName, modelId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class crudModelNameModelIdGetExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var modelName = new (); //  | 
            var modelId = new (); //  | 

            try
            {
                apiInstance.crudModelNameModelIdGet(modelName, modelId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.crudModelNameModelIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$modelName = ; //  | 
$modelId = ; //  | 

try {
    $api_instance->crudModelNameModelIdGet($modelName, $modelId);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->crudModelNameModelIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $modelName = ; #  | 
my $modelId = ; #  | 

eval { 
    $api_instance->crudModelNameModelIdGet(modelName => $modelName, modelId => $modelId);
};
if ($@) {
    warn "Exception when calling DefaultApi->crudModelNameModelIdGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
modelName =  #  | 
modelId =  #  | 

try: 
    api_instance.crud_model_name_model_id_get(modelName, modelId)
except ApiException as e:
    print("Exception when calling DefaultApi->crudModelNameModelIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
modelName*
Required
modelId*
Required

Responses


marketGet


/market

Usage and SDK Samples

curl -X GET\
"//market"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            apiInstance.marketGet();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#marketGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            apiInstance.marketGet();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#marketGet");
            e.printStackTrace();
        }
    }
}

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance marketGetWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var UntitledApi = require('untitled_api');

var api = new UntitledApi.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.marketGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class marketGetExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();

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

$api_instance = new Swagger\Client\ApiDefaultApi();

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()

try: 
    api_instance.market_get()
except ApiException as e:
    print("Exception when calling DefaultApi->marketGet: %s\n" % e)

Parameters

Responses


marketPlayerIdGet

Get Market for Specified Player

Get a list of the products and the prices in a market


/market/{playerId}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//market/{playerId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
         playerId = ; //  | 
        try {
            MarketResult result = apiInstance.marketPlayerIdGet(playerId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#marketPlayerIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
         playerId = ; //  | 
        try {
            MarketResult result = apiInstance.marketPlayerIdGet(playerId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#marketPlayerIdGet");
            e.printStackTrace();
        }
    }
}
 *playerId = ; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Get Market for Specified Player
[apiInstance marketPlayerIdGetWith:playerId
              completionHandler: ^(MarketResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var UntitledApi = require('untitled_api');

var api = new UntitledApi.DefaultApi()
var playerId = ; // {{}} 

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

namespace Example
{
    public class marketPlayerIdGetExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var playerId = new (); //  | 

            try
            {
                // Get Market for Specified Player
                MarketResult result = apiInstance.marketPlayerIdGet(playerId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.marketPlayerIdGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$playerId = ; //  | 

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $playerId = ; #  | 

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
playerId =  #  | 

try: 
    # Get Market for Specified Player
    api_response = api_instance.market_player_id_get(playerId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->marketPlayerIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
playerId*
Required

Responses

Status: 200 - Market Snapshot

Status: 400 - Invalid Query


playersGet

Get all Players

Get a list of all the players on the server


/players

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//players"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            apiInstance.playersGet();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#playersGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            apiInstance.playersGet();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#playersGet");
            e.printStackTrace();
        }
    }
}

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Get all Players
[apiInstance playersGetWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var UntitledApi = require('untitled_api');

var api = new UntitledApi.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.playersGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class playersGetExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();

            try
            {
                // Get all Players
                apiInstance.playersGet();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.playersGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()

try: 
    # Get all Players
    api_instance.players_get()
except ApiException as e:
    print("Exception when calling DefaultApi->playersGet: %s\n" % e)

Parameters

Responses

Status: 200 - A list of Users


playersPlayerIdGet


/players/{playerId}

Usage and SDK Samples

curl -X GET\
"//players/{playerId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
         playerId = ; //  | 
        try {
            apiInstance.playersPlayerIdGet(playerId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#playersPlayerIdGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
         playerId = ; //  | 
        try {
            apiInstance.playersPlayerIdGet(playerId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#playersPlayerIdGet");
            e.printStackTrace();
        }
    }
}
 *playerId = ; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance playersPlayerIdGetWith:playerId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var UntitledApi = require('untitled_api');

var api = new UntitledApi.DefaultApi()
var playerId = ; // {{}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.playersPlayerIdGet(playerId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class playersPlayerIdGetExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var playerId = new (); //  | 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$playerId = ; //  | 

try {
    $api_instance->playersPlayerIdGet($playerId);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->playersPlayerIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $playerId = ; #  | 

eval { 
    $api_instance->playersPlayerIdGet(playerId => $playerId);
};
if ($@) {
    warn "Exception when calling DefaultApi->playersPlayerIdGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
playerId =  #  | 

try: 
    api_instance.players_player_id_get(playerId)
except ApiException as e:
    print("Exception when calling DefaultApi->playersPlayerIdGet: %s\n" % e)

Parameters

Path parameters
Name Description
playerId*
Required

Responses


playersPlayerIdRenamePost


/players/{playerId}/rename

Usage and SDK Samples

curl -X POST\
"//players/{playerId}/rename"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
         playerId = ; //  | 
        try {
            apiInstance.playersPlayerIdRenamePost(playerId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#playersPlayerIdRenamePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
         playerId = ; //  | 
        try {
            apiInstance.playersPlayerIdRenamePost(playerId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#playersPlayerIdRenamePost");
            e.printStackTrace();
        }
    }
}
 *playerId = ; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance playersPlayerIdRenamePostWith:playerId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var UntitledApi = require('untitled_api');

var api = new UntitledApi.DefaultApi()
var playerId = ; // {{}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.playersPlayerIdRenamePost(playerId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class playersPlayerIdRenamePostExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var playerId = new (); //  | 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$playerId = ; //  | 

try {
    $api_instance->playersPlayerIdRenamePost($playerId);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->playersPlayerIdRenamePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $playerId = ; #  | 

eval { 
    $api_instance->playersPlayerIdRenamePost(playerId => $playerId);
};
if ($@) {
    warn "Exception when calling DefaultApi->playersPlayerIdRenamePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
playerId =  #  | 

try: 
    api_instance.players_player_id_rename_post(playerId)
except ApiException as e:
    print("Exception when calling DefaultApi->playersPlayerIdRenamePost: %s\n" % e)

Parameters

Path parameters
Name Description
playerId*
Required

Responses


playersPlayerIdTradePost


/players/{playerId}/trade

Usage and SDK Samples

curl -X POST\
"//players/{playerId}/trade"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
         playerId = ; //  | 
        try {
            apiInstance.playersPlayerIdTradePost(playerId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#playersPlayerIdTradePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
         playerId = ; //  | 
        try {
            apiInstance.playersPlayerIdTradePost(playerId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#playersPlayerIdTradePost");
            e.printStackTrace();
        }
    }
}
 *playerId = ; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance playersPlayerIdTradePostWith:playerId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var UntitledApi = require('untitled_api');

var api = new UntitledApi.DefaultApi()
var playerId = ; // {{}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.playersPlayerIdTradePost(playerId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class playersPlayerIdTradePostExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var playerId = new (); //  | 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$playerId = ; //  | 

try {
    $api_instance->playersPlayerIdTradePost($playerId);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->playersPlayerIdTradePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $playerId = ; #  | 

eval { 
    $api_instance->playersPlayerIdTradePost(playerId => $playerId);
};
if ($@) {
    warn "Exception when calling DefaultApi->playersPlayerIdTradePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
playerId =  #  | 

try: 
    api_instance.players_player_id_trade_post(playerId)
except ApiException as e:
    print("Exception when calling DefaultApi->playersPlayerIdTradePost: %s\n" % e)

Parameters

Path parameters
Name Description
playerId*
Required

Responses


playersPlayerIdTravelPost


/players/{playerId}/travel

Usage and SDK Samples

curl -X POST\
"//players/{playerId}/travel"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
         playerId = ; //  | 
        try {
            apiInstance.playersPlayerIdTravelPost(playerId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#playersPlayerIdTravelPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
         playerId = ; //  | 
        try {
            apiInstance.playersPlayerIdTravelPost(playerId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#playersPlayerIdTravelPost");
            e.printStackTrace();
        }
    }
}
 *playerId = ; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance playersPlayerIdTravelPostWith:playerId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var UntitledApi = require('untitled_api');

var api = new UntitledApi.DefaultApi()
var playerId = ; // {{}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.playersPlayerIdTravelPost(playerId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class playersPlayerIdTravelPostExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var playerId = new (); //  | 

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

$api_instance = new Swagger\Client\ApiDefaultApi();
$playerId = ; //  | 

try {
    $api_instance->playersPlayerIdTravelPost($playerId);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->playersPlayerIdTravelPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $playerId = ; #  | 

eval { 
    $api_instance->playersPlayerIdTravelPost(playerId => $playerId);
};
if ($@) {
    warn "Exception when calling DefaultApi->playersPlayerIdTravelPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
playerId =  #  | 

try: 
    api_instance.players_player_id_travel_post(playerId)
except ApiException as e:
    print("Exception when calling DefaultApi->playersPlayerIdTravelPost: %s\n" % e)

Parameters

Path parameters
Name Description
playerId*
Required

Responses


playersPost

Create a new Player

Create a new Player with a unique ID


/players

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"//players"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            Player result = apiInstance.playersPost();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#playersPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            Player result = apiInstance.playersPost();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#playersPost");
            e.printStackTrace();
        }
    }
}

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Create a new Player
[apiInstance playersPostWithCompletionHandler: 
              ^(Player output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var UntitledApi = require('untitled_api');

var api = new UntitledApi.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.playersPost(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class playersPostExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();

            try
            {
                // Create a new Player
                Player result = apiInstance.playersPost();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.playersPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();

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

# create an instance of the API class
api_instance = swagger_client.DefaultApi()

try: 
    # Create a new Player
    api_response = api_instance.players_post()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->playersPost: %s\n" % e)

Parameters

Responses

Status: 200 - A Player with unique ID

Status: 400 - An error occured creating the user


wsGet


/ws

Usage and SDK Samples

curl -X GET\
"//ws"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

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

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
         connection = ; //  | 
         upgrade = ; //  | 
        try {
            apiInstance.wsGet(connection, upgrade);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#wsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
         connection = ; //  | 
         upgrade = ; //  | 
        try {
            apiInstance.wsGet(connection, upgrade);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#wsGet");
            e.printStackTrace();
        }
    }
}
 *connection = ; //  (optional)
 *upgrade = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

[apiInstance wsGetWith:connection
    upgrade:upgrade
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var UntitledApi = require('untitled_api');

var api = new UntitledApi.DefaultApi()
var opts = { 
  'connection': , // {{}} 
  'upgrade':  // {{}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.wsGet(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class wsGetExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var connection = new (); //  |  (optional) 
            var upgrade = new (); //  |  (optional) 

            try
            {
                apiInstance.wsGet(connection, upgrade);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.wsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$connection = ; //  | 
$upgrade = ; //  | 

try {
    $api_instance->wsGet($connection, $upgrade);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->wsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $connection = ; #  | 
my $upgrade = ; #  | 

eval { 
    $api_instance->wsGet(connection => $connection, upgrade => $upgrade);
};
if ($@) {
    warn "Exception when calling DefaultApi->wsGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
connection =  #  |  (optional)
upgrade =  #  |  (optional)

try: 
    api_instance.ws_get(connection=connection, upgrade=upgrade)
except ApiException as e:
    print("Exception when calling DefaultApi->wsGet: %s\n" % e)

Parameters

Header parameters
Name Description
Connection
Upgrade

Responses