1. Home
  2. Docs
  3. Chainlink Adapters
  4. Private: Adapter Downloads
  5. Mistertango Adapter Setup

Mistertango Adapter Setup

How to use

  • Install dependencies npm install
  • Set up Environment variables
  • Optional: Run tests npm test
  • Run createRequest() in one of the following ways:
    • call it directly
    • use the handler() wrapper for AWS Lambda
    • use the gcpservice() wrapper for GCP
  • Use one of the available Available methods
    • Set method name in data.method, along with method-specific parameters

To create a ZIP file to upload to AWS/GCP, run:

zip -r cl-ea.zip .

Environment variables

VariableDescriptionExample
API_KEYRequiredAPI key of the user. See Mistertango Settingse6ab820c-ad73-4f6c-9a39-8978a26b506a
API_SECRETRequiredAPI secret of the user. See Mistertango Settings2a8f2e4e3b7e541
API_USERNAMERequiredEmail address of the Mistertango useryou@example.com

Available methods

getBalance

Get client balance for current or previous date

Request

VariableTypeDescription
dateStringOptionalDate for balance (current date, if skipped)

Response

{
   "status":true,
   "api":{
      "version":"string",
      "title":"string"
   },
   "message":"string",
   "data":{
      "available_balance":0,
      "reservations":0,
      "real_balance":0
   },
   "duration":0
}

getList/getList3

Get transaction list for date or period, newest first, 100 transactions per call

Request

VariableTypeDescription
dateFromStringOptionalStart of period (week ago, if skipped)
dateTillStringOptionalEnd of period (current date, if skipped)
pageIntegerOptionalPage of transaction list in period (1, if skipped)

Response

{
   "status":true,
   "api":{
      "version":"string",
      "title":"string"
   },
   "message":"string",
   "data":[
      {
         "total":0,
         "account":{
            "balance":0,
            "balance_from":0,
            "balance_till":0,
            "incomes":0,
            "expenses":0
         },
         "list":[
            {
               "uuid":"string",
               "other_side":"string",
               "other_side_account":"string",
               "direction":"string",
               "amount":0,
               "fee":0,
               "comment":"string",
               "status":"string",
               "date":"string",
               "type":"string"
            }
         ]
      }
   ],
   "duration":0
}

sendMoney

Send money to IBAN account

Request

VariableTypeDescription
amountDoubleRequiredAmount of money
recipientStringRequiredName of the recipient
accountStringRequiredIBAN account number or Mistertango username
detailsStringRequiredDetails (description) of the transfer

Response

{
   "status":true,
   "api":{
      "version":"string",
      "title":"string"
   },
   "message":"string",
   "data":"string",
   "duration":0
}

Disclaimer

In order to use this adapter, you will need to create an account with and obtain credentials from Mistertango and agree to and comply with Mistertango’s applicable terms, conditions and policies. In no event will SmartContract Chainlink Limited SEZC be liable for your or your user’s failure to comply with any or all of Mistertango’s terms, conditions or policies or any other applicable license terms.

Was this article helpful to you? Yes No

How can we help?

Leave a Reply

Your email address will not be published. Required fields are marked *