avatax-v2-go

module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2022 License: MIT

README

avatax-v2-go

Go SDK for Avalara's Avatax V2 Rest API

The code was generated with go-swagger (See the script under ./scripts).

The client should support 3 types of authentication. Check here for additional details.

Basic Example

basicAuth := httptransport.BasicAuth("username", "password")
r := httptransport.New("rest.avatax.com", "/api/v2", client.DefaultSchemes)
r.DefaultAuthentication = basicAuth
r.Producers["application/*+json"] = runtime.JSONProducer()
c := client.New(r, strfmt.Default)

ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()

res, err := c.Transactions.GetTransactionByID(&transactions.GetTransactionByIDParams{
    ID:      1000,
    Context: ctx,
}, nil)

if err != nil {
    log.Fatal(err)
}

log.Printf("%v", *res)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL