module DataAPI

Public Instance Methods

getAccounts(appSecret, userSecret, token, sync, addresses) click to toggle source
# File lib/dapi/products/DataAPI.rb, line 20
def getAccounts(appSecret, userSecret, token, sync, addresses)
    payload = { 
        appSecret: appSecret,
        userSecret: userSecret,
        sync: sync,
        addresses: addresses
    }
    headers = { 
        "Content-Type": "application/json",
         Authorization: "Bearer #{token}"
    }

    response = HTTParty.post( "http://localhost:80/v1/data/accounts/get", {body: payload.to_json, headers: headers} )
end
getAccountsMetaData(appSecret, userSecret, sync, addresses) click to toggle source
# File lib/dapi/products/DataAPI.rb, line 114
def getAccountsMetaData(appSecret, userSecret, sync, addresses)
    payload = { 
        appSecret: appSecret,
        userSecret: userSecret,
        sync: sync, 
        addresses: addresses
    }
    headers = { 
        "Content-Type": "application/json",
         Authorization: "Bearer #{token}"
    }

    response = HTTParty.post( "http://localhost:80/v1/data/transactions/get", {body: payload.to_json, headers: headers} )
end
getBalance(appSecret, userSecret, accountID, token, sync, addresses) click to toggle source
# File lib/dapi/products/DataAPI.rb, line 50
def getBalance(appSecret, userSecret, accountID, token, sync, addresses)
    payload = { 
        appSecret: appSecret,
        userSecret: userSecret,
        sync: sync,
        accountID: accountID,
        addresses: addresses
    }
    headers = { 
        "Content-Type": "application/json",
         Authorization: "Bearer #{token}"
    }

    response = HTTParty.post( "http://localhost:80/v1/data/balance/get", {body: payload.to_json, headers: headers} )
end
getCardBalance(appSecret, userSecret, cardID, token, sync, addresses) click to toggle source
# File lib/dapi/products/DataAPI.rb, line 66
def getCardBalance(appSecret, userSecret, cardID, token, sync, addresses)
    payload = { 
        appSecret: appSecret,
        userSecret: userSecret,
        sync: sync,
        cardID: cardID,
        addresses: addresses
    }
    headers = { 
        "Content-Type": "application/json",
         Authorization: "Bearer #{token}"
    }

    response = HTTParty.post( "http://localhost:80/v1/data/balance/get", {body: payload.to_json, headers: headers} )
end
getCardTransactions(appSecret, userSecret, cardID, fromDate, toDate, token, sync, addresses) click to toggle source
# File lib/dapi/products/DataAPI.rb, line 98
def getCardTransactions(appSecret, userSecret, cardID, fromDate, toDate, token, sync, addresses)
    payload = { 
        appSecret: appSecret,
        userSecret: userSecret,
        sync: sync,
        cardID: cardID,
        addresses: addresses
    }
    headers = { 
        "Content-Type": "application/json",
         Authorization: "Bearer #{token}"
    }

    response = HTTParty.post( "http://localhost:80/v1/data/transactions/get", {body: payload.to_json, headers: headers} )
end
getCards(appSecret, userSecret, token, sync, addresses) click to toggle source
# File lib/dapi/products/DataAPI.rb, line 35
def getCards(appSecret, userSecret, token, sync, addresses)
    payload = { 
        appSecret: appSecret,
        userSecret: userSecret,
        sync: sync,
        addresses: addresses
    }
    headers = { 
        "Content-Type": "application/json",
         Authorization: "Bearer #{token}"
    }

    response = HTTParty.post( "http://localhost:80/v1/data/cards/get", {body: payload.to_json, headers: headers} )
end
getIdentity(appSecret, userSecret, token, sync, addresses) click to toggle source
# File lib/dapi/products/DataAPI.rb, line 5
def getIdentity(appSecret, userSecret, token, sync, addresses)
    payload = { 
        appSecret: appSecret,
        userSecret: userSecret,
        sync: sync,
        addresses: addresses
    }
    headers = { 
        "Content-Type": "application/json",
         Authorization: "Bearer #{token}"
    }

    response = HTTParty.post( "http://localhost:80/v1/data/identity/get", {body: payload.to_json, headers: headers} )
end
getTranscations(appSecret, userSecret, accountID, fromDate, toDate, token, sync, addresses) click to toggle source
# File lib/dapi/products/DataAPI.rb, line 82
def getTranscations(appSecret, userSecret, accountID, fromDate, toDate, token, sync, addresses)
    payload = { 
        appSecret: appSecret,
        userSecret: userSecret,
        sync: sync,
        accountID: accountID,
        addresses: addresses
    }
    headers = { 
        "Content-Type": "application/json",
         Authorization: "Bearer #{token}"
    }

    response = HTTParty.post( "http://localhost:80/v1/data/transactions/get", {body: payload.to_json, headers: headers} )
end