hackathon_web_api

0.9.0 • Public • Published

hackathon_web_api

HackathonWebApi - JavaScript client for hackathon_web_api Hackathonの Web API 仕様書 This SDK is automatically generated by the Swagger Codegen project:

  • API version: 0.9
  • Package version: 0.9
  • Build date: 2016-09-22T07:09:45.989Z
  • Build package: class io.swagger.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install hackathon_web_api --save

git

If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/hackathon_web_api then install it via:

    npm install YOUR_USERNAME/hackathon_web_api --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Getting Started

Please follow the installation instruction and execute the following JS code:

var HackathonWebApi = require('hackathon_web_api');

var api = new HackathonWebApi.DefaultApi()

var objectId = "objectId_example"; // {String} オブジェクトID

var objectValue = new HackathonWebApi.UserObjectValue(); // {UserObjectValue} ObjectRegisteredData


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addObjectValueUsingPOST(objectId, objectValue, callback);

Documentation for API Endpoints

All URIs are relative to https://bcd-web.net/

Class Method HTTP request Description
HackathonWebApi.DefaultApi addObjectValueUsingPOST POST /api/v1/user/objects/{objectId} オブジェクトの登録
HackathonWebApi.DefaultApi createAssetsUsingPOST POST /api/v1/user/assets アセット作成
HackathonWebApi.DefaultApi createNewAccountUsingPOST POST /api/v1/user/useradd ユーザーの作成
HackathonWebApi.DefaultApi findAssetsUsingGET GET /api/v1/user/assets/find アセット検索
HackathonWebApi.DefaultApi findCountObjectValuesUsingGET GET /api/v1/user/objects/{objectId}/findCount オブジェクトの登録データの検索結果件数
HackathonWebApi.DefaultApi findObjectValuesUsingGET GET /api/v1/user/objects/{objectId}/find オブジェクトの登録データの検索
HackathonWebApi.DefaultApi getObjectCountUsingGET GET /api/v1/user/objects/{objectId}/count オブジェクトの登録件数の参照
HackathonWebApi.DefaultApi getObjectValueUsingGET GET /api/v1/user/objects/{objectId}/{index} オブジェクトの参照
HackathonWebApi.DefaultApi getObjectValuesUsingGET GET /api/v1/user/objects/{objectId} オブジェクトの登録データの参照
HackathonWebApi.DefaultApi queryAssetsBalanceUsingGET GET /api/v1/user/assets/{assetsName} アセットの残高照会
HackathonWebApi.DefaultApi queryAssetsTradingHistoryUsingGET GET /api/v1/user/assets/{assetsName}/tradingHistory アセットの取引履歴参照
HackathonWebApi.DefaultApi sendAssetsUsingPOST POST /api/v1/user/assets/{assetsName}/send アセットの送信

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

Readme

Keywords

none

Package Sidebar

Install

npm i hackathon_web_api

Weekly Downloads

1

Version

0.9.0

License

Apache-2.0

Last publish

Collaborators

  • pco2699