func (c *Client) GetTimeEntries(queryParams string) ([]TimeEntry, error) {
	req, err := c.getRequest("/time_entries.json", queryParams)
	if err != nil {
		return nil, err
	}
	var response timeEntriesResponse
	res, err := c.Do(req, &response)
	if err != nil {
		return nil, err
	}
	switch res.StatusCode {
	case http.StatusOK:
		return response.TimeEntries, nil
	default:
		return nil, fmt.Errorf("cannot get time entries (status %v)", res.StatusCode)
	}
}
GetTimeEntries fetches time entries for requested queryParams
package client
import (
	"encoding/json"
	"errors"
	"fmt"
	"net/http"
	"time"
	"github.com/jedib0t/go-pretty/table"
	"github.com/mightymatth/arcli/utils"
)
type TimeEntry struct {
	ID        int64     `json:"id"`
	Project   entity    `json:"project"`
	Issue     entityID  `json:"issue"`
	User      entity    `json:"user"`
	Activity  entity    `json:"activity"`
	Hours     float64   `json:"hours"`
	Comments  string    `json:"comments"`
	SpentOn   DateTime  `json:"spent_on"`
	CreatedOn time.Time `json:"created_on"`
	UpdatedOn time.Time `json:"updated_on"`
}
func (te TimeEntry) PrintTable() {
	t := utils.NewTable()
	t.AppendHeader(table.Row{"Entry ID", "Project Name", "Issue ID", "Hours", "Activity", "Comment", "Spent On"})
	t.AppendRow(table.Row{fmt.Sprint(te.ID), te.Project.Name, te.Issue.String(),
		fmt.Sprint(te.Hours), te.Activity.Name, te.Comments, te.SpentOn.Format(DayDateFormat)})
	t.Render()
}
type timeEntriesResponse struct {
	TimeEntries []TimeEntry `json:"time_entries"`
}
type timeEntryResponse struct {
	TimeEntry TimeEntry `json:"time_entry"`
}