Versions in this module Expand all Collapse all v1 v1.0.0 Jan 14, 2019 Changes in this version + type APIClient struct + Account *AccountService + Client *ClientService + Contact *ContactService + Entry *EntryService + Expense *ExpenseService + ExpenseCategory *ExpenseCategoryService + Invoice *InvoiceService + Payment *PaymentService + People *PersonService + Project *ProjectService + Task *TaskService + TaskAssignment *TaskAssignmentService + func NewAPIClientWithBasicAuth(username, password, subdomain string) (c *APIClient) + func NewCachingAPIClientWithBasicAuth(username, password, subdomain string, cacheInterval time.Duration) (c *APIClient) + func (c *APIClient) GetJSON(path string) (jsonResponse []byte, err error) + func (c *APIClient) PostJSON(path string, v interface{}) error + func (c *APIClient) PutJSON(path string, v interface{}) error + type Account struct + Company Company + Person Person + type AccountService struct + func (a *AccountService) Find() (Account, error) + type CategoryResponse struct + type Client struct + Active bool + CreatedAt time.Time + Currency string + CurrencySymbol string + DefaultInvoiceTimeframe string + Details string + HighriseID int + ID int + LastInvoiceKind string + Name string + UpdatedAt time.Time + type ClientResponse struct + type ClientService struct + func (c *ClientService) Find(clientID int) (ClientResponse, error) + func (c *ClientService) List() ([]ClientResponse, error) + type Company struct + Active bool + BaseURI string + Clock string + ColorScheme string + DecimalSymbol string + FullDomain string + Modules Modules + Name string + ThousandsSeperator string + TimeFormat string + WeekStartDay string + type Contact struct + ClientID int + CreatedAt Date + Email string + Fax string + FirstName string + ID int + LastName string + MobilePhone string + OfficePhone string + Title string + UpdatedAt Date + type ContactResponse struct + type ContactService struct + func (c *ContactService) Find(contactID int) (ContactResponse, error) + func (c *ContactService) List() ([]ContactResponse, error) + type Date struct + func (harvestDate *Date) UnmarshalJSON(input []byte) (err error) + func (harvestDate Date) MarshalJSON() ([]byte, error) + type Entry struct + CreatedAt time.Time + Hours float64 + ID int + InvoiceID int + IsBilled bool + IsClosed bool + Notes string + ProjectID int + SpentAt Date + TaskID int + UpdatedAt time.Time + UserID int + type EntryResponse struct + type EntryService struct + func (c *EntryService) ListPerson(personID int, from time.Time, to time.Time) ([]EntryResponse, error) + func (c *EntryService) ListProject(projectID int, from time.Time, to time.Time) ([]EntryResponse, error) + type Expense struct + Billable bool + ExpenseCategoryID int + ID int + IsLocked bool + Notes string + ProjectID int + SpentAt Date + TotalCost float64 + Units float64 + type ExpenseCategory struct + CreatedAt time.Time + Deactivated bool + ID int + Name string + UnitName string + UnitPrice float64 + UpdatedAt time.Time + type ExpenseCategoryService struct + func (c *ExpenseCategoryService) Find(catID int) (CategoryResponse, error) + func (c *ExpenseCategoryService) List() ([]CategoryResponse, error) + type ExpenseResponse struct + type ExpenseService struct + func (c *ExpenseService) Add(e Expense) error + func (c *ExpenseService) Find(expID int) (ExpenseResponse, error) + func (c *ExpenseService) ForProject(projID int, from, to time.Time) ([]ExpenseResponse, error) + func (c *ExpenseService) List() ([]ExpenseResponse, error) + func (c *ExpenseService) Update(e Expense) error + type Invoice struct + Amount float64 + CSVLineItems string + ClientID int + ClientKey string + CreatedAt time.Time + CreatedByID int + Currency string + Discount float64 + DiscountAmount float64 + DueAmount float64 + DueAt Date + DueAtHumanFormat string + EstimateID int + ID int + IssuedAt Date + Notes string + Number string + PeriodEnd Date + PeriodStart Date + PurchaseOrder string + RecurringInvoiceID int + RetainerID int + State string + Subject string + Tax float64 + Tax2 float64 + TaxAmount float64 + TaxAmount2 float64 + UpdatedAt time.Time + func (i *Invoice) LineItems() []map[string]string + type InvoiceResponse struct + type InvoiceService struct + func (i *InvoiceService) Find(invoiceID int) (InvoiceResponse, error) + func (i *InvoiceService) List() ([]InvoiceResponse, error) + type Modules struct + Approval bool + Estimates bool + Expenses bool + Invoices bool + type Payment struct + Amount float64 + Authorization *int + CreatedAt Date + ID int + InvoiceID int + Notes string + PaidAt Date + PayPalTransactionID *int + PaymentGatewayID *int + RecordedBy string + RecordedByEmail string + type PaymentResponse struct + type PaymentService struct + func (p *PaymentService) ListInvoice(invoiceID int) ([]PaymentResponse, error) + type Person struct + CostRate float64 + CreatedAt time.Time + DefaultExpenseCategoryID int + DefaultExpenseProjectID int + DefaultHourlyRate float64 + DefaultTaskID int + DefaultTimeProjectID int + Department string + Email string + FirstName string + HasAccessToAllFutureProjects bool + ID int + IdentityURL string + IsActive bool + IsAdmin bool + IsContractor bool + LastName string + OpensocialIdentifier string + Telephone string + Timezone string + UpdatedAt time.Time + WantsNewsletter bool + WantsWeeklyDigest bool + WeeklyDigestSentOn string + type PersonResponse struct + type PersonService struct + func (c *PersonService) Find(personID int) (PersonResponse, error) + func (c *PersonService) List() ([]PersonResponse, error) + type Project struct + Active bool + BillBy string + Billable bool + Budget float64 + BudgetBy string + ClientID int + Code string + CostBudget float64 + CostBudgetIncludeExpenses bool + CreatedAt Date + EndsOn Date + Estimate float64 + EstimateBy string + Fee float64 + HintEarliestRecordAt Date + HintLatestRecordAt Date + HourlyRate float64 + ID int + IsFixedFee bool + Name string + Notes string + NotifyWhenOverBudget float64 + OverBudgetNotificationPercentage float64 + OverBudgetNotifiedAt Date + ShowBudgetToAll bool + StartsOn Date + UpdatedAt Date + type ProjectResponse struct + type ProjectService struct + func (c *ProjectService) Find(projectID int) (ProjectResponse, error) + func (c *ProjectService) List() ([]ProjectResponse, error) + type Service struct + type Task struct + BillableByDefault bool + CreatedAt Date + Deactivated bool + DefaultHourlyRate float64 + ID int + IsDefault bool + Name string + UpdateAt Date + type TaskAssignment struct + Billable bool + CreatedAt time.Time + HourlyRate float64 + ID int + IsActive bool + Project struct{ ... } + Task struct{ ... } + UpdateAt time.Time + type TaskAssignmentResponse struct + type TaskAssignmentService struct + func (c *TaskAssignmentService) ListByProject(projectID int) ([]TaskAssignmentResponse, error) + type TaskResponse struct + type TaskService struct + func (c *TaskService) Find(taskID int) (TaskResponse, error) + func (c *TaskService) List() ([]TaskResponse, error)