Skip to content

satraul/gofirefly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go API client for firefly

This is the documentation of the Firefly III API. You can find accompanying documentation on the website of Firefly III itself (see below). Please report any bugs or issues. You may use the "Authorize" button to try the API below. This file was last generated on 2021-09-25T14:21:28+00:00

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.5.4
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit https://firefly-iii.org

Installation

Install the package in your project:

go get github.com/satraul/gofirefly

Add the following import:

import (
	"github.com/satraul/gofirefly"
)

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1)

Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identifield by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://demo.firefly-iii.org

Class Method HTTP request Description
AboutApi GetAbout Get /api/v1/about System information end point.
AboutApi GetCron Get /api/v1/cron/{cliToken} Cron job endpoint
AboutApi GetCurrentUser Get /api/v1/about/user Currently authenticated user endpoint.
AccountsApi DeleteAccount Delete /api/v1/accounts/{id} Permanently delete account.
AccountsApi GetAccount Get /api/v1/accounts/{id} Get single account.
AccountsApi ListAccount Get /api/v1/accounts List all accounts.
AccountsApi ListAttachmentByAccount Get /api/v1/accounts/{id}/attachments Lists all attachments.
AccountsApi ListPiggyBankByAccount Get /api/v1/accounts/{id}/piggy_banks List all piggy banks related to the account.
AccountsApi ListTransactionByAccount Get /api/v1/accounts/{id}/transactions List all transactions related to the account.
AccountsApi StoreAccount Post /api/v1/accounts Create new account.
AccountsApi UpdateAccount Put /api/v1/accounts/{id} Update existing account.
AttachmentsApi DeleteAttachment Delete /api/v1/attachments/{id} Delete an attachment.
AttachmentsApi DownloadAttachment Get /api/v1/attachments/{id}/download Download a single attachment.
AttachmentsApi GetAttachment Get /api/v1/attachments/{id} Get a single attachment.
AttachmentsApi ListAttachment Get /api/v1/attachments List all attachments.
AttachmentsApi StoreAttachment Post /api/v1/attachments Store a new attachment.
AttachmentsApi UpdateAttachment Put /api/v1/attachments/{id} Update existing attachment.
AttachmentsApi UploadAttachment Post /api/v1/attachments/{id}/upload Upload an attachment.
AutocompleteApi GetAccountsAC Get /api/v1/autocomplete/accounts Returns all accounts of the user returned in a basic auto-complete array.
AutocompleteApi GetBillsAC Get /api/v1/autocomplete/bills Returns all bills of the user returned in a basic auto-complete array.
AutocompleteApi GetBudgetsAC Get /api/v1/autocomplete/budgets Returns all budgets of the user returned in a basic auto-complete array.
AutocompleteApi GetCategoriesAC Get /api/v1/autocomplete/categories Returns all categories of the user returned in a basic auto-complete array.
AutocompleteApi GetCurrenciesAC Get /api/v1/autocomplete/currencies Returns all currencies of the user returned in a basic auto-complete array.
AutocompleteApi GetCurrenciesCodeAC Get /api/v1/autocomplete/currencies-with-code Returns all currencies of the user returned in a basic auto-complete array. This endpoint is DEPRECATED and I suggest you DO NOT use it.
AutocompleteApi GetObjectGroupsAC Get /api/v1/autocomplete/object-groups Returns all object groups of the user returned in a basic auto-complete array.
AutocompleteApi GetPiggiesAC Get /api/v1/autocomplete/piggy-banks Returns all piggy banks of the user returned in a basic auto-complete array.
AutocompleteApi GetPiggiesBalanceAC Get /api/v1/autocomplete/piggy-banks-with-balance Returns all piggy banks of the user returned in a basic auto-complete array complemented with balance information.
AutocompleteApi GetRecurringAC Get /api/v1/autocomplete/recurring Returns all recurring transactions of the user returned in a basic auto-complete array.
AutocompleteApi GetRuleGroupsAC Get /api/v1/autocomplete/rule-groups Returns all rule groups of the user returned in a basic auto-complete array.
AutocompleteApi GetRulesAC Get /api/v1/autocomplete/rules Returns all rules of the user returned in a basic auto-complete array.
AutocompleteApi GetTagAC Get /api/v1/autocomplete/tags Returns all tags of the user returned in a basic auto-complete array.
AutocompleteApi GetTransactionTypesAC Get /api/v1/autocomplete/transaction-types Returns all transaction types returned in a basic auto-complete array. English only.
AutocompleteApi GetTransactionsAC Get /api/v1/autocomplete/transactions Returns all transaction descriptions of the user returned in a basic auto-complete array.
AutocompleteApi GetTransactionsIDAC Get /api/v1/autocomplete/transactions-with-id Returns all transactions, complemented with their ID, of the user returned in a basic auto-complete array. This endpoint is DEPRECATED and I suggest you DO NOT use it.
AvailableBudgetsApi DeleteAvailableBudget Delete /api/v1/available_budgets/{id} Delete an available budget.
AvailableBudgetsApi GetAvailableBudget Get /api/v1/available_budgets/{id} Get a single available budget.
AvailableBudgetsApi ListAvailableBudget Get /api/v1/available_budgets List all available budget amounts.
AvailableBudgetsApi StoreAvailableBudget Post /api/v1/available_budgets Store a new available budget
AvailableBudgetsApi UpdateAvailableBudget Put /api/v1/available_budgets/{id} Update existing available budget, to change for example the date range of the amount or the amount itself.
BillsApi DeleteBill Delete /api/v1/bills/{id} Delete a bill.
BillsApi GetBill Get /api/v1/bills/{id} Get a single bill.
BillsApi ListAttachmentByBill Get /api/v1/bills/{id}/attachments List all attachments uploaded to the bill.
BillsApi ListBill Get /api/v1/bills List all bills.
BillsApi ListRuleByBill Get /api/v1/bills/{id}/rules List all rules associated with the bill.
BillsApi ListTransactionByBill Get /api/v1/bills/{id}/transactions List all transactions associated with the bill.
BillsApi StoreBill Post /api/v1/bills Store a new bill
BillsApi UpdateBill Put /api/v1/bills/{id} Update existing bill.
BudgetsApi DeleteBudget Delete /api/v1/budgets/{id} Delete a budget.
BudgetsApi DeleteBudgetLimit Delete /api/v1/budgets/{id}/limits/{limitId} Delete a budget limit.
BudgetsApi GetBudget Get /api/v1/budgets/{id} Get a single budget.
BudgetsApi GetBudgetLimit Get /api/v1/budgets/{id}/limits/{limitId} Get single budget limit.
BudgetsApi ListAttachmentByBudget Get /api/v1/budgets/{id}/attachments Lists all attachments of a budget.
BudgetsApi ListBudget Get /api/v1/budgets List all budgets.
BudgetsApi ListBudgetLimit Get /api/v1/budget-limits Get list of budget limits by date
BudgetsApi ListBudgetLimitByBudget Get /api/v1/budgets/{id}/limits Get all limits for a budget.
BudgetsApi ListTransactionByBudget Get /api/v1/budgets/{id}/transactions All transactions to a budget.
BudgetsApi ListTransactionByBudgetLimit Get /api/v1/budgets/{id}/limits/{limitId}/transactions List all transactions by a budget limit ID.
BudgetsApi StoreBudget Post /api/v1/budgets Store a new budget
BudgetsApi StoreBudgetLimit Post /api/v1/budgets/{id}/limits Store new budget limit.
BudgetsApi UpdateBudget Put /api/v1/budgets/{id} Update existing budget.
BudgetsApi UpdateBudgetLimit Put /api/v1/budgets/{id}/limits/{limitId} Update existing budget limit.
CategoriesApi DeleteCategory Delete /api/v1/categories/{id} Delete a category.
CategoriesApi GetCategory Get /api/v1/categories/{id} Get a single category.
CategoriesApi ListAttachmentByCategory Get /api/v1/categories/{id}/attachments Lists all attachments.
CategoriesApi ListCategory Get /api/v1/categories List all categories.
CategoriesApi ListTransactionByCategory Get /api/v1/categories/{id}/transactions List all transactions in a category.
CategoriesApi StoreCategory Post /api/v1/categories Store a new category
CategoriesApi UpdateCategory Put /api/v1/categories/{id} Update existing category.
ChartsApi GetChartAccountOverview Get /api/v1/chart/account/overview Dashboard chart with asset account balance information.
ConfigurationApi GetConfiguration Get /api/v1/configuration Get Firefly III system configuration values.
ConfigurationApi GetSingleConfiguration Get /api/v1/configuration/{name} Get a single Firefly III system configuration value
ConfigurationApi SetConfiguration Put /api/v1/configuration/{name} Update configuration value
CurrenciesApi DefaultCurrency Post /api/v1/currencies/{code}/default Make currency default currency.
CurrenciesApi DeleteCurrency Delete /api/v1/currencies/{code} Delete a currency.
CurrenciesApi DisableCurrency Post /api/v1/currencies/{code}/disable Disable a currency.
CurrenciesApi EnableCurrency Post /api/v1/currencies/{code}/enable Enable a single currency.
CurrenciesApi GetCurrency Get /api/v1/currencies/{code} Get a single currency.
CurrenciesApi GetDefaultCurrency Get /api/v1/currencies/default Get the user's default currency.
CurrenciesApi ListAccountByCurrency Get /api/v1/currencies/{code}/accounts List all accounts with this currency.
CurrenciesApi ListAvailableBudgetByCurrency Get /api/v1/currencies/{code}/available_budgets List all available budgets with this currency.
CurrenciesApi ListBillByCurrency Get /api/v1/currencies/{code}/bills List all bills with this currency.
CurrenciesApi ListBudgetLimitByCurrency Get /api/v1/currencies/{code}/budget_limits List all budget limits with this currency
CurrenciesApi ListCurrency Get /api/v1/currencies List all currencies.
CurrenciesApi ListRecurrenceByCurrency Get /api/v1/currencies/{code}/recurrences List all recurring transactions with this currency.
CurrenciesApi ListRuleByCurrency Get /api/v1/currencies/{code}/rules List all rules with this currency.
CurrenciesApi ListTransactionByCurrency Get /api/v1/currencies/{code}/transactions List all transactions with this currency.
CurrenciesApi StoreCurrency Post /api/v1/currencies Store a new currency
CurrenciesApi UpdateCurrency Put /api/v1/currencies/{code} Update existing currency.
DataApi BulkUpdateTransactions Post /api/v1/data/bulk/transactions Bulk update transaction properties. For more information, see https://docs.firefly-iii.org/firefly-iii/api/specials
DataApi DestroyData Delete /api/v1/data/destroy Endpoint to destroy user data
DataApi ExportAccounts Get /api/v1/data/export/accounts Export account data from Firefly III
DataApi ExportBills Get /api/v1/data/export/bills Export bills from Firefly III
DataApi ExportBudgets Get /api/v1/data/export/budgets Export budgets and budget amount data from Firefly III
DataApi ExportCategories Get /api/v1/data/export/categories Export category data from Firefly III
DataApi ExportPiggies Get /api/v1/data/export/piggy-banks Export piggy banks from Firefly III
DataApi ExportRecurring Get /api/v1/data/export/recurring Export recurring transaction data from Firefly III
DataApi ExportRules Get /api/v1/data/export/rules Export rule groups and rule data from Firefly III
DataApi ExportTags Get /api/v1/data/export/tags Export tag data from Firefly III
DataApi ExportTransactions Get /api/v1/data/export/transactions Export transaction data from Firefly III
InsightApi InsightExpenseAsset Get /api/v1/insight/expense/asset Insight into expenses, grouped by asset account.
InsightApi InsightExpenseBill Get /api/v1/insight/expense/bill Insight into expenses, grouped by bill.
InsightApi InsightExpenseBudget Get /api/v1/insight/expense/budget Insight into expenses, grouped by budget.
InsightApi InsightExpenseCategory Get /api/v1/insight/expense/category Insight into expenses, grouped by category.
InsightApi InsightExpenseExpense Get /api/v1/insight/expense/expense Insight into expenses, grouped by expense account.
InsightApi InsightExpenseNoBill Get /api/v1/insight/expense/no-bill Insight into expenses, without bill.
InsightApi InsightExpenseNoBudget Get /api/v1/insight/expense/no-budget Insight into expenses, without budget.
InsightApi InsightExpenseNoCategory Get /api/v1/insight/expense/no-category Insight into expenses, without category.
InsightApi InsightExpenseNoTag Get /api/v1/insight/expense/no-tag Insight into expenses, without tag.
InsightApi InsightExpenseTag Get /api/v1/insight/expense/tag Insight into expenses, grouped by tag.
InsightApi InsightExpenseTotal Get /api/v1/insight/expense/total Insight into total expenses.
InsightApi InsightIncomeAsset Get /api/v1/insight/income/asset Insight into income, grouped by asset account.
InsightApi InsightIncomeCategory Get /api/v1/insight/income/category Insight into income, grouped by category.
InsightApi InsightIncomeNoCategory Get /api/v1/insight/income/no-category Insight into income, without category.
InsightApi InsightIncomeNoTag Get /api/v1/insight/income/no-tag Insight into income, without tag.
InsightApi InsightIncomeRevenue Get /api/v1/insight/income/revenue Insight into income, grouped by revenue account.
InsightApi InsightIncomeTag Get /api/v1/insight/income/tag Insight into income, grouped by tag.
InsightApi InsightIncomeTotal Get /api/v1/insight/income/total Insight into total income.
InsightApi InsightTransferCategory Get /api/v1/insight/transfer/category Insight into transfers, grouped by category.
InsightApi InsightTransferNoCategory Get /api/v1/insight/transfer/no-category Insight into transfers, without category.
InsightApi InsightTransferNoTag Get /api/v1/insight/transfer/no-tag Insight into expenses, without tag.
InsightApi InsightTransferTag Get /api/v1/insight/transfer/tag Insight into transfers, grouped by tag.
InsightApi InsightTransferTotal Get /api/v1/insight/transfer/total Insight into total transfers.
InsightApi InsightTransfers Get /api/v1/insight/transfer/asset Insight into transfers, grouped by account.
LinksApi DeleteLinkType Delete /api/v1/link_types/{id} Permanently delete link type.
LinksApi DeleteTransactionLink Delete /api/v1/transaction_links/{id} Permanently delete link between transactions.
LinksApi GetLinkType Get /api/v1/link_types/{id} Get single a link type.
LinksApi GetTransactionLink Get /api/v1/transaction_links/{id} Get a single link.
LinksApi ListLinkType Get /api/v1/link_types List all types of links.
LinksApi ListTransactionByLinkType Get /api/v1/link_types/{id}/transactions List all transactions under this link type.
LinksApi ListTransactionLink Get /api/v1/transaction_links List all transaction links.
LinksApi StoreLinkType Post /api/v1/link_types Create a new link type
LinksApi StoreTransactionLink Post /api/v1/transaction_links Create a new link between transactions
LinksApi UpdateLinkType Put /api/v1/link_types/{id} Update existing link type.
LinksApi UpdateTransactionLink Put /api/v1/transaction_links/{id} Update an existing link between transactions.
ObjectGroupsApi DeleteObjectGroup Delete /api/v1/object_groups/{id} Delete a object group.
ObjectGroupsApi GetObjectGroup Get /api/v1/object_groups/{id} Get a single object group.
ObjectGroupsApi ListBillByObjectGroup Get /api/v1/object_groups/{id}/bills List all bills with this object group.
ObjectGroupsApi ListObjectGroups Get /api/v1/object_groups List all oject groups.
ObjectGroupsApi ListPiggyBankByObjectGroup Get /api/v1/object_groups/{id}/piggy_banks List all piggy banks related to the object group.
ObjectGroupsApi UpdateObjectGroup Put /api/v1/object_groups/{id} Update existing object group.
PiggyBanksApi DeletePiggyBank Delete /api/v1/piggy_banks/{id} Delete a piggy bank.
PiggyBanksApi GetPiggyBank Get /api/v1/piggy_banks/{id} Get a single piggy bank.
PiggyBanksApi ListAttachmentByPiggyBank Get /api/v1/piggy_banks/{id}/attachments Lists all attachments.
PiggyBanksApi ListEventByPiggyBank Get /api/v1/piggy_banks/{id}/events List all events linked to a piggy bank.
PiggyBanksApi ListPiggyBank Get /api/v1/piggy_banks List all piggy banks.
PiggyBanksApi StorePiggyBank Post /api/v1/piggy_banks Store a new piggy bank
PiggyBanksApi UpdatePiggyBank Put /api/v1/piggy_banks/{id} Update existing piggy bank.
PreferencesApi GetPreference Get /api/v1/preferences/{name} Return a single preference.
PreferencesApi ListPreference Get /api/v1/preferences List all users preferences.
PreferencesApi StorePreference Post /api/v1/preferences Store a new preference for this user.
PreferencesApi UpdatePreference Put /api/v1/preferences/{name} Update preference
RecurrencesApi DeleteRecurrence Delete /api/v1/recurrences/{id} Delete a recurring transaction.
RecurrencesApi GetRecurrence Get /api/v1/recurrences/{id} Get a single recurring transaction.
RecurrencesApi ListRecurrence Get /api/v1/recurrences List all recurring transactions.
RecurrencesApi ListTransactionByRecurrence Get /api/v1/recurrences/{id}/transactions List all transactions created by a recurring transaction.
RecurrencesApi StoreRecurrence Post /api/v1/recurrences Store a new recurring transaction
RecurrencesApi UpdateRecurrence Put /api/v1/recurrences/{id} Update existing recurring transaction.
RuleGroupsApi DeleteRuleGroup Delete /api/v1/rule_groups/{id} Delete a rule group.
RuleGroupsApi FireRuleGroup Post /api/v1/rule_groups/{id}/trigger Fire the rule group on your transactions.
RuleGroupsApi GetRuleGroup Get /api/v1/rule_groups/{id} Get a single rule group.
RuleGroupsApi ListRuleByGroup Get /api/v1/rule_groups/{id}/rules List rules in this rule group.
RuleGroupsApi ListRuleGroup Get /api/v1/rule_groups List all rule groups.
RuleGroupsApi StoreRuleGroup Post /api/v1/rule_groups Store a new rule group.
RuleGroupsApi TestRuleGroup Get /api/v1/rule_groups/{id}/test Test which transactions would be hit by the rule group. No changes will be made.
RuleGroupsApi UpdateRuleGroup Put /api/v1/rule_groups/{id} Update existing rule group.
RulesApi DeleteRule Delete /api/v1/rules/{id} Delete an rule.
RulesApi FireRule Post /api/v1/rules/{id}/trigger Fire the rule on your transactions.
RulesApi GetRule Get /api/v1/rules/{id} Get a single rule.
RulesApi ListRule Get /api/v1/rules List all rules.
RulesApi StoreRule Post /api/v1/rules Store a new rule
RulesApi TestRule Get /api/v1/rules/{id}/test Test which transactions would be hit by the rule. No changes will be made.
RulesApi UpdateRule Put /api/v1/rules/{id} Update existing rule.
SearchApi SearchAccounts Get /api/v1/search/accounts Search for accounts
SearchApi SearchTransactions Get /api/v1/search/transactions Search for transactions
SummaryApi GetBasicSummary Get /api/v1/summary/basic Returns basic sums of the users data.
TagsApi DeleteTag Delete /api/v1/tags/{tag} Delete an tag.
TagsApi GetTag Get /api/v1/tags/{tag} Get a single tag.
TagsApi ListAttachmentByTag Get /api/v1/tags/{tag}/attachments Lists all attachments.
TagsApi ListTag Get /api/v1/tags List all tags.
TagsApi ListTransactionByTag Get /api/v1/tags/{tag}/transactions List all transactions with this tag.
TagsApi StoreTag Post /api/v1/tags Store a new tag
TagsApi UpdateTag Put /api/v1/tags/{tag} Update existing tag.
TransactionsApi DeleteTransaction Delete /api/v1/transactions/{id} Delete a transaction.
TransactionsApi DeleteTransactionJournal Delete /api/v1/transaction-journals/{id} Delete split from transaction
TransactionsApi GetTransaction Get /api/v1/transactions/{id} Get a single transaction.
TransactionsApi GetTransactionByJournal Get /api/v1/transaction-journals/{id} Get a single transaction, based on one of the underlying transaction journals (transaction splits).
TransactionsApi ListAttachmentByTransaction Get /api/v1/transactions/{id}/attachments Lists all attachments.
TransactionsApi ListEventByTransaction Get /api/v1/transactions/{id}/piggy_bank_events Lists all piggy bank events.
TransactionsApi ListLinksByJournal Get /api/v1/transaction-journals/{id}/links Lists all the transaction links for an individual journal (individual split).
TransactionsApi ListTransaction Get /api/v1/transactions List all the user's transactions.
TransactionsApi StoreTransaction Post /api/v1/transactions Store a new transaction
TransactionsApi UpdateTransaction Put /api/v1/transactions/{id} Update existing transaction.
UsersApi DeleteUser Delete /api/v1/users/{id} Delete a user.
UsersApi GetUser Get /api/v1/users/{id} Get a single user.
UsersApi ListUser Get /api/v1/users List all users.
UsersApi StoreUser Post /api/v1/users Store a new user
UsersApi UpdateUser Put /api/v1/users/{id} Update an existing user's information.
WebhooksApi DeleteWebhook Delete /api/v1/webhooks/{id} Delete a webhook.
WebhooksApi DeleteWebhookMessage Delete /api/v1/webhooks/{id}/messages/{messageId} Delete a webhook message.
WebhooksApi DeleteWebhookMessageAttempt Delete /api/v1/webhooks/{id}/messages/{messageId}/attempts/{attemptId} Delete a webhook attempt.
WebhooksApi GetSingleWebhookMessage Get /api/v1/webhooks/{id}/messages/{messageId} Get a single message from a webhook.
WebhooksApi GetSingleWebhookMessageAttempt Get /api/v1/webhooks/{id}/messages/{messageId}/attempts/{attemptId} Get a single failed attempt from a single webhook message.
WebhooksApi GetWebhook Get /api/v1/webhooks/{id} Get a single webhook.
WebhooksApi GetWebhookMessageAttempts Get /api/v1/webhooks/{id}/messages/{messageId}/attempts Get all the failed attempts of a single webhook message.
WebhooksApi GetWebhookMessages Get /api/v1/webhooks/{id}/messages Get all the messages of a single webhook.
WebhooksApi ListWebhook Get /api/v1/webhooks List all webhooks.
WebhooksApi StoreWebhook Post /api/v1/webhooks Store a new webhook
WebhooksApi SubmitWebook Post /api/v1/webhooks/{id}/submit Submit messages for a webhook.
WebhooksApi UpdateWebhook Put /api/v1/webhooks/{id} Update existing webhook.

Documentation For Models

Documentation For Authorization

firefly_iii_auth

Example

auth := context.WithValue(context.Background(), sw.ContextAccessToken, "ACCESSTOKENSTRING")
r, err := client.Service.Operation(auth, args)

Or via OAuth2 module to automatically refresh tokens and perform user authentication.

import "golang.org/x/oauth2"

/* Perform OAuth2 round trip request and obtain a token */

tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token)
auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource)
r, err := client.Service.Operation(auth, args)

local_bearer_auth

  • Type: HTTP Bearer token authentication

Example

auth := context.WithValue(context.Background(), sw.ContextAccessToken, "BEARERTOKENSTRING")
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

james@firefly-iii.org

About

Go API client for Firefly III. Generated with https://openapi-generator.tech

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages