1.0.0 • Published 12 months ago

evolve-credit v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

Evolve Credit SDK

Easily integrate lending, savings, and recovery services.

Evolve Credit SDK

npm version

The Evolve Credit SDK allows developers to easily integrate lending, savings, and recovery services provided by the Evolve Credit platform into their applications.

Installation

You can install the Evolve Credit SDK using npm:

npm install evolve-credit-sdk
const EvolveCreditSDK = require('evolve-credit-sdk');

const sdk = new EvolveCreditSDK('your-api-key', 'https://api.evolvecredit.co');

Use the SDK methods to interact with the Evolve Credit API 🚀🚀

sdk.getUser(userId)
  .then(user => {
    // handle user data
  })
  .catch(error => {
    // handle errors
  });

API Reference

Retrieve user information

  GET ${this.apiUrl}/users/${userId}
ParameterTypeDescription
getUser(userId)stringRequired. Your API key

Create a loan application

  GET ${this.apiUrl}/loan-applications
ParameterTypeDescription
createLoanApplication(userId, loanAmount)string, numberRequired. userId, loanAmount

Update user savings account

  GET ${this.apiUrl}/savings-accounts/${userId}
ParameterTypeDescription
updateSavingsAccount(userId, amount)string, numberRequired. userId, loanAmount

Recover a loan

  GET ${this.apiUrl}/loans/${loanId}/recover
ParameterTypeDescription
recoverLoan(loanId, amount)string, numberRequired. userId, loanAmount

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

Please adhere to this project's code of conduct - What it would look like if Evolve released an SDK.

1.0.0

12 months ago