Malsch-Solutions / fastbill-go-sdk

golang sdk for the api of https://www.fastbill.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fastbill-go-sdk

Checks CodeQL codecov Go Report Card Go Reference

golang sdk for the api of https://www.fastbill.com/

Requirements

  • Go 1.19 or higher

Usage

Add the sdk package import statement

import "github.com/malsch-solutions/fastbill-go-sdk"

Initialize your fastbill service

fastbillService := service.NewService(os.Getenv("FASTBILL_EMAIL"), os.Getenv("FASTBILL_API_KEY"))

Create the desired client for example for customers

customerClient := customer.NewCustomerClient(fastbillService)

Call the method of your choice

customers, err := customerClient.Get(&parameter.Parameter{
    Limit:  10,
    Offset: 0,
}, nil)

API Coverage

  • Customers
  • Contacts
  • Estimates
  • Invoices
  • Items
  • Recurring invoices
  • Revenues
  • Expenses
  • Products (article)
  • Projects
  • Work times (time)
  • Documents
  • Templates
  • Webhooks

About

golang sdk for the api of https://www.fastbill.com/

License:MIT License


Languages

Language:Go 100.0%