OSDN Git Service

add asset/key/transaction api to client
authorYongfeng LI <wliyongfeng@gmail.com>
Mon, 14 May 2018 10:49:21 +0000 (18:49 +0800)
committerYongfeng LI <wliyongfeng@gmail.com>
Mon, 14 May 2018 10:49:21 +0000 (18:49 +0800)
src/client.js

index a303ac3..74d9e55 100644 (file)
@@ -1,11 +1,17 @@
 import Connection from 'connection'
 import AccountsApi from 'api/account'
+import AssetApi from 'api/assets'
+import KeysApi from 'api/keys'
+import TransactionApi from 'api/transactions'
 
 class Client {
   constructor(baseUrl, token) {
     this.connection = new Connection(baseUrl, token)
 
-    this.account = new AccountsApi(this.connection)
+    this.accounts = new AccountsApi(this.connection)
+    this.assets = new AssetApi(this.connection)
+    this.keys = new KeysApi(this.connection)
+    this.transactions = new TransactionApi(this.connection)
   }
 }