API Reference

Muramasa : TeraCLOUD web engine v2.0

BaDataset

Overview of the BaDataset revision: 2021012501

getDatasetCapacity

Acquisition of contract capacity and usage capacity.

GET /v2/api/ba/dataset/(capacity)[;MatrixParameter] Access target: Node server BASIC certified version of he dataset API. # Return Value ## JSON Format ```json { "result": 0, "dataset": { "__ROOT__": { "quota": 3286723723264, "used": 54774784, } } } ``` - result If successful, 0. An error code will be sent internally with any other result. Treat as a system error number. - dataset Information connected to the dataset - \_\_ROOT\_\_ The dataset's root. Follow the parameters below. - quota User's contract capacity(Unit: Byte). - used Capacity used (Unit: Byte). ※It is possible to increase the output parameters due to future expansions.


/v2/api/ba/dataset/(capacity)

Usage and SDK Samples

curl -X GET -H "Authorization: Basic [[basicHash]]" -H "X-TeraCLOUD-API-KEY: [[apiKey]]" "https://api.teracloud.jp/v2/api/ba/dataset/(capacity)"
curl -X GET -H "Authorization: Basic [[basicHash]]" -H "X-TeraCLOUD-API-KEY: [[apiKey]]" "https://api.teracloud.jp/v2/api/ba/dataset/(capacity)"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BaDatasetApi;

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

public class BaDatasetApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: BASIC_AUTH
        HttpBasicAuth BASIC_AUTH = (HttpBasicAuth) defaultClient.getAuthentication("BASIC_AUTH");
        BASIC_AUTH.setUsername("YOUR USERNAME");
        BASIC_AUTH.setPassword("YOUR PASSWORD");

        // Configure API key authorization: HEADER_APIKEY
        ApiKeyAuth HEADER_APIKEY = (ApiKeyAuth) defaultClient.getAuthentication("HEADER_APIKEY");
        HEADER_APIKEY.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //HEADER_APIKEY.setApiKeyPrefix("Token");

        // Configure API key authorization: MATRIX_APIKEY
        ApiKeyAuth MATRIX_APIKEY = (ApiKeyAuth) defaultClient.getAuthentication("MATRIX_APIKEY");
        MATRIX_APIKEY.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //MATRIX_APIKEY.setApiKeyPrefix("Token");

        BaDatasetApi apiInstance = new BaDatasetApi();
        try {
            apiInstance.getDatasetCapacity();
        } catch (ApiException e) {
            System.err.println("Exception when calling BaDatasetApi#getDatasetCapacity");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BaDatasetApi;

public class BaDatasetApiExample {

    public static void main(String[] args) {
        BaDatasetApi apiInstance = new BaDatasetApi();
        try {
            apiInstance.getDatasetCapacity();
        } catch (ApiException e) {
            System.err.println("Exception when calling BaDatasetApi#getDatasetCapacity");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BASIC_AUTH)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

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

// Configure API key authorization: (authentication scheme: MATRIX_APIKEY)
[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"];


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

// 契約容量と利用容量の取得
[apiInstance getDatasetCapacityWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MuramasaTeraCloudWebEngineV20 = require('muramasa__tera_cloud_web_engine_v20');
var defaultClient = MuramasaTeraCloudWebEngineV20.ApiClient.instance;

// Configure HTTP basic authorization: BASIC_AUTH
var BASIC_AUTH = defaultClient.authentications['BASIC_AUTH'];
BASIC_AUTH.username = 'YOUR USERNAME'
BASIC_AUTH.password = 'YOUR PASSWORD'

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

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

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

namespace Example
{
    public class getDatasetCapacityExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: BASIC_AUTH
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: HEADER_APIKEY
            Configuration.Default.ApiKey.Add("X-TeraCLOUD-API-KEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-TeraCLOUD-API-KEY", "Bearer");
            // Configure API key authorization: MATRIX_APIKEY
            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");

            var apiInstance = new BaDatasetApi();

            try
            {
                // 契約容量と利用容量の取得
                apiInstance.getDatasetCapacity();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BaDatasetApi.getDatasetCapacity: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BASIC_AUTH
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: HEADER_APIKEY
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('X-TeraCLOUD-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-TeraCLOUD-API-KEY', 'Bearer');
// Configure API key authorization: MATRIX_APIKEY
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');

$api_instance = new OpenAPITools\Client\Api\BaDatasetApi();

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

# Configure HTTP basic authorization: BASIC_AUTH
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: HEADER_APIKEY
$WWW::OPenAPIClient::Configuration::api_key->{'X-TeraCLOUD-API-KEY'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'X-TeraCLOUD-API-KEY'} = "Bearer";
# Configure API key authorization: MATRIX_APIKEY
$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";

my $api_instance = WWW::OPenAPIClient::BaDatasetApi->new();

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

# Configure HTTP basic authorization: BASIC_AUTH
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: HEADER_APIKEY
openapi_client.configuration.api_key['X-TeraCLOUD-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['X-TeraCLOUD-API-KEY'] = 'Bearer'
# Configure API key authorization: MATRIX_APIKEY
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.BaDatasetApi()

try: 
    # 契約容量と利用容量の取得
    api_instance.get_dataset_capacity()
except ApiException as e:
    print("Exception when calling BaDatasetApi->getDatasetCapacity: %s\n" % e)
extern crate BaDatasetApi;

pub fn main() {

    let mut context = BaDatasetApi::Context::default();
    let result = client.getDatasetCapacity(&context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Responses


BaUser

Overview of BaUserAPI revision: 2020111801

getUser

Gathering user information ※Including data and time of last long in day.

GET /v2/api/ba/user[;MatrixParameter] Access Target: API server BASIC authenticated version of user's API. For traditional WebDAV clients that use BASIC authenticated, SSO log in is not performed, so the last log in date and time is not updated. If the last log in date and time is not updated, the account will be judged as unused and will be subject to account deletion after a certain duration. Please call the relevant endpoint regularly with curl and adjust your last log in date and time. # Return ## JSON Format ```json { "user" : "userid", "introduce_code" : "XA76A", "node" : "ise.teracloud.jp", "webdav_url" : "https://ise.teracloud.jp/dav/", "capacity" : 1101, "api_key" : { "name" : "Application Name", "note" : "Description of Application", "vendor" : "Name of Application's Developer", "activated_time" : 2015-02-15 09:05:42.0, "bonus" : { "since" : 2015-02-15 09:05:56.0, "until" : 2016-02-14 23:59:59.0, "increase_capacity" : 100 } }, "result" : 0, "revision" : 2020111801 } ``` - result If successful, 0. An error code will be sent internally with any other result. Treat as a system error number. - revision API revision number. Backwards compatibility is generally maintained and can be ignored. - user User ID - introduce_code The user’s introducer code (half-width alphanumeric characters). Not entirely unique for every user. This code can be given to friends, family, and acquaintances, and can be inputted in the user’s my page section. Bonuses will be rewarded to each party accordingly. - node The FQDN of the node server where the user is housed. Please execute the node API toward the server. - webdav_url User's Webdav url - capacity Contract capacity: The capacity amount that can be used (Unit: GB) - api_key Expanded parameters according to the api key. The expanded parameters are as listed below: - Activated_time The time this api key began use ( yyyy-MM-dd HH:mm:ss.s) - Vendor Application vendor’s name - Name Application’s name - Note Description of application. - Bonus Bonus related to api key. Bonus was rewarded to a special api key. Click here for developers who want to give Bonus when granting API KEY. * The link destination is currently being prepared. -Bonuses that are related to the API key are as follows: -Start Date If the api key contains benefits, the date and time it was applied (yyyy-MM-dd HH:mm:ss.s) could be a future date. - Capacity Contract Capacity: The amount of capacity that can be used (Unit: GB). -End Date If the api key has a benefit, the date and time for when it expires will follow (yyyy-MM-dd HH:mm:ss.s). Upon expiration the bonus will no longer be effective, and the result will return to normal. - Increase_capacity The increase capacity amount by API KEY benefits (Unit: GB). ※Output parameters may increase due to future expansion and benefits.


/v2/api/ba/user

Usage and SDK Samples

curl -X GET -H "Authorization: Basic [[basicHash]]" -H "X-TeraCLOUD-API-KEY: [[apiKey]]" "https://api.teracloud.jp/v2/api/ba/user"
curl -X GET -H "Authorization: Basic [[basicHash]]" -H "X-TeraCLOUD-API-KEY: [[apiKey]]" "https://api.teracloud.jp/v2/api/ba/user"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BaUserApi;

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

public class BaUserApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: BASIC_AUTH
        HttpBasicAuth BASIC_AUTH = (HttpBasicAuth) defaultClient.getAuthentication("BASIC_AUTH");
        BASIC_AUTH.setUsername("YOUR USERNAME");
        BASIC_AUTH.setPassword("YOUR PASSWORD");

        // Configure API key authorization: HEADER_APIKEY
        ApiKeyAuth HEADER_APIKEY = (ApiKeyAuth) defaultClient.getAuthentication("HEADER_APIKEY");
        HEADER_APIKEY.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //HEADER_APIKEY.setApiKeyPrefix("Token");

        // Configure API key authorization: MATRIX_APIKEY
        ApiKeyAuth MATRIX_APIKEY = (ApiKeyAuth) defaultClient.getAuthentication("MATRIX_APIKEY");
        MATRIX_APIKEY.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //MATRIX_APIKEY.setApiKeyPrefix("Token");

        BaUserApi apiInstance = new BaUserApi();
        try {
            apiInstance.getUser();
        } catch (ApiException e) {
            System.err.println("Exception when calling BaUserApi#getUser");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BaUserApi;

public class BaUserApiExample {

    public static void main(String[] args) {
        BaUserApi apiInstance = new BaUserApi();
        try {
            apiInstance.getUser();
        } catch (ApiException e) {
            System.err.println("Exception when calling BaUserApi#getUser");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BASIC_AUTH)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

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

// Configure API key authorization: (authentication scheme: MATRIX_APIKEY)
[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"];


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

// ユーザの諸情報を取得 ※最終ログイン日時の更新を含む
[apiInstance getUserWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MuramasaTeraCloudWebEngineV20 = require('muramasa__tera_cloud_web_engine_v20');
var defaultClient = MuramasaTeraCloudWebEngineV20.ApiClient.instance;

// Configure HTTP basic authorization: BASIC_AUTH
var BASIC_AUTH = defaultClient.authentications['BASIC_AUTH'];
BASIC_AUTH.username = 'YOUR USERNAME'
BASIC_AUTH.password = 'YOUR PASSWORD'

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

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

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

namespace Example
{
    public class getUserExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: BASIC_AUTH
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: HEADER_APIKEY
            Configuration.Default.ApiKey.Add("X-TeraCLOUD-API-KEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-TeraCLOUD-API-KEY", "Bearer");
            // Configure API key authorization: MATRIX_APIKEY
            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");

            var apiInstance = new BaUserApi();

            try
            {
                // ユーザの諸情報を取得 ※最終ログイン日時の更新を含む
                apiInstance.getUser();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BaUserApi.getUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BASIC_AUTH
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: HEADER_APIKEY
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('X-TeraCLOUD-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-TeraCLOUD-API-KEY', 'Bearer');
// Configure API key authorization: MATRIX_APIKEY
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');

$api_instance = new OpenAPITools\Client\Api\BaUserApi();

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

# Configure HTTP basic authorization: BASIC_AUTH
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: HEADER_APIKEY
$WWW::OPenAPIClient::Configuration::api_key->{'X-TeraCLOUD-API-KEY'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'X-TeraCLOUD-API-KEY'} = "Bearer";
# Configure API key authorization: MATRIX_APIKEY
$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";

my $api_instance = WWW::OPenAPIClient::BaUserApi->new();

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

# Configure HTTP basic authorization: BASIC_AUTH
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: HEADER_APIKEY
openapi_client.configuration.api_key['X-TeraCLOUD-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['X-TeraCLOUD-API-KEY'] = 'Bearer'
# Configure API key authorization: MATRIX_APIKEY
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.BaUserApi()

try: 
    # ユーザの諸情報を取得 ※最終ログイン日時の更新を含む
    api_instance.get_user()
except ApiException as e:
    print("Exception when calling BaUserApi->getUser: %s\n" % e)
extern crate BaUserApi;

pub fn main() {

    let mut context = BaUserApi::Context::default();
    let result = client.getUser(&context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Responses