Function Calls

This page helps to determine the function names in Flutter for getting and posting data.

User Management

  • Get Users: getUsers()

  • Get User by Id: getUsersById(int userId)

  • Create a new User: createUser(Map<String, dynamic> userData)

  • Update user profile: updateUserProfile(int userId, Map<String, dynamic> updatedData)

  • Delete user: deleteUser(int userId)

Authentication

  • User login: login(String email, String password)

  • User logout: logout()

  • User registration: register(Map<String, dynamic> registrationData)

  • Send email verification: sendEmailVerification(int userId)

  • Verify email: verifyEmail(int userId, String verificationCode)

Wallet Management

  • Get all wallets for user: getUserWallets(int userId)

  • Create new wallet: createWallet(int userId, String currency)

  • Get wallet by ID: getWalletById(int walletId)

  • Update wallet balance: updateWalletBalance(int walletId, double newBalance)

Transactions

  • Get transactions for user: getUserTransactions(int userId)

  • Create new transaction: createTransaction(Map<String, dynamic> transactionData)

  • Get transaction by ID: getTransactionById(int transactionId)

Currency Conversion

  • Get conversion rate: getConversionRate(String fromCurrency, String toCurrency)

  • Convert currency: convertCurrency(int userId, Map<String, dynamic> conversionData)

Bill Payments

  • Get all bill payments for user: getUserBillPayments(int userId)

  • Create new bill payment: createBillPayment(Map<String, dynamic> billPaymentData)

  • Get bill payment by ID: getBillPaymentById(int billPaymentId)

Contacts (Cashcrew)

  • Get all contacts for user: getUserContacts(int userId)

  • Add new contact: addContact(int userId, Map<String, dynamic> contactData)

  • Get contact by ID: getContactById(int contactId)

  • Delete contact: deleteContact(int contactId)

Cards

  • Get all cards for user: getUserCards(int userId)

  • Create new card: createCard(int userId, Map<String, dynamic> cardData)

  • Get card by ID: getCardById(int cardId)

  • Update card funding: updateCardFunding(int cardId, double amount)

  • Delete card: deleteCard(int cardId)

Notifications

  • Get all notifications for user: getUserNotifications(int userId)

  • Create new notification: createNotification(int userId, Map<String, dynamic> notificationData)

  • Mark notification as read: markNotificationAsRead(int notificationId)

Support Chats

  • Get support chats for user: getUserSupportChats(int userId)

  • Create new support chat: createSupportChat(int userId, Map<String, dynamic> chatData)

  • Update support chat: updateSupportChat(int chatId, Map<String, dynamic> response)

Referrals

  • Get referrals for user: getUserReferrals(int userId)

  • Create new referral: createReferral(int userId, Map<String, dynamic> referralData)

KYC Verification

  • Get KYC status for user: getUserKYCStatus(int userId)

  • Submit KYC document: submitKYC(int userId, Map<String, dynamic> kycData)

  • Get KYC by ID: getKYCById(int kycId)

Email Verification

  • Get email verification status for user: getUserEmailVerificationStatus(int userId)

  • Resend email verification: resendEmailVerification(int userId)

  • Verify email: verifyUserEmail(int userId, String verificationCode)

These Function names can be used as a guideline when implementing API calls in your flutter app to interact with the backend services.

Last updated