Karitham / go-lexoffice

A library to use the LexOffice api with Go.

Home Page:https://developers.lexoffice.io/docs/?shell#lexoffice-api-documentation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lexoffice API client

This is a fork of https://github.com/hostwithquantum/golexoffice.

It was customized to bit a bit more ergonomic and to use contexts.

Error handling and code was also made more idiomatic. See pkg.go.dev for docs.

The library is not 100% feature complete. I'm adding things I need. Feel free to contribute, it is very easy to add new endpoints.

Install

go get github.com/karitham/go-lexoffice

Useage

import (
    "fmt"
    "log"
    "os"

    lexoffice "github.com/karitham/go-lexoffice"
)

lc := lexoffice.NewClient(os.Getenv("LEXOFFICE_API_KEY"))
contacts, err := lc.GetContacts(context.TODO(), lexoffice.GetContactsParams{
    Name: "hitori gotoh"
})
if err != nil {
    log.Println(err.Error())
}

fmt.Println(contacts)

About

A library to use the LexOffice api with Go.

https://developers.lexoffice.io/docs/?shell#lexoffice-api-documentation

License:MIT License


Languages

Language:Go 98.4%Language:Nix 1.5%Language:Makefile 0.1%