schmorrison / Zoho

Golang API for Zoho services
MIT License
35 stars 34 forks source link

add option to create item #39

Closed sfunkhouser closed 2 years ago

sfunkhouser commented 2 years ago

Adds the ability to use the https://invoice.zoho.com/api/v3/items endpoint to create a new item

sfunkhouser commented 2 years ago

Looks good. Have you tested?

And thanks for the contribution!

Yep, works on something I was doing with a simple:

    req := invoice.CreateItemRequest{
        Name:  "A unique name",
        Rate: "10",
        Unit: "Hourly",
    }

    id, err := zc.createZohoItemID(req)
    if err != nil {
        return "", err
    }
schmorrison commented 2 years ago

Tagged v1.0.5