-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdoc.go
25 lines (18 loc) · 788 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2018 The go-exactonline AUTHORS. All rights reserved.
//
// Use of this source code is governed by a MIT
// license that can be found in the LICENSE file.
/*
Package exactonline provides a client for using the Exact Online API.
Usage:
import "github.com/mcnijman/go-exactonline"
Note that this library doens't directly handle authentication, see [Authentication](#authentication).
We first contstruct a client and then access the various API endpoints.
client := exactonline.NewClient(nil)
ctx := context.Background()
// Get the last used division
divisionID, err := client.GetCurrentDivisionID(ctx)
// Fetch all transactions in the division
transactions, err := client.FinancialTransaction.Transactions.List(ctx, divisionID, false, nil)
*/
package exactonline