This project is a React Native wrapper for the Free Mobile API, providing seamless integration and interaction with Free Mobile services, managed by Laystral.
To install the package, use the following command:
npm install reefmobile-api
Here's a basic example of how to use the wrapper in a React Native application:
import {
LoginWithoutTrustedUuid,
LoginWithTrustedUuid,
VerifySMSCode,
FetchCompleteUserData,
FetchPeriodUsageDetails,
FetchInvoiceData,
FetchUnpaidInvoices,
FetchPlanAndDiscountInfo
} from 'freemobileapi';
// Example usage
const login = async () => {
const response = await LoginWithoutTrustedUuid('your_login', 'your_password');
const data = await response.json();
console.log(data);
};
LoginWithoutTrustedUuid(login: string, password: string)
LoginWithTrustedUuid(login: string, password: string, trustedUuid: string)
VerifySMSCode(otpID: string, codeOtp: string, isTrusted: boolean, token: string)
FetchCompleteUserData(login: string, token: string)
FetchPeriodUsageDetails(login: string, token: string)
FetchInvoiceData(login: string, token: string)
FetchUnpaidInvoices(login: string, token: string)
FetchPlanAndDiscountInfo(login: string, token: string)
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
This project is licensed under the GPL-3.0 License - see the LICENSE file for details.
For more details, visit the repository.