Skip to content

Go SDK

The Go SDK is a generated Go module for backend services, workers, and command-line tools.

Module

FieldValue
Modulegithub.com/f-wallet/fwallet-go
Versionv0.1.0
Repositoryf-wallet/fwallet-go
Terminal window
go get github.com/f-wallet/fwallet-go@v0.1.0

Client setup

package main
import (
"context"
fwallet "github.com/f-wallet/fwallet-go"
)
func main() {
config := fwallet.NewConfiguration()
config.Host = "api.fwallet.co.ug"
config.Scheme = "https"
client := fwallet.NewAPIClient(config)
ctx := context.WithValue(context.Background(), fwallet.ContextAPIKeys, map[string]fwallet.APIKey{
"apiKey": {Key: "fwk_live_..."},
})
wallet, response, err := client.WalletsAPI.WalletsGetWalletsById(ctx, "wallet-id").Execute()
_, _, _ = wallet, response, err
}

Resource services

ResourceService
Adminclient.AdminAPI
Authclient.AuthAPI
Depositsclient.DepositsAPI
Developerclient.DeveloperAPI
Healthclient.HealthAPI
Journalclient.JournalAPI
Payoutsclient.PayoutsAPI
Systemclient.SystemAPI
Teamclient.TeamAPI
Tenantsclient.TenantsAPI
Transfersclient.TransfersAPI
Walletsclient.WalletsAPI

Operation builders

ResourceBuilders
AdminAdminGetAdminDashboard, AdminGetAdminFeeSchedules, AdminPostAdminFeeSchedulesByIdRules
AuthAuthGetAuthMe
DepositsDepositsPostDepositsBankSlipVerify, DepositsPostDepositsBankStatements, DepositsPostDepositsMomoWebhook
DeveloperDeveloperGetDeveloperApiKeys, DeveloperGetDeveloperApps, DeveloperGetDeveloperRequestLogs, DeveloperPatchDeveloperApiKeysByIdRestrictions, DeveloperPatchDeveloperAppsById, DeveloperPostDeveloperApiKeys, DeveloperPostDeveloperApiKeysByIdRevoke, DeveloperPostDeveloperApiKeysByIdRotate, DeveloperPostDeveloperApps
HealthHealthGetHealth
JournalJournalGetJournal, JournalGetJournalById
PayoutsPayoutsGetPayoutsCases, PayoutsPostPayouts, PayoutsPostPayoutsByCaseIdApprove, PayoutsPostPayoutsByCaseIdReject
SystemSystemGetSystemOrganizations, SystemGetSystemOverview, SystemGetSystemTransactions, SystemGetSystemWallets, SystemPostSystemOrganizations
TeamTeamGetTeam, TeamPostTeam
TenantsTenantsGetTenantsById, TenantsPostTenants, TenantsPostTenantsByIdApiKeys
TransfersTransfersPostTransfers, TransfersPostTransfersSimulateFee
WalletsWalletsGetWallets, WalletsGetWalletsById, WalletsGetWalletsLookup, WalletsPostWallets