Introduction
Welcome to the Early Salary iOS SDK documentation. This documentation provides detailed information and guidelines on integrating the Early Salary iOS SDK into your iOS applications. It will help you understand the functionality of the SDK, API references, and provide step-by-step instructions for a seamless integration process.
Installation
To install the Early Salary iOS SDK via Cocoapods, follow the steps below:
pod 'earlySalarySDK'
Configuration
Before you start using the Early Salary iOS SDK, you need to configure it in your project. Follow the steps below:
- Add the EarlySalary.plist file to your project.
- In the AppDelegate.swift file, import the EarlySalary framework and initialize it using your API credentials.
Usage
Once you have completed the SDK configuration, you can start using the Early Salary iOS SDK in your application. This section provides guidelines on various features and functionalities of the SDK.
API Reference
The Early Salary iOS SDK provides several API methods that allow you to interact with the Early Salary services. Below is a list of available API methods with descriptions:
- initializeSDK(userId: String, apiKey: String): Initializes the Early Salary SDK with the provided user ID and API key.
- getUserInfo(completion: @escaping (UserInfo?, Error?) -> Void): Retrieves the user information from the Early Salary server.
- applyLoan(loanAmount: Double, completion: @escaping (Loan?, Error?) -> Void): Applies for a loan with the specified amount and returns the loan details.
- getLoanStatus(completion: @escaping (LoanStatus?, Error?) -> Void): Retrieves the current status of the applied loan.
- logout(completion: @escaping (Error?) -> Void): Logs out the user from the Early Salary session.
Frequently Asked Questions
Here are some frequently asked questions about the Early Salary iOS SDK:
How to integrate the SDK into my iOS application?
To integrate the Early Salary iOS SDK into your iOS application, follow the step-by-step integration guide provided in this documentation.
What API credentials do I need to use the SDK?
You need to obtain API credentials from Early Salary to configure and use the SDK. Contact Early Salary support for further assistance.
How can I check the status of the loan application?
You can use the getLoanStatus
API method provided by the SDK to check the current status of the loan application.
Conclusion
Congratulations! You have successfully integrated the Early Salary iOS SDK into your iOS application. You can now take advantage of various features provided by the SDK. If you have any further queries or require assistance, please contact Early Salary support for help.