Go SDK
The Go SDK is a generated Go module for backend services, workers, and command-line tools.
Module
| Field | Value |
|---|---|
| Module | github.com/f-wallet/fwallet-go |
| Version | v0.1.0 |
| Repository | f-wallet/fwallet-go |
go get github.com/f-wallet/fwallet-go@v0.1.0Client 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
| Resource | Service |
|---|---|
| Admin | client.AdminAPI |
| Auth | client.AuthAPI |
| Deposits | client.DepositsAPI |
| Developer | client.DeveloperAPI |
| Health | client.HealthAPI |
| Journal | client.JournalAPI |
| Payouts | client.PayoutsAPI |
| System | client.SystemAPI |
| Team | client.TeamAPI |
| Tenants | client.TenantsAPI |
| Transfers | client.TransfersAPI |
| Wallets | client.WalletsAPI |
Operation builders
| Resource | Builders |
|---|---|
| Admin | AdminGetAdminDashboard, AdminGetAdminFeeSchedules, AdminPostAdminFeeSchedulesByIdRules |
| Auth | AuthGetAuthMe |
| Deposits | DepositsPostDepositsBankSlipVerify, DepositsPostDepositsBankStatements, DepositsPostDepositsMomoWebhook |
| Developer | DeveloperGetDeveloperApiKeys, DeveloperGetDeveloperApps, DeveloperGetDeveloperRequestLogs, DeveloperPatchDeveloperApiKeysByIdRestrictions, DeveloperPatchDeveloperAppsById, DeveloperPostDeveloperApiKeys, DeveloperPostDeveloperApiKeysByIdRevoke, DeveloperPostDeveloperApiKeysByIdRotate, DeveloperPostDeveloperApps |
| Health | HealthGetHealth |
| Journal | JournalGetJournal, JournalGetJournalById |
| Payouts | PayoutsGetPayoutsCases, PayoutsPostPayouts, PayoutsPostPayoutsByCaseIdApprove, PayoutsPostPayoutsByCaseIdReject |
| System | SystemGetSystemOrganizations, SystemGetSystemOverview, SystemGetSystemTransactions, SystemGetSystemWallets, SystemPostSystemOrganizations |
| Team | TeamGetTeam, TeamPostTeam |
| Tenants | TenantsGetTenantsById, TenantsPostTenants, TenantsPostTenantsByIdApiKeys |
| Transfers | TransfersPostTransfers, TransfersPostTransfersSimulateFee |
| Wallets | WalletsGetWallets, WalletsGetWalletsById, WalletsGetWalletsLookup, WalletsPostWallets |