Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API is used for interacting with the Zoho Books API
func (*API) GetCurrentUser ¶
func (c *API) GetCurrentUser() (data CurrentUserResponse, err error)
GetCurrentUser will return the currently authenticated users https://www.zoho.com/books/api/v3/users/#get-current-user
type CurrentUserResponse ¶
type CurrentUserResponse struct { Code int `json:"code,omitempty"` Message string `json:"message,omitempty"` User struct { UserID string `json:"user_id,omitempty"` Name string `json:"name,omitempty"` EmailIds []struct { IsSelected bool `json:"is_selected,omitempty"` Email string `json:"email,omitempty"` } `json:"email_ids,omitempty"` Status string `json:"status,omitempty"` UserRole string `json:"user_role,omitempty"` UserType string `json:"user_type,omitempty"` RoleID string `json:"role_id,omitempty"` PhotoURL string `json:"photo_url,omitempty"` Role struct { Role struct { RoleName string `json:"role_name,omitempty"` Permissions []struct { FullAccess bool `json:"full_access,omitempty"` Entity string `json:"entity,omitempty"` MorePermissions MorePermissions `json:"more_permissions,omitempty"` ReportPermissions []struct { Reports []struct { FullAccess bool `json:"full_access,omitempty"` CanSchedule bool `json:"can_schedule,omitempty"` ReportConstant string `json:"report_constant,omitempty"` CanShare bool `json:"can_share,omitempty"` IsExportEnabled bool `json:"is_export_enabled,omitempty"` ReportNameFormatted string `json:"report_name_formatted,omitempty"` IsScheduleEnabled bool `json:"is_schedule_enabled,omitempty"` CanExport bool `json:"can_export,omitempty"` CanAccess bool `json:"can_access,omitempty"` } `json:"reports,omitempty"` ReportGroupFormatted string `json:"report_group_formatted,omitempty"` ReportGroup string `json:"report_group,omitempty"` } `json:"report_permissions,omitempty"` } `json:"permissions,omitempty"` Description string `json:"description,omitempty"` DisplayName string `json:"display_name,omitempty"` } `json:"role,omitempty"` RoleID string `json:"role_id,omitempty"` Name string `json:"name,omitempty"` Email string `json:"email,omitempty"` Zuid string `json:"zuid,omitempty"` } `json:"role,omitempty"` IsClaimant bool `json:"is_claimant,omitempty"` IsEmployee bool `json:"is_employee,omitempty"` Email string `json:"email,omitempty"` IsCustomerSegmented bool `json:"is_customer_segmented,omitempty"` IsVendorSegmented bool `json:"is_vendor_segmented,omitempty"` IsAccountant bool `json:"is_accountant,omitempty"` CreatedTime string `json:"created_time,omitempty"` CustomFields []interface{} `json:"custom_fields,omitempty"` CustomFieldHash struct { } `json:"custom_field_hash,omitempty"` IsAssociatedForApproval bool `json:"is_associated_for_approval,omitempty"` IsAssociatedWithOrgEmail bool `json:"is_associated_with_org_email,omitempty"` Branches []interface{} `json:"branches,omitempty"` DefaultBranchID string `json:"default_branch_id,omitempty"` } `json:"user,omitempty"` }
CurrentUserResponse is the data returned by GetCurrentUser
type MorePermissions ¶
type MorePermissions []Permission
func (*MorePermissions) UnmarshalJSON ¶
func (m *MorePermissions) UnmarshalJSON(data []byte) error
type Permission ¶
Source Files
¶
- bank_accounts.go
- bank_rules.go
- bank_transactions.go
- base_currency_adjustment.go
- bills.go
- books.go
- chart_of_accounts.go
- contact_persons.go
- contacts.go
- credit_notes.go
- currency.go
- customer_payments.go
- estimates.go
- expenses.go
- invoices.go
- items.go
- journals.go
- opening_balance.go
- projects.go
- purchase_orders.go
- recurring_expenses.go
- recurring_invoices.go
- retainer_invoices.go
- sales_orders.go
- tasks.go
- taxes.go
- time_entries.go
- users.go
- vendor_credits.go
- vendor_payments.go
Click to show internal directories.
Click to hide internal directories.