Package co.dapi

Class DapiApp


  • public class DapiApp
    extends java.lang.Object
    DapiApp represents a client app that's using one or more of the Dapi products.
    • Constructor Summary

      Constructors 
      Constructor Description
      DapiApp​(Config config)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CreateBeneficiaryResponse createBeneficiary​(Payment.BeneficiaryInfo beneficiary, java.lang.String accessToken, java.lang.String userSecret)
      createBeneficiary talks to the CreateBeneficiary endpoint of Dapi, with this DapiApp's appSecret.
      CreateBeneficiaryResponse createBeneficiary​(Payment.BeneficiaryInfo beneficiary, java.lang.String accessToken, java.lang.String userSecret, java.lang.String operationID, UserInput[] userInputs)
      createBeneficiary talks to the CreateBeneficiary endpoint of Dapi, with this DapiApp's appSecret, to continue a previous operation that required to provide some userInputs.
      CreateTransferResponse createTransfer​(Payment.Transfer transfer, java.lang.String accessToken, java.lang.String userSecret)
      createTransfer talks to the CreateTransfer endpoint of Dapi, with this DapiApp's appSecret.
      CreateTransferResponse createTransfer​(Payment.Transfer transfer, java.lang.String accessToken, java.lang.String userSecret, java.lang.String operationID, UserInput[] userInputs)
      createTransfer talks to the CreateTransfer endpoint of Dapi, with this DapiApp's appSecret, to continue a previous operation that required to provide some userInputs.
      ExchangeTokenResponse exchangeToken​(java.lang.String accessCode, java.lang.String connectionID)
      exchangeToken talks to the ExchangeToken endpoint of Dapi, with this DapiApp's appSecret.
      GetAccountsResponse getAccounts​(java.lang.String accessToken, java.lang.String userSecret)
      getAccounts talks to the GetAccounts endpoint of Dapi, with this DapiApp's appSecret.
      GetAccountsResponse getAccounts​(java.lang.String accessToken, java.lang.String userSecret, java.lang.String operationID, UserInput[] userInputs)
      getAccounts talks to the GetAccounts endpoint of Dapi, with this DapiApp's appSecret, to continue a previous operation that required to provide some userInputs.
      GetAccountsMetadataResponse getAccountsMetadata​(java.lang.String accessToken, java.lang.String userSecret)
      getAccountsMetadata talks to the GetAccountsMetadata endpoint of Dapi, with this DapiApp's appSecret.
      GetAccountsMetadataResponse getAccountsMetadata​(java.lang.String accessToken, java.lang.String userSecret, java.lang.String operationID, UserInput[] userInputs)
      getAccountsMetadata talks to the GetAccountsMetadata endpoint of Dapi, with this DapiApp's appSecret, to continue a previous operation that required to provide some userInputs.
      GetBalanceResponse getBalance​(java.lang.String accountID, java.lang.String accessToken, java.lang.String userSecret)
      getBalance talks to the GetBalance endpoint of Dapi, with this DapiApp's appSecret.
      GetBalanceResponse getBalance​(java.lang.String accountID, java.lang.String accessToken, java.lang.String userSecret, java.lang.String operationID, UserInput[] userInputs)
      getBalance talks to the GetBalance endpoint of Dapi, with this DapiApp's appSecret, to continue a previous operation that required to provide some userInputs.
      GetBeneficiariesResponse getBeneficiaries​(java.lang.String accessToken, java.lang.String userSecret)
      getBeneficiaries talks to the GetBeneficiaries endpoint of Dapi, with this DapiApp's appSecret.
      GetBeneficiariesResponse getBeneficiaries​(java.lang.String accessToken, java.lang.String userSecret, java.lang.String operationID, UserInput[] userInputs)
      getBeneficiaries talks to the GetBeneficiaries endpoint of Dapi, with this DapiApp's appSecret, to continue a previous operation that required to provide some userInputs.
      GetCategorizedTransactionsResponse getCategorizedTransactions​(java.lang.String accountID, java.time.LocalDate fromDate, java.time.LocalDate toDate, java.lang.String accessToken, java.lang.String userSecret)
      getCategorizedTransactions talks to the GetCategorizedTransactions endpoint of Dapi, with this DapiApp's appSecret.
      GetCategorizedTransactionsResponse getCategorizedTransactions​(java.lang.String accountID, java.time.LocalDate fromDate, java.time.LocalDate toDate, java.lang.String accessToken, java.lang.String userSecret, java.lang.String operationID, UserInput[] userInputs)
      getCategorizedTransactions talks to the GetCategorizedTransactions endpoint of Dapi, with this DapiApp's appSecret, to continue a previous operation that required to provide some userInputs.
      GetEnrichedTransactionsResponse getEnrichedTransactions​(java.lang.String accountID, java.time.LocalDate fromDate, java.time.LocalDate toDate, java.lang.String accessToken, java.lang.String userSecret)
      getCategorizedTransactions talks to the GetEnrichedTransactions endpoint of Dapi, with this DapiApp's appSecret.
      GetEnrichedTransactionsResponse getEnrichedTransactions​(java.lang.String accountID, java.time.LocalDate fromDate, java.time.LocalDate toDate, java.lang.String accessToken, java.lang.String userSecret, java.lang.String operationID, UserInput[] userInputs)
      getCategorizedTransactions talks to the GetEnrichedTransactions endpoint of Dapi, with this DapiApp's appSecret, to continue a previous operation that required to provide some userInputs.
      GetIdentityResponse getIdentity​(java.lang.String accessToken, java.lang.String userSecret)
      getIdentity talks to the GetIdentity endpoint of Dapi, with this DapiApp's appSecret.
      GetIdentityResponse getIdentity​(java.lang.String accessToken, java.lang.String userSecret, java.lang.String operationID, UserInput[] userInputs)
      getIdentity talks to the GetIdentity endpoint of Dapi, with this DapiApp's appSecret, to continue a previous operation that required to provide some userInputs.
      GetTransactionsResponse getTransactions​(java.lang.String accountID, java.time.LocalDate fromDate, java.time.LocalDate toDate, java.lang.String accessToken, java.lang.String userSecret)
      getTransactions talks to the GetTransactions endpoint of Dapi, with this DapiApp's appSecret.
      GetTransactionsResponse getTransactions​(java.lang.String accountID, java.time.LocalDate fromDate, java.time.LocalDate toDate, java.lang.String accessToken, java.lang.String userSecret, java.lang.String operationID, UserInput[] userInputs)
      getTransactions talks to the GetTransactions endpoint of Dapi, with this DapiApp's appSecret, to continue a previous operation that required to provide some userInputs.
      okhttp3.Response handleSDKRequest​(java.lang.String bodyJson)
      handleSDKRequest injects this DapiApp's appSecret in the provided request body, bodyJson, and then forwards the request to Dapi, and returns the RAW response got.
      okhttp3.Response handleSDKRequest​(java.lang.String bodyJson, java.util.HashMap<java.lang.String,​java.lang.String> headersMap)
      handleSDKRequest injects this DapiApp's appSecret in the provided request body, bodyJson, and then forwards the request to Dapi, with the passed headers, headersMap, and returns the RAW response got.
      okhttp3.Response handleSecureSDKRequest​(java.lang.String bodyJson)
      handleSecureSDKRequest injects this DapiApp's appSecret in the provided request body, bodyJson, and then forwards the request to Dapi, and returns the RAW response got For more info about this function, please contact support@dapi.com
      okhttp3.Response handleSecureSDKRequest​(java.lang.String bodyJson, java.util.HashMap<java.lang.String,​java.lang.String> headersMap)
      handleSecureSDKRequest injects this DapiApp's appSecret in the provided request body, bodyJson, and then forwards the request to Dapi, with the provided headers, headersMap, and returns the RAW response got.
      TransferAutoflowResponse transferAutoflow​(Payment.TransferAutoflow transferAutoflow, java.lang.String accessToken, java.lang.String userSecret)
      transferAutoflow talks to the TransferAutoflow endpoint of Dapi, with this DapiApp's appSecret.
      TransferAutoflowResponse transferAutoflow​(Payment.TransferAutoflow transferAutoflow, java.lang.String accessToken, java.lang.String userSecret, java.lang.String operationID, UserInput[] userInputs)
      transferAutoflow talks to the TransferAutoflow endpoint of Dapi, with this DapiApp's appSecret, to continue a previous operation that required to provide some userInputs.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DapiApp

        public DapiApp​(Config config)
    • Method Detail

      • exchangeToken

        public ExchangeTokenResponse exchangeToken​(java.lang.String accessCode,
                                                   java.lang.String connectionID)
                                            throws java.io.IOException
        exchangeToken talks to the ExchangeToken endpoint of Dapi, with this DapiApp's appSecret.
        Parameters:
        accessCode - retrieved from user login.
        connectionID - retrieved from user login.
        Returns:
        an ExchangeTokenResponse.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request or reading the response.
      • getIdentity

        public GetIdentityResponse getIdentity​(java.lang.String accessToken,
                                               java.lang.String userSecret)
                                        throws java.io.IOException
        getIdentity talks to the GetIdentity endpoint of Dapi, with this DapiApp's appSecret.
        Parameters:
        accessToken - retrieved from the ExchangeToken process.
        userSecret - retrieved from the user login.
        Returns:
        a GetIdentityResponse.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request or reading the response.
      • getIdentity

        public GetIdentityResponse getIdentity​(java.lang.String accessToken,
                                               java.lang.String userSecret,
                                               java.lang.String operationID,
                                               UserInput[] userInputs)
                                        throws java.io.IOException
        getIdentity talks to the GetIdentity endpoint of Dapi, with this DapiApp's appSecret, to continue a previous operation that required to provide some userInputs.
        Parameters:
        accessToken - retrieved from the ExchangeToken process.
        userSecret - retrieved from the user login.
        operationID - retrieved from the previous call's response.
        userInputs - built from the previous call's response, and the required user input.
        Returns:
        a GetIdentityResponse.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request or reading the response.
      • getAccounts

        public GetAccountsResponse getAccounts​(java.lang.String accessToken,
                                               java.lang.String userSecret)
                                        throws java.io.IOException
        getAccounts talks to the GetAccounts endpoint of Dapi, with this DapiApp's appSecret.
        Parameters:
        accessToken - retrieved from the ExchangeToken process.
        userSecret - retrieved from the user login.
        Returns:
        an GetAccountsResponse.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request or reading the response.
      • getAccounts

        public GetAccountsResponse getAccounts​(java.lang.String accessToken,
                                               java.lang.String userSecret,
                                               java.lang.String operationID,
                                               UserInput[] userInputs)
                                        throws java.io.IOException
        getAccounts talks to the GetAccounts endpoint of Dapi, with this DapiApp's appSecret, to continue a previous operation that required to provide some userInputs.
        Parameters:
        accessToken - retrieved from the ExchangeToken process.
        userSecret - retrieved from the user login.
        operationID - retrieved from the previous call's response.
        userInputs - built from the previous call's response, and the required user input.
        Returns:
        an GetAccountsResponse.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request or reading the response.
      • getBalance

        public GetBalanceResponse getBalance​(java.lang.String accountID,
                                             java.lang.String accessToken,
                                             java.lang.String userSecret)
                                      throws java.io.IOException
        getBalance talks to the GetBalance endpoint of Dapi, with this DapiApp's appSecret.
        Parameters:
        accountID - the id of the account which this operation is about.
        accessToken - retrieved from the ExchangeToken process.
        userSecret - retrieved from the user login.
        Returns:
        an GetBalanceResponse.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request or reading the response.
      • getBalance

        public GetBalanceResponse getBalance​(java.lang.String accountID,
                                             java.lang.String accessToken,
                                             java.lang.String userSecret,
                                             java.lang.String operationID,
                                             UserInput[] userInputs)
                                      throws java.io.IOException
        getBalance talks to the GetBalance endpoint of Dapi, with this DapiApp's appSecret, to continue a previous operation that required to provide some userInputs.
        Parameters:
        accountID - the id of the account which this operation is about.
        accessToken - retrieved from the ExchangeToken process.
        userSecret - retrieved from the user login.
        operationID - retrieved from the previous call's response.
        userInputs - built from the previous call's response, and the required user input.
        Returns:
        an GetBalanceResponse.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request or reading the response.
      • getTransactions

        public GetTransactionsResponse getTransactions​(java.lang.String accountID,
                                                       java.time.LocalDate fromDate,
                                                       java.time.LocalDate toDate,
                                                       java.lang.String accessToken,
                                                       java.lang.String userSecret)
                                                throws java.io.IOException
        getTransactions talks to the GetTransactions endpoint of Dapi, with this DapiApp's appSecret.
        Parameters:
        accountID - the id of the account which this operation is about.
        fromDate - the start date of the transactions we want.
        toDate - the end date of the transactions we want.
        accessToken - retrieved from the ExchangeToken process.
        userSecret - retrieved from the user login.
        Returns:
        an GetTransactionsResponse.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request or reading the response.
      • getTransactions

        public GetTransactionsResponse getTransactions​(java.lang.String accountID,
                                                       java.time.LocalDate fromDate,
                                                       java.time.LocalDate toDate,
                                                       java.lang.String accessToken,
                                                       java.lang.String userSecret,
                                                       java.lang.String operationID,
                                                       UserInput[] userInputs)
                                                throws java.io.IOException
        getTransactions talks to the GetTransactions endpoint of Dapi, with this DapiApp's appSecret, to continue a previous operation that required to provide some userInputs.
        Parameters:
        accountID - the id of the account which this operation is about.
        fromDate - the start date of the transactions we want.
        toDate - the end date of the transactions we want.
        accessToken - retrieved from the ExchangeToken process.
        userSecret - retrieved from the user login.
        operationID - retrieved from the previous call's response.
        userInputs - built from the previous call's response, and the required user input.
        Returns:
        an GetTransactionsResponse.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request or reading the response.
      • getCategorizedTransactions

        public GetCategorizedTransactionsResponse getCategorizedTransactions​(java.lang.String accountID,
                                                                             java.time.LocalDate fromDate,
                                                                             java.time.LocalDate toDate,
                                                                             java.lang.String accessToken,
                                                                             java.lang.String userSecret)
                                                                      throws java.io.IOException
        getCategorizedTransactions talks to the GetCategorizedTransactions endpoint of Dapi, with this DapiApp's appSecret.
        Parameters:
        accountID - the id of the account which this operation is about.
        fromDate - the start date of the transactions we want.
        toDate - the end date of the transactions we want.
        accessToken - retrieved from the ExchangeToken process.
        userSecret - retrieved from the user login.
        Returns:
        an GetTransactionsResponse.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request or reading the response.
      • getCategorizedTransactions

        public GetCategorizedTransactionsResponse getCategorizedTransactions​(java.lang.String accountID,
                                                                             java.time.LocalDate fromDate,
                                                                             java.time.LocalDate toDate,
                                                                             java.lang.String accessToken,
                                                                             java.lang.String userSecret,
                                                                             java.lang.String operationID,
                                                                             UserInput[] userInputs)
                                                                      throws java.io.IOException
        getCategorizedTransactions talks to the GetCategorizedTransactions endpoint of Dapi, with this DapiApp's appSecret, to continue a previous operation that required to provide some userInputs.
        Parameters:
        accountID - the id of the account which this operation is about.
        fromDate - the start date of the transactions we want.
        toDate - the end date of the transactions we want.
        accessToken - retrieved from the ExchangeToken process.
        userSecret - retrieved from the user login.
        operationID - retrieved from the previous call's response.
        userInputs - built from the previous call's response, and the required user input.
        Returns:
        an GetTransactionsResponse.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request or reading the response.
      • getEnrichedTransactions

        public GetEnrichedTransactionsResponse getEnrichedTransactions​(java.lang.String accountID,
                                                                       java.time.LocalDate fromDate,
                                                                       java.time.LocalDate toDate,
                                                                       java.lang.String accessToken,
                                                                       java.lang.String userSecret)
                                                                throws java.io.IOException
        getCategorizedTransactions talks to the GetEnrichedTransactions endpoint of Dapi, with this DapiApp's appSecret.
        Parameters:
        accountID - the id of the account which this operation is about.
        fromDate - the start date of the transactions we want.
        toDate - the end date of the transactions we want.
        accessToken - retrieved from the ExchangeToken process.
        userSecret - retrieved from the user login.
        Returns:
        an GetTransactionsResponse.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request or reading the response.
      • getEnrichedTransactions

        public GetEnrichedTransactionsResponse getEnrichedTransactions​(java.lang.String accountID,
                                                                       java.time.LocalDate fromDate,
                                                                       java.time.LocalDate toDate,
                                                                       java.lang.String accessToken,
                                                                       java.lang.String userSecret,
                                                                       java.lang.String operationID,
                                                                       UserInput[] userInputs)
                                                                throws java.io.IOException
        getCategorizedTransactions talks to the GetEnrichedTransactions endpoint of Dapi, with this DapiApp's appSecret, to continue a previous operation that required to provide some userInputs.
        Parameters:
        accountID - the id of the account which this operation is about.
        fromDate - the start date of the transactions we want.
        toDate - the end date of the transactions we want.
        accessToken - retrieved from the ExchangeToken process.
        userSecret - retrieved from the user login.
        operationID - retrieved from the previous call's response.
        userInputs - built from the previous call's response, and the required user input.
        Returns:
        an GetTransactionsResponse.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request or reading the response.
      • createBeneficiary

        public CreateBeneficiaryResponse createBeneficiary​(Payment.BeneficiaryInfo beneficiary,
                                                           java.lang.String accessToken,
                                                           java.lang.String userSecret)
                                                    throws java.io.IOException
        createBeneficiary talks to the CreateBeneficiary endpoint of Dapi, with this DapiApp's appSecret.
        Parameters:
        accessToken - retrieved from the ExchangeToken process.
        userSecret - retrieved from the user login.
        Returns:
        an CreateBeneficiaryResponse.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request or reading the response.
      • createBeneficiary

        public CreateBeneficiaryResponse createBeneficiary​(Payment.BeneficiaryInfo beneficiary,
                                                           java.lang.String accessToken,
                                                           java.lang.String userSecret,
                                                           java.lang.String operationID,
                                                           UserInput[] userInputs)
                                                    throws java.io.IOException
        createBeneficiary talks to the CreateBeneficiary endpoint of Dapi, with this DapiApp's appSecret, to continue a previous operation that required to provide some userInputs.
        Parameters:
        accessToken - retrieved from the ExchangeToken process.
        userSecret - retrieved from the user login.
        operationID - retrieved from the previous call's response.
        userInputs - built from the previous call's response, and the required user input.
        Returns:
        an CreateBeneficiaryResponse.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request or reading the response.
      • getBeneficiaries

        public GetBeneficiariesResponse getBeneficiaries​(java.lang.String accessToken,
                                                         java.lang.String userSecret)
                                                  throws java.io.IOException
        getBeneficiaries talks to the GetBeneficiaries endpoint of Dapi, with this DapiApp's appSecret.
        Parameters:
        accessToken - retrieved from the ExchangeToken process.
        userSecret - retrieved from the user login.
        Returns:
        an GetBeneficiariesResponse.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request or reading the response.
      • getBeneficiaries

        public GetBeneficiariesResponse getBeneficiaries​(java.lang.String accessToken,
                                                         java.lang.String userSecret,
                                                         java.lang.String operationID,
                                                         UserInput[] userInputs)
                                                  throws java.io.IOException
        getBeneficiaries talks to the GetBeneficiaries endpoint of Dapi, with this DapiApp's appSecret, to continue a previous operation that required to provide some userInputs.
        Parameters:
        accessToken - retrieved from the ExchangeToken process.
        userSecret - retrieved from the user login.
        operationID - retrieved from the previous call's response.
        userInputs - built from the previous call's response, and the required user input.
        Returns:
        an GetBeneficiariesResponse.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request or reading the response.
      • createTransfer

        public CreateTransferResponse createTransfer​(Payment.Transfer transfer,
                                                     java.lang.String accessToken,
                                                     java.lang.String userSecret)
                                              throws java.io.IOException
        createTransfer talks to the CreateTransfer endpoint of Dapi, with this DapiApp's appSecret.
        Parameters:
        transfer - the transfer details that we want to initiate.
        accessToken - retrieved from the ExchangeToken process.
        userSecret - retrieved from the user login.
        Returns:
        an CreateTransferResponse.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request or reading the response.
      • createTransfer

        public CreateTransferResponse createTransfer​(Payment.Transfer transfer,
                                                     java.lang.String accessToken,
                                                     java.lang.String userSecret,
                                                     java.lang.String operationID,
                                                     UserInput[] userInputs)
                                              throws java.io.IOException
        createTransfer talks to the CreateTransfer endpoint of Dapi, with this DapiApp's appSecret, to continue a previous operation that required to provide some userInputs.
        Parameters:
        transfer - the transfer details that we want to initiate.
        accessToken - retrieved from the ExchangeToken process.
        userSecret - retrieved from the user login.
        operationID - retrieved from the previous call's response.
        userInputs - built from the previous call's response, and the required user input.
        Returns:
        an CreateTransferResponse.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request or reading the response.
      • transferAutoflow

        public TransferAutoflowResponse transferAutoflow​(Payment.TransferAutoflow transferAutoflow,
                                                         java.lang.String accessToken,
                                                         java.lang.String userSecret)
                                                  throws java.io.IOException
        transferAutoflow talks to the TransferAutoflow endpoint of Dapi, with this DapiApp's appSecret.
        Parameters:
        transferAutoflow - the details required to create a TransferAutoflow operation.
        accessToken - retrieved from the ExchangeToken process.
        userSecret - retrieved from the user login.
        Returns:
        an TransferAutoflowResponse.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request or reading the response.
      • transferAutoflow

        public TransferAutoflowResponse transferAutoflow​(Payment.TransferAutoflow transferAutoflow,
                                                         java.lang.String accessToken,
                                                         java.lang.String userSecret,
                                                         java.lang.String operationID,
                                                         UserInput[] userInputs)
                                                  throws java.io.IOException
        transferAutoflow talks to the TransferAutoflow endpoint of Dapi, with this DapiApp's appSecret, to continue a previous operation that required to provide some userInputs.
        Parameters:
        transferAutoflow - the details required to create a TransferAutoflow operation.
        accessToken - retrieved from the ExchangeToken process.
        userSecret - retrieved from the user login.
        operationID - retrieved from the previous call's response.
        userInputs - built from the previous call's response, and the required user input.
        Returns:
        an TransferAutoflowResponse.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request or reading the response.
      • getAccountsMetadata

        public GetAccountsMetadataResponse getAccountsMetadata​(java.lang.String accessToken,
                                                               java.lang.String userSecret)
                                                        throws java.io.IOException
        getAccountsMetadata talks to the GetAccountsMetadata endpoint of Dapi, with this DapiApp's appSecret.
        Parameters:
        accessToken - retrieved from the ExchangeToken process.
        userSecret - retrieved from the user login.
        Returns:
        an GetAccountsMetadataResponse.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request or reading the response.
      • getAccountsMetadata

        public GetAccountsMetadataResponse getAccountsMetadata​(java.lang.String accessToken,
                                                               java.lang.String userSecret,
                                                               java.lang.String operationID,
                                                               UserInput[] userInputs)
                                                        throws java.io.IOException
        getAccountsMetadata talks to the GetAccountsMetadata endpoint of Dapi, with this DapiApp's appSecret, to continue a previous operation that required to provide some userInputs.
        Parameters:
        accessToken - retrieved from the ExchangeToken process.
        userSecret - retrieved from the user login.
        operationID - retrieved from the previous call's response.
        userInputs - built from the previous call's response, and the required user input.
        Returns:
        an GetAccountsMetadataResponse.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request or reading the response.
      • handleSDKRequest

        public okhttp3.Response handleSDKRequest​(java.lang.String bodyJson,
                                                 java.util.HashMap<java.lang.String,​java.lang.String> headersMap)
                                          throws java.io.IOException,
                                                 com.google.gson.JsonSyntaxException
        handleSDKRequest injects this DapiApp's appSecret in the provided request body, bodyJson, and then forwards the request to Dapi, with the passed headers, headersMap, and returns the RAW response got.
        Parameters:
        bodyJson - the body of the request, in JSON format.
        headersMap - any headers that need to be passed with the request.
        Returns:
        an Response representing the HTTP response of this operation.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request.
        com.google.gson.JsonSyntaxException - in case of trouble happened while reading the request body.
      • handleSDKRequest

        public okhttp3.Response handleSDKRequest​(java.lang.String bodyJson)
                                          throws java.io.IOException,
                                                 com.google.gson.JsonSyntaxException
        handleSDKRequest injects this DapiApp's appSecret in the provided request body, bodyJson, and then forwards the request to Dapi, and returns the RAW response got.
        Parameters:
        bodyJson - the body of the request, in JSON format.
        Returns:
        an Response representing the HTTP response of this operation.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request.
        com.google.gson.JsonSyntaxException - in case of trouble happened while reading the request body.
      • handleSecureSDKRequest

        public okhttp3.Response handleSecureSDKRequest​(java.lang.String bodyJson,
                                                       java.util.HashMap<java.lang.String,​java.lang.String> headersMap)
                                                throws java.io.IOException,
                                                       com.google.gson.JsonSyntaxException
        handleSecureSDKRequest injects this DapiApp's appSecret in the provided request body, bodyJson, and then forwards the request to Dapi, with the provided headers, headersMap, and returns the RAW response got. For more info about this function, please contact support@dapi.com
        Parameters:
        bodyJson - the body of the request, in JSON format.
        headersMap - any headers that need to be passed with the request.
        Returns:
        an Response representing the HTTP response of this operation.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request.
        com.google.gson.JsonSyntaxException - in case of trouble happened while reading the request body.
      • handleSecureSDKRequest

        public okhttp3.Response handleSecureSDKRequest​(java.lang.String bodyJson)
                                                throws java.io.IOException,
                                                       com.google.gson.JsonSyntaxException
        handleSecureSDKRequest injects this DapiApp's appSecret in the provided request body, bodyJson, and then forwards the request to Dapi, and returns the RAW response got For more info about this function, please contact support@dapi.com
        Parameters:
        bodyJson - the body of the request, in JSON format.
        Returns:
        an Response representing the HTTP response of this operation.
        Throws:
        java.io.IOException - in case of trouble happened while executing the request.
        com.google.gson.JsonSyntaxException - in case of trouble happened while reading the request body.