0.3.11 • Published 3 years ago

tinapi_ v0.3.11

Weekly downloads
62
License
Unlicense
Repository
-
Last release
3 years ago

tinapi_minka

TinapiMinka - JavaScript client for tinapi_minka No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 0.2.21
  • Package version: 0.2.21
  • Build package: org.openapitools.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 tinapi_minka --save
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

Finally, switch to the directory you want to use your tinapi_minka from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('tinapi_minka') in javascript files from the directory you ran the last command above from.

git

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

    npm install GIT_USER_ID/GIT_REPO_ID --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, that's to say your javascript file where you actually use this library):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

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

var TinapiMinka = require('tinapi_minka');

var defaultClient = TinapiMinka.ApiClient.instance;

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

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

// Configure OAuth2 access token for authorization: oAuth2ClientCredentials
var oAuth2ClientCredentials = defaultClient.authentications['oAuth2ClientCredentials'];
oAuth2ClientCredentials.accessToken = "YOUR ACCESS TOKEN"

var api = new TinapiMinka.ActionApi()
var createActionRequest = new TinapiMinka.CreateActionRequest(); // {CreateActionRequest} 
api.createAction(createActionRequest).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Documentation for API Endpoints

All URIs are relative to https://achtin-tst.minka.io/v1

ClassMethodHTTP requestDescription
TinapiMinka.ActionApicreateActionPOST /actionCreate an action
TinapiMinka.ActionApigetActionByActionIdGET /action/{action_id}Get an action by action_id
TinapiMinka.ActionApigetActionsGET /actionGet Actions received
TinapiMinka.ActionApigetPendingGET /action/unsignedGet unsigned actions
TinapiMinka.ActionApisignActionPOST /action/{actionid}/signedSign action
TinapiMinka.ActionApisignOfflinePOST /action/{actionid}/senditSign offline
TinapiMinka.ActionApiupdateActionLabelsPUT /action/{action_id}Update labels of an action
TinapiMinka.ConciliationApigetConciliationGET /conciliationGenerates a conciliation txt file
TinapiMinka.DefaultApiupdateActionLabelsPUT /custom/action/{action_id}Update labels of an action
TinapiMinka.DefaultApiupdateSignerCustomPUT /custom/signer/{signerAddress}Actualiza un signer
TinapiMinka.KeeperApiobtenerKeeperGET /keeperGenera un keeper
TinapiMinka.LinksApicreateLinkPOST /linkCreate a link
TinapiMinka.LinksApideleteLinkDELETE /link/{link_id}Delete a link
TinapiMinka.LinksApigetLinkGET /linkGet a link
TinapiMinka.SignerApicallActionPOST /signer/{userAddress}/router/{actionId}/actionCall action in user's Bank
TinapiMinka.SignerApicallDownloadPOST /signer/{solicitanteAddress}/router/{actionId}/downloadCall credit in user's bank
TinapiMinka.SignerApicallStatusPOST /signer/{solicitanteAddress}/router/{actionId}/statusNotify status
TinapiMinka.SignerApicallUploadPOST /signer/{userAddress}/router/{actionId}/uploadCall debit in user's bank
TinapiMinka.SignerApicreateSignerPOST /signerCrea un signer
TinapiMinka.SignerApideleteSignerByAddressDELETE /signer/{signerAddress}Delete signer
TinapiMinka.SignerApigetSignerByAddressGET /signer/{signerAddress}Obtiene un signer por address
TinapiMinka.SignerApigetSignersGET /signerObtiene un signer
TinapiMinka.SignerApiupdateSignerPUT /signer/{signerAddress}Actualiza un signer
TinapiMinka.TokenApigetTokenPOST /oauth/tokenRetrieve token
TinapiMinka.TransferApiacceptP2PtranferPOST /transfer/{actionid}/acceptReject a P2p transfer
TinapiMinka.TransferApicontinueP2PtranferPOST /transfer/{actionid}/continueContinue async a P2p transfer
TinapiMinka.TransferApicreateTinTransferPOST /transferCreate a P2P transfer
TinapiMinka.TransferApigetTransfersGET /transferGet Transfers
TinapiMinka.TransferApigetTransfersAnalyticsGET /transfer/analyticsGet data related to Transfers
TinapiMinka.TransferApirejectP2PtranferPOST /transfer/{actionid}/rejectReject a P2P transfer
TinapiMinka.WalletApicreateWalletPOST /walletCreate a wallet
TinapiMinka.WalletApigetBalanceGET /wallet/{handle}/balanceGet default account balance of a wallet
TinapiMinka.WalletApigetWalletByAliasGET /wallet/{handle}Get a wallet
TinapiMinka.WalletApigetWalletBySignerGET /walletObtiene un wallet por signer
TinapiMinka.WalletApisendSmsPOST /wallet/{solicitadoAlias}/channel/smsSend sms
TinapiMinka.WalletApiupdateWalletPUT /wallet/{handle}Edit a wallet

Documentation for Models

Documentation for Authorization

ApiKeyAuth

  • Type: API key
  • API key parameter name: x-api-key
  • Location: HTTP header

BasicAuth

  • Type: HTTP basic authentication

XNonce

  • Type: API key
  • API key parameter name: x-nonce
  • Location: HTTP header

oAuth2ClientCredentials

  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes: N/A
0.3.11

3 years ago

0.3.10

3 years ago

0.3.9

4 years ago

0.3.8

5 years ago

0.3.7

5 years ago

0.3.6

5 years ago

0.3.5

5 years ago

0.3.4

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.22

5 years ago

0.2.21

5 years ago

0.2.20

6 years ago

0.2.19

6 years ago

0.2.18

6 years ago

0.2.17

6 years ago

0.2.15

6 years ago

0.2.14

6 years ago

0.2.13

6 years ago

0.2.12

6 years ago

0.2.11

6 years ago

0.2.10

6 years ago

0.2.9

6 years ago

0.2.8

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

1.0.0

6 years ago

0.0.1

6 years ago