PeyangBanServer

Default

banPut

プレイヤーをBANします。


/ban

Usage and SDK Samples

curl -X PUT "https://http://localhost:810/ban"
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();
        String uuid = uuid_example; // String | BANをするプレイヤーのUUIDです。-をつけても動作します。
        String reason = reason_example; // String | BANする理由です。
        String expire = expire_example; // String | BANの期限切れ時間です。UNIXミリ秒で指定します。
"_PERM"を使用すると、無期限になります。
        String bannedBy = bannedBy_example; // String | BANをしたひと
        Boolean staff = true; // Boolean | StaffによるBANかどうかです。
        try {
            processed result = apiInstance.banPut(uuid, reason, expire, bannedBy, staff);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#banPut");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String uuid = uuid_example; // String | BANをするプレイヤーのUUIDです。-をつけても動作します。
        String reason = reason_example; // String | BANする理由です。
        String expire = expire_example; // String | BANの期限切れ時間です。UNIXミリ秒で指定します。
"_PERM"を使用すると、無期限になります。
        String bannedBy = bannedBy_example; // String | BANをしたひと
        Boolean staff = true; // Boolean | StaffによるBANかどうかです。
        try {
            processed result = apiInstance.banPut(uuid, reason, expire, bannedBy, staff);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#banPut");
            e.printStackTrace();
        }
    }
}
String *uuid = uuid_example; // BANをするプレイヤーのUUIDです。-をつけても動作します。
String *reason = reason_example; // BANする理由です。
String *expire = expire_example; // BANの期限切れ時間です。UNIXミリ秒で指定します。
"_PERM"を使用すると、無期限になります。
String *bannedBy = bannedBy_example; // BANをしたひと
Boolean *staff = true; // StaffによるBANかどうかです。 (optional)

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

// プレイヤーをBANします。
[apiInstance banPutWith:uuid
    reason:reason
    expire:expire
    bannedBy:bannedBy
    staff:staff
              completionHandler: ^(processed output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PeyangBanServer = require('peyang_ban_server');

var api = new PeyangBanServer.DefaultApi()

var uuid = uuid_example; // {String} BANをするプレイヤーのUUIDです。-をつけても動作します。

var reason = reason_example; // {String} BANする理由です。

var expire = expire_example; // {String} BANの期限切れ時間です。UNIXミリ秒で指定します。
"_PERM"を使用すると、無期限になります。

var bannedBy = bannedBy_example; // {String} BANをしたひと

var opts = {
  'staff': true // {Boolean} StaffによるBANかどうかです。
};

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

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

            var apiInstance = new DefaultApi();
            var uuid = uuid_example;  // String | BANをするプレイヤーのUUIDです。-をつけても動作します。
            var reason = reason_example;  // String | BANする理由です。
            var expire = expire_example;  // String | BANの期限切れ時間です。UNIXミリ秒で指定します。
"_PERM"を使用すると、無期限になります。
            var bannedBy = bannedBy_example;  // String | BANをしたひと
            var staff = true;  // Boolean | StaffによるBANかどうかです。 (optional)

            try
            {
                // プレイヤーをBANします。
                processed result = apiInstance.banPut(uuid, reason, expire, bannedBy, staff);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.banPut: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$uuid = uuid_example; // String | BANをするプレイヤーのUUIDです。-をつけても動作します。
$reason = reason_example; // String | BANする理由です。
$expire = expire_example; // String | BANの期限切れ時間です。UNIXミリ秒で指定します。
"_PERM"を使用すると、無期限になります。
$bannedBy = bannedBy_example; // String | BANをしたひと
$staff = true; // Boolean | StaffによるBANかどうかです。

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $uuid = uuid_example; # String | BANをするプレイヤーのUUIDです。-をつけても動作します。
my $reason = reason_example; # String | BANする理由です。
my $expire = expire_example; # String | BANの期限切れ時間です。UNIXミリ秒で指定します。
"_PERM"を使用すると、無期限になります。
my $bannedBy = bannedBy_example; # String | BANをしたひと
my $staff = true; # Boolean | StaffによるBANかどうかです。

eval {
    my $result = $api_instance->banPut(uuid => $uuid, reason => $reason, expire => $expire, bannedBy => $bannedBy, staff => $staff);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->banPut: $@\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()
uuid = uuid_example # String | BANをするプレイヤーのUUIDです。-をつけても動作します。
reason = reason_example # String | BANする理由です。
expire = expire_example # String | BANの期限切れ時間です。UNIXミリ秒で指定します。
"_PERM"を使用すると、無期限になります。
bannedBy = bannedBy_example # String | BANをしたひと
staff = true # Boolean | StaffによるBANかどうかです。 (optional)

try:
    # プレイヤーをBANします。
    api_response = api_instance.ban_put(uuid, reason, expire, bannedBy, staff=staff)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->banPut: %s\n" % e)

Parameters

Form parameters
Name Description
uuid*
String
BANをするプレイヤーのUUIDです。-をつけても動作します。
Required
reason*
String
BANする理由です。
Required
expire*
String
BANの期限切れ時間です。UNIXミリ秒で指定します。 "_PERM"を使用すると、無期限になります。
Required
staff
Boolean
StaffによるBANかどうかです。
bannedBy*
String
BANをしたひと
Required

Responses

Status: 202 - BANが正常に処理された場合です。

Status: 400 - フィールドが不足しています。

Status: 403 - トークンが間違っています。

Status: 405 - メソッドが許可されいません。


bansGet

プレイヤーのBAN一覧を取得します。


/bans

Usage and SDK Samples

curl -X GET "https://http://localhost:810/bans"
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();
        String uuid = uuid_example; // String | プレイヤーのUUIDです。-をつけても動作します。
        try {
            bans result = apiInstance.bansGet(uuid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#bansGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String uuid = uuid_example; // String | プレイヤーのUUIDです。-をつけても動作します。
        try {
            bans result = apiInstance.bansGet(uuid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#bansGet");
            e.printStackTrace();
        }
    }
}
String *uuid = uuid_example; // プレイヤーのUUIDです。-をつけても動作します。

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

// プレイヤーのBAN一覧を取得します。
[apiInstance bansGetWith:uuid
              completionHandler: ^(bans output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PeyangBanServer = require('peyang_ban_server');

var api = new PeyangBanServer.DefaultApi()

var uuid = uuid_example; // {String} プレイヤーのUUIDです。-をつけても動作します。


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

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

            var apiInstance = new DefaultApi();
            var uuid = uuid_example;  // String | プレイヤーのUUIDです。-をつけても動作します。

            try
            {
                // プレイヤーのBAN一覧を取得します。
                bans result = apiInstance.bansGet(uuid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.bansGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$uuid = uuid_example; // String | プレイヤーのUUIDです。-をつけても動作します。

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $uuid = uuid_example; # String | プレイヤーのUUIDです。-をつけても動作します。

eval {
    my $result = $api_instance->bansGet(uuid => $uuid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->bansGet: $@\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()
uuid = uuid_example # String | プレイヤーのUUIDです。-をつけても動作します。

try:
    # プレイヤーのBAN一覧を取得します。
    api_response = api_instance.bans_get(uuid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->bansGet: %s\n" % e)

Parameters

Form parameters
Name Description
uuid*
String
プレイヤーのUUIDです。-をつけても動作します。
Required

Responses

Status: 200 - 成功レスポンスです。

Status: 400 - フィールドが不足しています。

Status: 403 - トークンが間違っています。

Status: 405 - メソッドが許可されていません。


getbanGet

プレイヤーのBAN情報を取得します。


/getban

Usage and SDK Samples

curl -X GET "https://http://localhost:810/getban"
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();
        String uuid = uuid_example; // String | プレイヤーのUUIDです。-をつけても動作します。
        try {
            getBan result = apiInstance.getbanGet(uuid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getbanGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String uuid = uuid_example; // String | プレイヤーのUUIDです。-をつけても動作します。
        try {
            getBan result = apiInstance.getbanGet(uuid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getbanGet");
            e.printStackTrace();
        }
    }
}
String *uuid = uuid_example; // プレイヤーのUUIDです。-をつけても動作します。

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

// プレイヤーのBAN情報を取得します。
[apiInstance getbanGetWith:uuid
              completionHandler: ^(getBan output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PeyangBanServer = require('peyang_ban_server');

var api = new PeyangBanServer.DefaultApi()

var uuid = uuid_example; // {String} プレイヤーのUUIDです。-をつけても動作します。


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

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

            var apiInstance = new DefaultApi();
            var uuid = uuid_example;  // String | プレイヤーのUUIDです。-をつけても動作します。

            try
            {
                // プレイヤーのBAN情報を取得します。
                getBan result = apiInstance.getbanGet(uuid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getbanGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$uuid = uuid_example; // String | プレイヤーのUUIDです。-をつけても動作します。

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $uuid = uuid_example; # String | プレイヤーのUUIDです。-をつけても動作します。

eval {
    my $result = $api_instance->getbanGet(uuid => $uuid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->getbanGet: $@\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()
uuid = uuid_example # String | プレイヤーのUUIDです。-をつけても動作します。

try:
    # プレイヤーのBAN情報を取得します。
    api_response = api_instance.getban_get(uuid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getbanGet: %s\n" % e)

Parameters

Form parameters
Name Description
uuid*
String
プレイヤーのUUIDです。-をつけても動作します。
Required

Responses

Status: 200 - 成功レスポンスです。

Status: 403 - トークンが間違っています。


lookupGet

BAN情報を絞り込みます


/lookup

Usage and SDK Samples

curl -X GET "https://http://localhost:810/lookup"
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();
        String uuid = uuid_example; // String | プレイヤーのUUIDです。-をつけても動作します。
        BigDecimal before = 8.14; // BigDecimal | 指定した時間以前にBANされたプレイヤーを絞ります。
        BigDecimal after = 8.14; // BigDecimal | 指定した時間以降にBANされたプレイヤーを絞ります。
        BigDecimal banid = 8.14; // BigDecimal | BANIDで絞ります
        try {
            bans result = apiInstance.lookupGet(uuid, before, after, banid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#lookupGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String uuid = uuid_example; // String | プレイヤーのUUIDです。-をつけても動作します。
        BigDecimal before = 8.14; // BigDecimal | 指定した時間以前にBANされたプレイヤーを絞ります。
        BigDecimal after = 8.14; // BigDecimal | 指定した時間以降にBANされたプレイヤーを絞ります。
        BigDecimal banid = 8.14; // BigDecimal | BANIDで絞ります
        try {
            bans result = apiInstance.lookupGet(uuid, before, after, banid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#lookupGet");
            e.printStackTrace();
        }
    }
}
String *uuid = uuid_example; // プレイヤーのUUIDです。-をつけても動作します。 (optional)
BigDecimal *before = 8.14; // 指定した時間以前にBANされたプレイヤーを絞ります。 (optional)
BigDecimal *after = 8.14; // 指定した時間以降にBANされたプレイヤーを絞ります。 (optional)
BigDecimal *banid = 8.14; // BANIDで絞ります (optional)

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

// BAN情報を絞り込みます
[apiInstance lookupGetWith:uuid
    before:before
    after:after
    banid:banid
              completionHandler: ^(bans output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PeyangBanServer = require('peyang_ban_server');

var api = new PeyangBanServer.DefaultApi()

var opts = {
  'uuid': uuid_example, // {String} プレイヤーのUUIDです。-をつけても動作します。
  'before': 8.14, // {BigDecimal} 指定した時間以前にBANされたプレイヤーを絞ります。
  'after': 8.14, // {BigDecimal} 指定した時間以降にBANされたプレイヤーを絞ります。
  'banid': 8.14 // {BigDecimal} BANIDで絞ります
};

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

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

            var apiInstance = new DefaultApi();
            var uuid = uuid_example;  // String | プレイヤーのUUIDです。-をつけても動作します。 (optional)
            var before = 8.14;  // BigDecimal | 指定した時間以前にBANされたプレイヤーを絞ります。 (optional)
            var after = 8.14;  // BigDecimal | 指定した時間以降にBANされたプレイヤーを絞ります。 (optional)
            var banid = 8.14;  // BigDecimal | BANIDで絞ります (optional)

            try
            {
                // BAN情報を絞り込みます
                bans result = apiInstance.lookupGet(uuid, before, after, banid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.lookupGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$uuid = uuid_example; // String | プレイヤーのUUIDです。-をつけても動作します。
$before = 8.14; // BigDecimal | 指定した時間以前にBANされたプレイヤーを絞ります。
$after = 8.14; // BigDecimal | 指定した時間以降にBANされたプレイヤーを絞ります。
$banid = 8.14; // BigDecimal | BANIDで絞ります

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $uuid = uuid_example; # String | プレイヤーのUUIDです。-をつけても動作します。
my $before = 8.14; # BigDecimal | 指定した時間以前にBANされたプレイヤーを絞ります。
my $after = 8.14; # BigDecimal | 指定した時間以降にBANされたプレイヤーを絞ります。
my $banid = 8.14; # BigDecimal | BANIDで絞ります

eval {
    my $result = $api_instance->lookupGet(uuid => $uuid, before => $before, after => $after, banid => $banid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->lookupGet: $@\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()
uuid = uuid_example # String | プレイヤーのUUIDです。-をつけても動作します。 (optional)
before = 8.14 # BigDecimal | 指定した時間以前にBANされたプレイヤーを絞ります。 (optional)
after = 8.14 # BigDecimal | 指定した時間以降にBANされたプレイヤーを絞ります。 (optional)
banid = 8.14 # BigDecimal | BANIDで絞ります (optional)

try:
    # BAN情報を絞り込みます
    api_response = api_instance.lookup_get(uuid=uuid, before=before, after=after, banid=banid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->lookupGet: %s\n" % e)

Parameters

Form parameters
Name Description
uuid
String
プレイヤーのUUIDです。-をつけても動作します。
before
BigDecimal
指定した時間以前にBANされたプレイヤーを絞ります。
after
BigDecimal
指定した時間以降にBANされたプレイヤーを絞ります。
banid
BigDecimal
BANIDで絞ります

Responses

Status: 200 - 成功レスポンスです。

Status: 403 - トークンが間違っています。

Status: 405 - メソッドが許可されていません。


teapotGet

ティーポットリクエストです。接続テスト用


/teapot

Usage and SDK Samples

curl -X GET "https://http://localhost:810/teapot"
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.teapotGet();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#teapotGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

// ティーポットリクエストです。接続テスト用
[apiInstance teapotGetWithCompletionHandler:
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PeyangBanServer = require('peyang_ban_server');

var api = new PeyangBanServer.DefaultApi()

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

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

            var apiInstance = new DefaultApi();

            try
            {
                // ティーポットリクエストです。接続テスト用
                apiInstance.teapotGet();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.teapotGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();

try {
    $api_instance->teapotGet();
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->teapotGet: ', $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->teapotGet();
};
if ($@) {
    warn "Exception when calling DefaultApi->teapotGet: $@\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.teapot_get()
except ApiException as e:
    print("Exception when calling DefaultApi->teapotGet: %s\n" % e)

Parameters

Responses

Status: 403 - トークンが間違っています。

Status: 418 - ティーポットでコーヒーを淹れようとしました。


unbanDelete

プレイヤーのBANを解除します。(/pardonでも同じ結果になります。)


/unban

Usage and SDK Samples

curl -X DELETE "https://http://localhost:810/unban"
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();
        String uuid = uuid_example; // String | BANを解除するプレイヤーのUUIDです。-をつけても動作します。
        String bannedBy = bannedBy_example; // String | UnBANをしたひと
        try {
            processed result = apiInstance.unbanDelete(uuid, bannedBy);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#unbanDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String uuid = uuid_example; // String | BANを解除するプレイヤーのUUIDです。-をつけても動作します。
        String bannedBy = bannedBy_example; // String | UnBANをしたひと
        try {
            processed result = apiInstance.unbanDelete(uuid, bannedBy);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#unbanDelete");
            e.printStackTrace();
        }
    }
}
String *uuid = uuid_example; // BANを解除するプレイヤーのUUIDです。-をつけても動作します。
String *bannedBy = bannedBy_example; // UnBANをしたひと

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

// プレイヤーのBANを解除します。(/pardonでも同じ結果になります。)
[apiInstance unbanDeleteWith:uuid
    bannedBy:bannedBy
              completionHandler: ^(processed output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PeyangBanServer = require('peyang_ban_server');

var api = new PeyangBanServer.DefaultApi()

var uuid = uuid_example; // {String} BANを解除するプレイヤーのUUIDです。-をつけても動作します。

var bannedBy = bannedBy_example; // {String} UnBANをしたひと


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

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

            var apiInstance = new DefaultApi();
            var uuid = uuid_example;  // String | BANを解除するプレイヤーのUUIDです。-をつけても動作します。
            var bannedBy = bannedBy_example;  // String | UnBANをしたひと

            try
            {
                // プレイヤーのBANを解除します。(/pardonでも同じ結果になります。)
                processed result = apiInstance.unbanDelete(uuid, bannedBy);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.unbanDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$uuid = uuid_example; // String | BANを解除するプレイヤーのUUIDです。-をつけても動作します。
$bannedBy = bannedBy_example; // String | UnBANをしたひと

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

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $uuid = uuid_example; # String | BANを解除するプレイヤーのUUIDです。-をつけても動作します。
my $bannedBy = bannedBy_example; # String | UnBANをしたひと

eval {
    my $result = $api_instance->unbanDelete(uuid => $uuid, bannedBy => $bannedBy);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->unbanDelete: $@\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()
uuid = uuid_example # String | BANを解除するプレイヤーのUUIDです。-をつけても動作します。
bannedBy = bannedBy_example # String | UnBANをしたひと

try:
    # プレイヤーのBANを解除します。(/pardonでも同じ結果になります。)
    api_response = api_instance.unban_delete(uuid, bannedBy)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->unbanDelete: %s\n" % e)

Parameters

Form parameters
Name Description
uuid*
String
BANを解除するプレイヤーのUUIDです。-をつけても動作します。
Required
bannedBy*
String
UnBANをしたひと
Required

Responses

Status: 202 - BAN解除が正常に処理された場合です。

Status: 403 - トークンが間違っています。

Status: 404 - プレイヤーがBANされていません。

Status: 405 - 不正リクエストの場合です。


weeklyGet

一週間にBANした数を取得します。


/weekly

Usage and SDK Samples

curl -X GET "https://http://localhost:810/weekly"
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.weeklyGet();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#weeklyGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

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

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

// 一週間にBANした数を取得します。
[apiInstance weeklyGetWithCompletionHandler:
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var PeyangBanServer = require('peyang_ban_server');

var api = new PeyangBanServer.DefaultApi()

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

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

            var apiInstance = new DefaultApi();

            try
            {
                // 一週間にBANした数を取得します。
                apiInstance.weeklyGet();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.weeklyGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();

try {
    $api_instance->weeklyGet();
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->weeklyGet: ', $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->weeklyGet();
};
if ($@) {
    warn "Exception when calling DefaultApi->weeklyGet: $@\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:
    # 一週間にBANした数を取得します。
    api_instance.weekly_get()
except ApiException as e:
    print("Exception when calling DefaultApi->weeklyGet: %s\n" % e)

Parameters

Responses

Status: 200 - 成功レスポンスです。

Status: 403 - トークンが間違っています。