Class Object Details¶
-
class
main.
Session
(API_KEY)¶ -
createUser
(email='', mobile='')¶ Creates User.
Creates user and returns User object.
Parameters: Returns: Returns the created User class object.
Return type: User (obj)
-
deleteUser
(userID)¶ Delete user.
Parameters: userID (str) – User’s ID. Returns: Indicates success Return type: True
-
getInstitutions
()¶ Fetches institutions
Fetches user and returns dict of institutions.
Parameters: None – Returns: Returns dict of institutions. Return type: dict
-
getInstitutionsJSON
()¶ Fetches institutions JSON
Fetches user and returns raw json of institutions.
Parameters: None – Returns: Returns raw json of institutions. Return type: json
-
-
class
main.
User
(user_json, header)¶ -
addConnection
(loginID='', password='', institutionID='')¶ Add’s bank account connection to user.
Returns a job object that monitor’s API progress.
Parameters: Returns: Returns Job object that monitor’s connection progress
Return type: Job (obj)
-
getAccounts
(input_filter=None)¶ Fetches all user accounts
Parameters: None – Returns: Returns list of Account objects linked with user. Return type: list
-
getConnections
(input_filter=None)¶ Fetches list of user’s connections.
Parameters: None – Returns: Returns list of Connection objects Return type: list
-
getExpenses
()¶ Fetches user’s expenses summary.
Fetches user’s expenses summary and returns an Expense object.
Parameters: None – Returns: Returns the user’s expenses in form of Expense class object. Return type: Expense (obj)
-
getIncome
()¶ Fetches user’s income summary.
Fetches user’s income summary and returns an Income object.
Parameters: None – Returns: Returns the user’s income in form of Income class object. Return type: Income (obj)
-
getTransaction
(transactionID)¶ Fetches transaction.
Fetches transactions and returns list of Transaction objects.
Parameters: transactionID – transactionID string Returns: Returns list of Transaction objects. (max: 500) Return type: list
-
getTransactions
(input_filter=None)¶ Fetches transactions.
Fetches transactions and returns list of Transaction objects.
Parameters: None – Returns: Returns list of Transaction objects. (max: 500) Return type: list
-
refreshAllConnections
()¶ Refreshes all of user’s connections.
Ensure’s most up-to-date information.
Parameters: None – Returns: returns list of Job objects that monitor connections’ update Return type: list
-
refreshConnection
(connectionID)¶ Refreshes specific connection, ensuring most up-to-date information.
Parameters: connectionID (str) – ID of connection to be refreshed. Returns: Returns Job object to monitor progress Return type: Job (obj)
-
-
class
main.
Connection
(connect_json, header)¶ -
getAccounts
(input_filter=None)¶ Fetches accounts linked with connection.
Returns a list of Account objects.
Parameters: None – Returns: Returns a list of Account objects linked with the connection. Return type: list
-
getTransactions
(input_filter=None)¶ Fetches all transactions linked with connection.
Parameters: None – Returns: Returns a list of Transaction objects linked with connection. Return type: list
-
-
class
main.
Account
(account_json, header)¶
-
class
main.
Transaction
(transact_json, header)¶
-
class
Job.
Job
(job_json, header)¶ -
getStatus
()¶ Gets status of job
Parameters: None – Returns: Returns dict of job status Return type: dict
-
isComplete
()¶ Checks if job is fully complete.
Parameters: None – Returns: Returns if job is complete. Return type: bool
-
refresh
()¶ Refreshes job status
Parameters: None – Returns: Indicate success. Return type: True
-
-
class
Income.
Income
(income_json, header)¶
-
class
Expense.
Expense
(expense_json, header)¶