--- /dev/null
+const accessTokensApi = (connection) => {
+ return {
+ create: (id) => connection.request('/create-access-token', {id}),
+ list: () => connection.request('/list-access-tokens', {}),
+ delete: (id) => connection.request('/delete-access-token', {id})
+ }
+}
+
+export default accessTokensApi
import transactionApi from 'api/transactions'
import balancesApi from 'api/balances'
import unspentOutputsAPI from 'api/unspentOutputs'
+import accessTokensApi from 'api/accessTokens'
class Client {
constructor(baseUrl, token) {
this.transactions = new transactionApi(this.connection)
this.balances = new balancesApi(this.connection)
this.unspentOutputs = new unspentOutputsAPI(this.connection)
+ this.accessTokensApi = new accessTokensApi(this.connection)
}
}