1.0.0 • Published 8 years ago

anytime_api2 v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
8 years ago

anytime_api

AnytimeApi - JavaScript client for anytime_api Anytime API This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build date: 2016-09-20T08:18:37.220Z
  • 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 anytime_api --save

git

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

    npm install YOUR_USERNAME/anytime_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 AnytimeApi = require('anytime_api');

var api = new AnytimeApi.AccountsApi()

var version = "version_example"; // {String} The API version

var authorization = "Bearer NzViMmUxNzdhYzQyNTNiYmNjNmFlMWJjZTA4OTMzODA2ZDczMjgwZTY0Y2U0ZDU1ZDk4Yjk3YWQwNTE0ZmZiMA"; // {String} The string 'Bearer ' followed by the token you got by sing POST /oauth/v2/token uri.

var xValidationData = "test"; // {String} A random string you generate, used to sign the query

var xSignedRequest = "da3vzegG2UU/LTNpbEB5TD81NUHo4DglLnICV1+d4m2ZG9+0YfCEm7l2XfqENDAAk19MINr8kXBXiIu7a4Rat57HYDItEgJV4RtGcrpnXI0jQCZZUOmD/5BZKUmfaJxF1PSE68zNatU1dZN0Ls35VcQDkWhdsS8ZC1+T2PktGo63Bgl87DURsaKIavOx96R1woWcVp9p973dtQMfKBAeUDLNOcJAPzYi28hjw8bjE75dkUPzh8TRlvhlRplceVjsmO5KWDPnUnaLulUlL60+eOnkxqy+m78hVr4Y7jP0zabGRFAiQmf2oGnrtdYvDEX02TOq+RAt/pnSZ0N57J63Xw=="; // {String} This is a signature generated with your private RSA key + The X-Validation-Data string.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.vversionAccountsGet(version, authorization, xValidationData, xSignedRequest, callback);

Documentation for API Endpoints

All URIs are relative to http://dve.dev.ws-sandbox.web.anyti.me

ClassMethodHTTP requestDescription
AnytimeApi.AccountsApivversionAccountsGetGET /v{version}/accountsRetrieve the account list
AnytimeApi.AccountsApivversionAccountsIdBalanceGetGET /v{version}/accounts/{id}/balanceRetrieve the balance of the current account
AnytimeApi.AccountsApivversionAccountsIdCardsGetGET /v{version}/accounts/{id}/cardsRetrieve the cards list of an account
AnytimeApi.AccountsApivversionAccountsIdCreditTransferPostPOST /v{version}/accounts/{id}/credit-transferCreate a credit transfer
AnytimeApi.AccountsApivversionAccountsIdGetGET /v{version}/accounts/{id}Retrieve a specific account information
AnytimeApi.AccountsApivversionAccountsIdKycPostPOST /v{version}/accounts/{id}/kycUpload KYC files
AnytimeApi.AccountsApivversionAccountsIdPutPUT /v{version}/accounts/{id}Update account informations
AnytimeApi.AccountsApivversionAccountsIdStatementsGetGET /v{version}/accounts/{id}/statementsRetrieve the statements list of an account
AnytimeApi.AccountsApivversionAccountsPostPOST /v{version}/accountsCreate a new account
AnytimeApi.ApicheckApivversionApicheckGetGET /v{version}/apicheckCheck the API
AnytimeApi.ApicheckApivversionApicheckPostPOST /v{version}/apicheckapicheck-apicheckpost-summary
AnytimeApi.CardsApivversionCardsPostPOST /v{version}/cardsOrder a new card
AnytimeApi.CardsApivversionCardsRefCreditPostPOST /v{version}/cards/{ref}/creditCredit a card
AnytimeApi.CardsApivversionCardsRefDebitPostPOST /v{version}/cards/{ref}/debitDebit a card
AnytimeApi.CardsApivversionCardsRefGetGET /v{version}/cards/{ref}Get card info
AnytimeApi.CardsApivversionCardsRefPinPostPOST /v{version}/cards/{ref}/pinSend new pin
AnytimeApi.CardsApivversionCardsRefPutPUT /v{version}/cards/{ref}Update card info
AnytimeApi.CardsApivversionCardsRefTransactionsGetGET /v{version}/cards/{ref}/transactionsGet all cards transactions
AnytimeApi.TokenCreationApioauthV2TokenPostPOST /oauth/v2/tokenCreate a new oauth2 token

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.